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 TOF2 time - TOF1 time, derived
29
#include "TLorentzVector.h"
33
#include "DataStructure/Global/Track.hh"
34
#include "DataStructure/Global/TrackPoint.hh"
35
#include "DataStructure/Global/BasePoint.hh"
37
#include "Recon/Global/PIDBase1D.hh"
43
class ComPIDVarA : public PIDBase1D {
45
/// Constructor to create a PDF
46
explicit ComPIDVarA(std::string hypothesis, std::string unique_identifier);
47
/// Constructor to use a PDF to perform PID analysis
48
ComPIDVarA(TFile* file, std::string hypothesis, int minComA, int maxComA);
54
/** @brief Calculate value of PID variable
56
* @param track The track for which the variable is calculated
58
* @return Returns value of PID variable
60
std::pair<double, double> Calc_Var(MAUS::DataStructure::Global::Track* track);
62
/// Name of PID variable
63
static const std::string VARIABLE;
64
/// Number of bins in PDF
65
static const int numBins = 200;
66
/// Minimum value of range of PDF
67
static const int minBinComA = 25;
68
/// Maximum value of range of PDF
69
static const int maxBinComA = 65;
70
/// Minimum value of cut for PID
71
static const int minComA = 20;
72
/// Maximum value of cur for PID
73
static const int maxComA = 50;