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
* @author Celeste Pidcott, University of Warwick
19
* Commissioning PID variable class, for KL ADC charge product, derived
30
#include "TLorentzVector.h"
34
#include "DataStructure/Global/Track.hh"
35
#include "DataStructure/Global/TrackPoint.hh"
36
#include "DataStructure/Global/BasePoint.hh"
38
#include "Recon/Global/PIDBase1D.hh"
44
class ComPIDVarC : public PIDBase1D {
46
/// Constructor to create a PDF
47
explicit ComPIDVarC(std::string hypothesis, std::string unique_identifier);
48
/// Constructor to use a PDF to perform PID analysis
49
ComPIDVarC(TFile* file, std::string hypothesis, int minD, int maxD);
55
/** @brief Calculate value of PID variable
57
* @param track The track for which the variable is calculated
59
* @return Returns value of PID variable
61
std::pair<double, double> Calc_Var(MAUS::DataStructure::Global::Track* track);
63
/// Track Points from global track
64
std::vector<const MAUS::DataStructure::Global::TrackPoint*>
66
/// KL track points from global track
67
std::vector<const MAUS::DataStructure::Global::TrackPoint*>
70
/// Name of PID variable
71
static const std::string VARIABLE;
72
/// Number of bins in PDF
73
static const int numBins = 160;
74
/// Minimum value of range of PDF
75
static const int minBinComC = 0;
76
/// Maximum value of range of PDF
77
static const int maxBinComC = 8000;
78
/// Minimum value of cut for PID
79
static const int minComC = 0;
80
/// Maximum value of cut for PID
81
static const int maxComC = 8000;