All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 namespace fhicl { class ParameterSet; }
15 #include "canvas/Persistency/Common/Ptr.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 
39  anab::ParticleID DoParticleID(const std::vector<art::Ptr<anab::Calorimetry>>& calo);
40 
41  private:
42 
43  std::string fTemplateFile;
44  bool fUseMedian;
45  //std::string fCalorimetryModuleLabel;
46  std::string fROOTfile;
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
Chi2PIDAlg(fhicl::ParameterSet const &pset)
Definition: Chi2PIDAlg.cxx:26
TProfile * dedx_range_mu
muon template
Definition: Chi2PIDAlg.h:51
The data type to uniquely identify a Plane.
Definition: geo_types.h:472
TProfile * dedx_range_pro
proton template
Definition: Chi2PIDAlg.h:48
TProfile * dedx_range_pi
pion template
Definition: Chi2PIDAlg.h:50
process_name can override from command line with o or output calo
Definition: pid.fcl:40
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:265
std::string fROOTfile
Definition: Chi2PIDAlg.h:46
std::bitset< 8 > GetBitset(geo::PlaneID planeID)
Definition: Chi2PIDAlg.cxx:50
std::string fTemplateFile
Definition: Chi2PIDAlg.h:43
Definition of data types for geometry description.
anab::ParticleID DoParticleID(const std::vector< art::Ptr< anab::Calorimetry >> &calo)
Definition: Chi2PIDAlg.cxx:61
TProfile * dedx_range_ka
kaon template
Definition: Chi2PIDAlg.h:49