~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to src/common_cpp/Recon/Global/PIDVarA.hh

  • Committer: Chris Rogers
  • Date: 2014-04-16 11:48:45 UTC
  • mfrom: (707 merge)
  • mto: This revision was merged to the branch mainline in revision 711.
  • Revision ID: chris.rogers@stfc.ac.uk-20140416114845-h3u3q7pdcxkxvovs
Update to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of MAUS: http://  micewww.pp.rl.ac.uk:8080/projects/maus
 
2
 * 
 
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.
 
7
 * 
 
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.
 
12
 * 
 
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/>.
 
15
 */
 
16
 
 
17
 /** @class PIDVarA
 
18
 *  Example PID variable class, for TOF1 time - TOF0 time, derived
 
19
 *  from PIDBase
 
20
 */
 
21
 
 
22
#ifndef PIDVARA_HH
 
23
#define PIDVARA_HH
 
24
 
 
25
#include <string>
 
26
 
 
27
 
 
28
#include "TLorentzVector.h"
 
29
#include "TH1.h"
 
30
#include "TFile.h"
 
31
 
 
32
#include "DataStructure/Global/Track.hh"
 
33
#include "DataStructure/Global/TrackPoint.hh"
 
34
#include "DataStructure/Global/BasePoint.hh"
 
35
 
 
36
#include "Recon/Global/PIDBase.hh"
 
37
 
 
38
namespace MAUS {
 
39
namespace recon {
 
40
namespace global {
 
41
 
 
42
  class PIDVarA : public PIDBase {
 
43
  public:
 
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);
 
48
    /// Destructor
 
49
    ~PIDVarA();
 
50
 
 
51
  private:
 
52
 
 
53
    /** @brief Calculate value of PID variable
 
54
     *
 
55
     *  @param track The track for which the variable is calculated
 
56
     *
 
57
     *  @return Returns value of PID variable
 
58
     */
 
59
    double Calc_Var(MAUS::DataStructure::Global::Track* track);
 
60
 
 
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;
 
69
  };
 
70
}
 
71
}
 
72
}
 
73
 
 
74
#endif