RVP.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file RVP.h
3 // \brief reco var based pid for nue identification
4 // \version 2012-11-06
5 // \author Xuebing Bu - xbbu@fnal.gov
6 ////////////////////////////////////////////////////////////////////////
7 #ifndef RVP_H
8 #define RVP_H
9 
10 #include "RecoBase/PID.h"
11 
12 
13 
14 namespace rvp
15 {
16  class RVP : public rb::PID
17  {
18  public:
19 #ifndef __GCCXML__
20  RVP();
21 
22  RVP(int pdg,
23  unsigned int ncell,
24  float recE,
25  float lTrack,
26  float ltFrac,
27  float mFrac,
28  float mHits,
29  float ePlane20,
30  float eFrac2Plane,
31  float eFrac6Plane,
32  float eFrac2Sig,
33  int png3D,
34  float pngEBal,
35  float pid,
36  int png2D,
37  float pngEBal2D,
38  float eIso3,
39  float rvp12);
40 
41  //setters
42  void SetNCells (unsigned int ncell ) { fNCells = ncell; }
43  void SetRecoE (float recE ) { fRecoE = recE; }
44  void SetLongTr (float lTrack ) { fLongTr = lTrack; }
45  void SetLongTrFrac (float ltFrac ) { fLongTrFrac = ltFrac; }
46  void SetMipFrac (float mFrac ) { fMipFrac = mFrac; }
47  void SetMipHits (float mHits ) { fMipHits = mHits; }
48  void SetEPl20Frac (float ePlane20 ) { fEPl20Frac = ePlane20; }
49  void SetEFrac2PlWin (float eFrac2Plane ) { fEFrac2PlWin = eFrac2Plane; }
50  void SetEFrac6PlWin (float eFrac6Plane ) { fEFrac6PlWin = eFrac6Plane; }
51  void SetEFrac2SigRd (float eFrac2Sig ) { fEFrac2SigRd = eFrac2Sig; }
52  void SetProngs3D (int png3D ) { fProngs3D = png3D; }
53  void SetProngEBal3D (float pngEBal ) { fProngEBal3D = pngEBal; }
54  void SetProngs2D (int png2D ) { fProngs2D = png2D; }
55  void SetProngEBal2D (float pngEBal2D ) { fProngEBal2D = pngEBal2D; }
56  void SetEIso3Sig (float eIso3Sig ) { fEIso3Sig = eIso3Sig; }
57  void SetRVP12 (float rvp12 ) { fRVP12 = rvp12; }
58 
59  //getters
60  unsigned int NCells() const { return fNCells; }
61  float RecoE() const { return fRecoE; }
62  float LongTr() const { return fLongTr; }
63  float LongTrFrac() const { return fLongTrFrac; }
64  float MipFrac() const { return fMipFrac; }
65  float MipHits() const { return fMipHits; }
66  float EPl20Frac() const { return fEPl20Frac; }
67  float EFrac2PlWin() const { return fEFrac2PlWin; }
68  float EFrac6PlWin() const { return fEFrac6PlWin; }
69  float EFrac2SigRd() const { return fEFrac2SigRd; }
70  int Prongs3D() const { return fProngs3D; }
71  float ProngEBal3D() const { return fProngEBal3D; }
72  int Prongs2D() const { return fProngs2D; }
73  float ProngEBal2D() const { return fProngEBal2D; }
74  float EIso3Sig() const { return fEIso3Sig; }
75  float RVP12() const { return fRVP12; }
76 #endif // __GCCXML__
77 
78  private:
79  //current RVP input variables to BDT
80  unsigned int fNCells; ///< Number of cells in slice
81  float fRecoE; ///< Reco energy of slice
82  float fLongTr; ///< Longest discrete track merge track
83  float fLongTrFrac; ///< Fraction of cells in longest track out of total cells in slice
84  float fMipFrac; ///< Fraction of mip hits out of total number of hits
85  float fMipHits; ///< Number of mip hits in slice
86  float fEPl20Frac; ///< Fraction of energy in first 20 planes out of total slice energy
87  float fEFrac2PlWin; ///< Largest fraction of energy in a 2 plane window out of total slice
88  float fEFrac6PlWin; ///< Largest fraction of energy in a 6 plane window out of total slice
89  float fEFrac2SigRd; ///< Fraction of slice energy within 2sigma of mean energy weighted slice position
90  int fProngs3D; ///< Number of 3D FuzzyK prongs associated with slice
91  float fProngEBal3D; ///< The energy balance between the two hightest energy 3D prongs in slice
92  int fProngs2D; ///< Number of 2D FuzzyK prongs associated with slice
93  float fProngEBal2D; ///< The energy balance between highest energy 2D prong and 3D prong in the opposite view
94  float fEIso3Sig; ///< Fraction of slice energy more then 3sigma from mean energy weighted slice position
95  float fRVP12; ///< PID value for 12 variable RVP for comparison purposes
96 
97  };
98 }
99 #endif
float EIso3Sig() const
Definition: RVP.h:74
A pid value and corresponding pdg code.
Definition: PID.h:13
float EFrac2PlWin() const
Definition: RVP.h:67
unsigned int NCells() const
Definition: RVP.h:60
void SetRecoE(float recE)
Definition: RVP.h:43
pdg code and pid value
float fEIso3Sig
Fraction of slice energy more then 3sigma from mean energy weighted slice position.
Definition: RVP.h:94
float fLongTr
Longest discrete track merge track.
Definition: RVP.h:82
float fEPl20Frac
Fraction of energy in first 20 planes out of total slice energy.
Definition: RVP.h:86
void SetEFrac2SigRd(float eFrac2Sig)
Definition: RVP.h:51
RVP()
Definition: RVP.cxx:6
float LongTrFrac() const
Definition: RVP.h:63
float EPl20Frac() const
Definition: RVP.h:66
float fEFrac2PlWin
Largest fraction of energy in a 2 plane window out of total slice.
Definition: RVP.h:87
void SetProngEBal3D(float pngEBal)
Definition: RVP.h:53
float fProngEBal3D
The energy balance between the two hightest energy 3D prongs in slice.
Definition: RVP.h:91
float LongTr() const
Definition: RVP.h:62
void SetNCells(unsigned int ncell)
Definition: RVP.h:42
int fProngs3D
Number of 3D FuzzyK prongs associated with slice.
Definition: RVP.h:90
float fLongTrFrac
Fraction of cells in longest track out of total cells in slice.
Definition: RVP.h:83
float ProngEBal3D() const
Definition: RVP.h:71
int Prongs2D() const
Definition: RVP.h:72
void SetProngEBal2D(float pngEBal2D)
Definition: RVP.h:55
void SetProngs3D(int png3D)
Definition: RVP.h:52
float fRVP12
PID value for 12 variable RVP for comparison purposes.
Definition: RVP.h:95
int fProngs2D
Number of 2D FuzzyK prongs associated with slice.
Definition: RVP.h:92
float fMipFrac
Fraction of mip hits out of total number of hits.
Definition: RVP.h:84
float MipFrac() const
Definition: RVP.h:64
void SetEFrac6PlWin(float eFrac6Plane)
Definition: RVP.h:50
void SetProngs2D(int png2D)
Definition: RVP.h:54
float RVP12() const
Definition: RVP.h:75
float EFrac6PlWin() const
Definition: RVP.h:68
Definition: RVP.h:16
void SetEIso3Sig(float eIso3Sig)
Definition: RVP.h:56
void SetLongTr(float lTrack)
Definition: RVP.h:44
void SetMipHits(float mHits)
Definition: RVP.h:47
float RecoE() const
Definition: RVP.h:61
void SetMipFrac(float mFrac)
Definition: RVP.h:46
float fEFrac2SigRd
Fraction of slice energy within 2sigma of mean energy weighted slice position.
Definition: RVP.h:89
float fEFrac6PlWin
Largest fraction of energy in a 6 plane window out of total slice.
Definition: RVP.h:88
float fMipHits
Number of mip hits in slice.
Definition: RVP.h:85
float fProngEBal2D
The energy balance between highest energy 2D prong and 3D prong in the opposite view.
Definition: RVP.h:93
void SetEFrac2PlWin(float eFrac2Plane)
Definition: RVP.h:49
float MipHits() const
Definition: RVP.h:65
float ProngEBal2D() const
Definition: RVP.h:73
float EFrac2SigRd() const
Definition: RVP.h:69
void SetEPl20Frac(float ePlane20)
Definition: RVP.h:48
void SetLongTrFrac(float ltFrac)
Definition: RVP.h:45
unsigned int fNCells
Number of cells in slice.
Definition: RVP.h:80
int Prongs3D() const
Definition: RVP.h:70
Definition: FillPIDs.h:15
float fRecoE
Reco energy of slice.
Definition: RVP.h:81
void SetRVP12(float rvp12)
Definition: RVP.h:57