All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
14 
15 class TTree;
16 
17 #include <vector>
18 
19 namespace sim{
20 
22 
23  public:
24 
26 
27  void SetOutputTree(TTree*, bool fill=true);
28 
29  void FillTree(unsigned int, unsigned int,
30  const std::vector<sim::MCTrack>&);
31 
32  private:
33 
34  TTree* fTree;
35  bool fFillTree;
36 
37  unsigned int fRun;
38  unsigned int fEvent;
39 
40  unsigned int fNMCTracks;
41  unsigned int fDParticle;
43 
46  unsigned int fDParticleTrackId;
59 
60  float fCollectionY;
61  float fCollectionZ;
62  float fCollectionX;
67  float fMinX;
68  float fMaxX;
69  float fMinY;
70  float fMaxY;
71  float fMinZ;
72  float fMaxZ;
73 
75 
76  };
77 
78 }
79 
80 #endif
void SetOutputTree(TTree *, bool fill=true)
void FillTree(unsigned int, unsigned int, const std::vector< sim::MCTrack > &)
void fill(const art::PtrVector< recob::Hit > &hits, int only_plane)
Class def header for mctrack data container.
void FillDominantParticleInfo(const sim::MCTrack &)