TrkCntObj.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file TrkCntObj.h
3 // \brief Object collecting Cosmic Rejection variables for each track
4 // \version
5 // \author Shih-Kai Lin - Shihkai.Lin@colostate.edu
6 ////////////////////////////////////////////////////////////////////////
7 
8 ///
9 /// Class for storing per track information
10 ///
11 #ifndef TrkCntObj_h
12 #define TrkCntObj_h
13 
14 namespace cosrej
15 {
16  class TrkCntObj
17  {
18  public:
19 
20  TrkCntObj();
21  ~TrkCntObj() {};
22 
23  void SetTrkFwdCell (int trkfwdcell) {fTrkFwdCell = trkfwdcell;};
24  void SetTrkFwdCellND (int trkfwdcellnd) {fTrkFwdCellND = trkfwdcellnd;};
25  void SetTrkBakCell (int trkbakcell) {fTrkBakCell = trkbakcell;};
26  void SetTrkBakCellND (int trkbakcellnd) {fTrkBakCellND = trkbakcellnd;};
27  void SetTrkLenInAct (double trkleninact) {fTrkLenInAct = trkleninact;};
28  void SetTrkLenInCat (double trklenincat) {fTrkLenInCat = trklenincat;};
29  void SetTrkYPosAtTrans(float trkyposattrans) {fTrkYPosAtTrans = trkyposattrans;};
30  void SetVtxDist (float vtxdist) {fVtxDist = vtxdist;};
31  void SetEndDist (float enddist) {fEndDist = enddist;};
32  void SetTrkFwdDist (float trkfwddist) {fTrkFwdDist = trkfwddist;}; ///< distance (dist,cm) of best track from end to det wall projected forwards (Fwd), based on Kalman Tracker (Kal)
33  void SetTrkBakDist (float trkbakdist) {fTrkBakDist = trkbakdist;}; ///< cosmic track distance projected backwards from track start
34  void SetTrkFwdAir (float trkfwdair) {fTrkFwdAir = trkfwdair;}; ///< distance (dist,cm) through air traveled, when projected forwards to detector edge. For ND only, muon catcher air gap. NYI
35  void SetTrkFwdSteel (float trkfwdsteel) {fTrkFwdSteel = trkfwdsteel;}; ///< distance (dist,cm) through muon catcher traveled, when projected forwards to detector edge. For ND only. TODO: make this steel only instead of muon catcher distance
36  void SetTrkBakAir (float trkbakair) {fTrkBakAir = trkbakair;}; ///< distance (dist,cm) through air traveled, when projected forwards to detector edge. For ND only, muon catcher air gap. NYI
37  void SetTrkBakSteel (float trkbaksteel) {fTrkBakSteel = trkbaksteel;}; ///< distance (dist,cm) through muon catcher traveled, when projected forwards to detector edge. For ND only. TODO: make this steel only instead of muon catcher distance
38 
39  int TrkFwdCell() const {return fTrkFwdCell;};
40  int TrkFwdCellND() const {return fTrkFwdCellND;};
41  int TrkBakCell() const {return fTrkBakCell;};
42  int TrkBakCellND() const {return fTrkBakCellND;};
43  double TrkLenInAct() const {return fTrkLenInAct;};
44  double TrkLenInCat() const {return fTrkLenInCat;};
45  float TrkYPosAtTrans() const {return fTrkYPosAtTrans;};
46  float VtxDist() const {return fVtxDist;};
47  float EndDist() const {return fEndDist;};
48  float TrkFwdDist() const {return fTrkFwdDist;};
49  float TrkBakDist() const {return fTrkBakDist;};
50  float TrkFwdAir() const {return fTrkFwdAir;};
51  float TrkFwdSteel() const {return fTrkFwdSteel;};
52  float TrkBakAir() const {return fTrkBakAir;};
53  float TrkBakSteel() const {return fTrkBakSteel;};
54 
55  protected:
56  int fTrkFwdCell;
60  double fTrkLenInAct; ///< Track length in active detector.
61  double fTrkLenInCat; ///< Track length in muon catcher.
62  float fTrkYPosAtTrans; ///< Y position at transition to muon catcher, for determining if track went through air gap (ND only)
63  float fVtxDist;
64  float fEndDist;
65  float fTrkFwdDist;
66  float fTrkBakDist;
67  float fTrkFwdAir;
68  float fTrkFwdSteel;
69  float fTrkBakAir;
70  float fTrkBakSteel;
71  };
72 }
73 #endif
float TrkFwdAir() const
Definition: TrkCntObj.h:50
float TrkFwdDist() const
Definition: TrkCntObj.h:48
void SetTrkLenInCat(double trklenincat)
Definition: TrkCntObj.h:28
float VtxDist() const
Definition: TrkCntObj.h:46
double TrkLenInAct() const
Definition: TrkCntObj.h:43
int TrkBakCellND() const
Definition: TrkCntObj.h:42
void SetTrkBakCellND(int trkbakcellnd)
Definition: TrkCntObj.h:26
void SetVtxDist(float vtxdist)
Definition: TrkCntObj.h:30
float TrkBakDist() const
Definition: TrkCntObj.h:49
void SetTrkBakAir(float trkbakair)
distance (dist,cm) through muon catcher traveled, when projected forwards to detector edge...
Definition: TrkCntObj.h:36
double TrkLenInCat() const
Definition: TrkCntObj.h:44
float EndDist() const
Definition: TrkCntObj.h:47
void SetTrkFwdAir(float trkfwdair)
cosmic track distance projected backwards from track start
Definition: TrkCntObj.h:34
void SetTrkLenInAct(double trkleninact)
Definition: TrkCntObj.h:27
float fTrkBakSteel
Definition: TrkCntObj.h:70
int TrkFwdCellND() const
Definition: TrkCntObj.h:40
void SetTrkYPosAtTrans(float trkyposattrans)
Definition: TrkCntObj.h:29
double fTrkLenInAct
Track length in active detector.
Definition: TrkCntObj.h:60
void SetTrkFwdCellND(int trkfwdcellnd)
Definition: TrkCntObj.h:24
void SetTrkFwdSteel(float trkfwdsteel)
distance (dist,cm) through air traveled, when projected forwards to detector edge. For ND only, muon catcher air gap. NYI
Definition: TrkCntObj.h:35
void SetEndDist(float enddist)
Definition: TrkCntObj.h:31
void SetTrkFwdCell(int trkfwdcell)
Definition: TrkCntObj.h:23
float TrkYPosAtTrans() const
Definition: TrkCntObj.h:45
Cosmic Rejection PIDs for Numu analysis.
Definition: FillParentInfo.h:9
float fTrkFwdSteel
Definition: TrkCntObj.h:68
void SetTrkBakCell(int trkbakcell)
Definition: TrkCntObj.h:25
float fTrkYPosAtTrans
Y position at transition to muon catcher, for determining if track went through air gap (ND only) ...
Definition: TrkCntObj.h:62
int TrkFwdCell() const
distance (dist,cm) through muon catcher traveled, when projected forwards to detector edge...
Definition: TrkCntObj.h:39
float TrkBakAir() const
Definition: TrkCntObj.h:52
void SetTrkBakSteel(float trkbaksteel)
distance (dist,cm) through air traveled, when projected forwards to detector edge. For ND only, muon catcher air gap. NYI
Definition: TrkCntObj.h:37
void SetTrkBakDist(float trkbakdist)
distance (dist,cm) of best track from end to det wall projected forwards (Fwd), based on Kalman Track...
Definition: TrkCntObj.h:33
float TrkFwdSteel() const
Definition: TrkCntObj.h:51
int TrkBakCell() const
Definition: TrkCntObj.h:41
double fTrkLenInCat
Track length in muon catcher.
Definition: TrkCntObj.h:61
void SetTrkFwdDist(float trkfwddist)
Definition: TrkCntObj.h:32
float TrkBakSteel() const
Definition: TrkCntObj.h:53