1
/* This file is part of MAUS: http:// micewww.pp.rl.ac.uk:8080/projects/maus
3
* MAUS is free software: you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License as published by
5
* the Free Software Foundation, either version 3 of the License, or
6
* (at your option) any later version.
8
* MAUS is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with MAUS. If not, see <http:// www.gnu.org/licenses/>.
18
* Example PID variable class, for TOF1 time - TOF0 time, derived
28
#include "TLorentzVector.h"
32
#include "DataStructure/Global/Track.hh"
33
#include "DataStructure/Global/TrackPoint.hh"
34
#include "DataStructure/Global/BasePoint.hh"
36
#include "Recon/Global/PIDBase.hh"
42
class PIDVarA : public PIDBase {
44
/// Constructor to create a PDF
45
explicit PIDVarA(std::string hypothesis, std::string unique_identifier);
46
/// Constructor to use a PDF to perform PID analysis
47
PIDVarA(TFile* file, std::string hypothesis);
53
/** @brief Calculate value of PID variable
55
* @param track The track for which the variable is calculated
57
* @return Returns value of PID variable
59
double Calc_Var(MAUS::DataStructure::Global::Track* track);
61
/// Name of PID variable
62
static const std::string VARIABLE;
63
/// Number of bins in PDF
64
static const int numBins = 200;
65
/// Minimum value of range of PDF
66
static const int minBin = 20;
67
/// Maximum value of range of PDF
68
static const int maxBin = 40;