LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
Chi2PIDAlg.h
Go to the documentation of this file.
1 //
3 // A Chi2 based particleID
4 //
5 // tjyang@fnal.gov
6 //
8 #ifndef CHI2PIDALG_H
9 #define CHI2PIDALG_H
10 
11 #include "TMath.h"
12 #include <vector>
13 #include <string>
14 
15 #include "fhiclcpp/ParameterSet.h"
17 
18 
19 class TProfile;
20 
21 namespace anab {
22  class Calorimetry;
23  class ParticleID;
24 }
25 
26 namespace pid {
27 
28  class Chi2PIDAlg {
29 
30  public:
31 
32  Chi2PIDAlg(fhicl::ParameterSet const& pset);
33  virtual ~Chi2PIDAlg();
34 
35  void reconfigure(fhicl::ParameterSet const& pset);
36 
37  void DoParticleID(art::Ptr<anab::Calorimetry> calo,
38  anab::ParticleID &pidOut);
39 
40  private:
41 
42  std::string fTemplateFile;
43  bool fUseMedian;
44  //std::string fCalorimetryModuleLabel;
45  std::string fROOTfile;
46 
47  TProfile *dedx_range_pro;
48  TProfile *dedx_range_ka;
49  TProfile *dedx_range_pi;
50  TProfile *dedx_range_mu;
51 
52  };//
53 }// namespace
54 #endif // CHI2PIDALG_H
TProfile * dedx_range_mu
muon template
Definition: Chi2PIDAlg.h:50
TProfile * dedx_range_pro
proton template
Definition: Chi2PIDAlg.h:47
TProfile * dedx_range_pi
pion template
Definition: Chi2PIDAlg.h:49
std::string fROOTfile
Definition: Chi2PIDAlg.h:45
std::string fTemplateFile
Definition: Chi2PIDAlg.h:42
TProfile * dedx_range_ka
kaon template
Definition: Chi2PIDAlg.h:48
Definition: fwd.h:25
calorimetry