ShowerPID.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file ShowerPID.h
3 // \brief A Shower class that records pid information, inherited from ShowerLID
4 //
5 // \version
6 // \author Jianming Bian (bianjm@physics.umn.edu)
7 ////////////////////////////////////////////////////////////////////////
8 #ifndef SHOWERPID_H
9 #define SHOWERPID_H
10 
11 #include "ShowerLID/ShowerLID.h"
12 
13 #include <string>
14 #include <map>
15 
16 namespace slid
17 {
18 
19  class ShowerPID : public slid::ShowerLID
20  {
21  public:
22 
23  inline ShowerPID();
25 #ifndef __GCCXML__
26  ShowerPID( const slid::ShowerLID & showerlid);
27 
28 
29  /// Setters
30  void SetValEPi0 (float in) { fPIDEPi0 = in; }
31  void SetValEPi0EL (float in) { fPIDEPi0EL = in; }
32 
33  void SetDedx0 (float in) { fDedx0 = in; }
34  void SetDedx1 (float in) { fDedx1 = in; }
35  void SetDedx2 (float in) { fDedx2 = in; }
36  void SetDedx3 (float in) { fDedx3 = in; }
37  void SetDedx4 (float in) { fDedx4 = in; }
38  void SetDedx5 (float in) { fDedx5 = in; }
39 
40  void SetELLL (float in) { fELLL = in; }
41  void SetELLT (float in) { fELLT = in; }
42  void SetGLLL (float in) { fGLLL = in; }
43  void SetGLLT (float in) { fGLLT = in; }
44  void SetMuLLL (float in) { fMuLLL = in; }
45  void SetMuLLT (float in) { fMuLLT = in; }
46  void SetPi0LLL (float in) { fPi0LLL = in; }
47  void SetPi0LLT (float in) { fPi0LLT = in; }
48  void SetPLLL (float in) { fPLLL = in; }
49  void SetPLLT (float in) { fPLLT = in; }
50  void SetNLLL (float in) { fNLLL = in; }
51  void SetNLLT (float in) { fNLLT = in; }
52  void SetPiLLL (float in) { fPiLLL = in; }
53  void SetPiLLT (float in) { fPiLLT = in; }
54 
55 
56 
57  // Getters
58  float ValueEPi0 () const { return fPIDEPi0; }
59  float ValueEPi0EL () const { return fPIDEPi0EL; }
60  float Dedx0 () const { return fDedx0; }
61  float Dedx1 () const { return fDedx1; }
62  float Dedx2 () const { return fDedx2; }
63  float Dedx3 () const { return fDedx3; }
64  float Dedx4 () const { return fDedx4; }
65  float Dedx5 () const { return fDedx5; }
66 
67  float ELLL () const { return fELLL; }
68  float ELLT () const { return fELLT; }
69  float GLLL () const { return fGLLL; }
70  float GLLT () const { return fGLLT; }
71  float MuLLL () const { return fMuLLL; }
72  float MuLLT () const { return fMuLLT; }
73  float Pi0LLL () const { return fPi0LLL; }
74  float Pi0LLT () const { return fPi0LLT; }
75  float PLLL () const { return fPLLL; }
76  float PLLT () const { return fPLLT; }
77  float NLLL () const { return fNLLL; }
78  float NLLT () const { return fNLLT; }
79  float PiLLL () const { return fPiLLL; }
80  float PiLLT () const { return fPiLLT; }
81 #endif // __GCCXML__
82 
83  protected:
84  /// Algorithm name
85 
86 
87  public:
88  /// \brief training variables
89  float fPIDEPi0;
90  float fPIDEPi0EL;
91  float fDedx0;
92  float fDedx1;
93  float fDedx2;
94  float fDedx3;
95  float fDedx4;
96  float fDedx5;
97 
98  float fELLL;
99  float fELLT;
100  float fGLLL;
101  float fGLLT;
102  float fMuLLL;
103  float fMuLLT;
104  float fPi0LLL;
105  float fPi0LLT;
106  float fPLLL;
107  float fPLLT;
108  float fNLLL;
109  float fNLLT;
110  float fPiLLL;
111  float fPiLLT;
112 
113  };
114 
116  :
117  fPIDEPi0(-5.0), fPIDEPi0EL(-5.0),
118  fDedx0(-5.0), fDedx1(-5.0), fDedx2(-5.0), fDedx3(-5.0), fDedx4(-5.0), fDedx5(-5.0)
119  {
120  }
121 
122 }
123 #endif
float ELLT() const
Definition: ShowerPID.h:68
void SetPLLL(float in)
Definition: ShowerPID.h:48
float MuLLL() const
Definition: ShowerPID.h:71
void SetDedx5(float in)
Definition: ShowerPID.h:38
float ValueEPi0() const
Definition: ShowerPID.h:58
float PLLL() const
Definition: ShowerPID.h:75
float Pi0LLL() const
Definition: ShowerPID.h:73
void SetDedx4(float in)
Definition: ShowerPID.h:37
float Dedx2() const
Definition: ShowerPID.h:62
float Dedx0() const
Definition: ShowerPID.h:60
void SetDedx1(float in)
Definition: ShowerPID.h:34
void SetPiLLT(float in)
Definition: ShowerPID.h:53
void SetDedx3(float in)
Definition: ShowerPID.h:36
void SetValEPi0(float in)
Setters.
Definition: ShowerPID.h:30
float NLLL() const
Definition: ShowerPID.h:77
void SetPi0LLL(float in)
Definition: ShowerPID.h:46
void SetNLLT(float in)
Definition: ShowerPID.h:51
float PLLT() const
Definition: ShowerPID.h:76
void SetMuLLT(float in)
Definition: ShowerPID.h:45
float PiLLT() const
Definition: ShowerPID.h:80
void SetPi0LLT(float in)
Definition: ShowerPID.h:47
float Dedx1() const
Definition: ShowerPID.h:61
float Dedx5() const
Definition: ShowerPID.h:65
float fPIDEPi0
Algorithm name.
Definition: ShowerPID.h:89
float MuLLT() const
Definition: ShowerPID.h:72
void SetPiLLL(float in)
Definition: ShowerPID.h:52
float Dedx3() const
Definition: ShowerPID.h:63
float fPIDEPi0EL
Definition: ShowerPID.h:90
void SetDedx2(float in)
Definition: ShowerPID.h:35
ifstream in
Definition: comparison.C:7
float Dedx4() const
Definition: ShowerPID.h:64
float GLLT() const
Definition: ShowerPID.h:70
void SetMuLLL(float in)
Definition: ShowerPID.h:44
float PiLLL() const
Definition: ShowerPID.h:79
float ValueEPi0EL() const
Definition: ShowerPID.h:59
void SetELLL(float in)
Definition: ShowerPID.h:40
void SetValEPi0EL(float in)
Definition: ShowerPID.h:31
void SetGLLL(float in)
Definition: ShowerPID.h:42
float GLLL() const
Definition: ShowerPID.h:69
Build slid::LID objects to store electron ID, if asked for, otherwise, calculate LID info and make av...
Definition: FillPIDs.h:13
float NLLT() const
Definition: ShowerPID.h:78
void SetPLLT(float in)
Definition: ShowerPID.h:49
void SetELLT(float in)
Definition: ShowerPID.h:41
float ELLL() const
Definition: ShowerPID.h:67
void SetGLLT(float in)
Definition: ShowerPID.h:43
float Pi0LLT() const
Definition: ShowerPID.h:74
void SetNLLL(float in)
Definition: ShowerPID.h:50
void SetDedx0(float in)
Definition: ShowerPID.h:33