Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larana
larana
ParticleIdentification
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
"
15
#include "
canvas/Persistency/Common/Ptr.h
"
16
17
#include "
larcoreobj/SimpleTypesAndConstants/geo_types.h
"
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
pid::Chi2PIDAlg::dedx_range_mu
TProfile * dedx_range_mu
muon template
Definition:
Chi2PIDAlg.h:51
string
std::string string
Definition:
nybbler.cc:12
geo::PlaneID
The data type to uniquely identify a Plane.
Definition:
geo_types.h:472
vector
struct vector vector
pid::Chi2PIDAlg::dedx_range_pro
TProfile * dedx_range_pro
proton template
Definition:
Chi2PIDAlg.h:48
pid::Chi2PIDAlg::dedx_range_pi
TProfile * dedx_range_pi
pion template
Definition:
Chi2PIDAlg.h:50
anab::ParticleID
Definition:
ParticleID.h:43
anab
Definition:
DUNEAnaTrackUtils.h:27
pid::Chi2PIDAlg::fROOTfile
std::string fROOTfile
Definition:
Chi2PIDAlg.h:46
pid::Chi2PIDAlg::fTemplateFile
std::string fTemplateFile
Definition:
Chi2PIDAlg.h:43
Ptr.h
geo_types.h
Definition of data types for geometry description.
fwd.h
pid::Chi2PIDAlg
Definition:
Chi2PIDAlg.h:28
pid::Chi2PIDAlg::dedx_range_ka
TProfile * dedx_range_ka
kaon template
Definition:
Chi2PIDAlg.h:49
art::Ptr
Definition:
fwd.h:31
calo
calorimetry
Definition:
CaloChecker_module.cc:43
pid::Chi2PIDAlg::fUseMedian
bool fUseMedian
Definition:
Chi2PIDAlg.h:44
fhicl::ParameterSet
Definition:
ParameterSet.h:36
pid
Definition:
Chi2ParticleID_module.cc:24
Generated by
1.8.11