MCTrackCollectionAnaAlg.h
Go to the documentation of this file.
1 #ifndef MCTRACKCOLLECTIONANAALG_H
2 #define MCTRACKCOLLECTIONANAALG_H
3 
4 /*!
5  * Title: MCTrackCollectionAnaAlg Class
6  * Author: Wes Ketchum (wketchum@lanl.gov)
7  *
8  * Description:
9  * Alg to put properties of collection of MCTracks in a tree.
10  *
11  */
12 
13 class TTree;
14 
15 namespace sim{
16 
17  class MCTrack;
18 
20 
21  public:
22 
24 
25  void SetOutputTree(TTree*, bool fill=true);
26 
27  void FillTree(unsigned int, unsigned int,
28  const std::vector<sim::MCTrack>&);
29 
30  private:
31 
32  TTree* fTree;
33  bool fFillTree;
34 
35  unsigned int fRun;
36  unsigned int fEvent;
37 
38  unsigned int fNMCTracks;
39  unsigned int fDParticle;
41 
44  unsigned int fDParticleTrackId;
57 
58  float fCollectionY;
59  float fCollectionZ;
60  float fCollectionX;
65  float fMinX;
66  float fMaxX;
67  float fMinY;
68  float fMaxY;
69  float fMinZ;
70  float fMaxZ;
71 
73 
74  };
75 
76 }
77 
78 #endif
void SetOutputTree(TTree *, bool fill=true)
void FillTree(unsigned int, unsigned int, const std::vector< sim::MCTrack > &)
Code to link reconstructed objects back to the MC truth information.
def fill(s)
Definition: translator.py:93
void FillDominantParticleInfo(const sim::MCTrack &)