Chi2PIDAlg.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // A Chi2 based particleID
4 //
5 // tjyang@fnal.gov
6 //
7 ////////////////////////////////////////////////////////////////////////
8 #ifndef CHI2PIDALG_H
9 #define CHI2PIDALG_H
10 
11 #include <string>
12 #include <bitset>
13 
14 #include "fhiclcpp/fwd.h"
16 
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 
34  /**
35  * Helper function to go from geo::PlaneID to a bitset
36  */
37  std::bitset<8> GetBitset(geo::PlaneID planeID);
38 
40 
41  private:
42 
44  bool fUseMedian;
45  //std::string fCalorimetryModuleLabel;
47 
48  TProfile *dedx_range_pro; ///< proton template
49  TProfile *dedx_range_ka; ///< kaon template
50  TProfile *dedx_range_pi; ///< pion template
51  TProfile *dedx_range_mu; ///< muon template
52 
53  };//
54 }// namespace
55 #endif // CHI2PIDALG_H
TProfile * dedx_range_mu
muon template
Definition: Chi2PIDAlg.h:51
std::string string
Definition: nybbler.cc:12
The data type to uniquely identify a Plane.
Definition: geo_types.h:472
struct vector vector
TProfile * dedx_range_pro
proton template
Definition: Chi2PIDAlg.h:48
TProfile * dedx_range_pi
pion template
Definition: Chi2PIDAlg.h:50
std::string fROOTfile
Definition: Chi2PIDAlg.h:46
std::string fTemplateFile
Definition: Chi2PIDAlg.h:43
Definition of data types for geometry description.
TProfile * dedx_range_ka
kaon template
Definition: Chi2PIDAlg.h:49
Definition: fwd.h:31
calorimetry