CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFRootEventManagerColin.h
Go to the documentation of this file.
1 #ifndef Demo_PFRootEvent_PFRootEventManagerColin_h
2 #define Demo_PFRootEvent_PFRootEventManagerColin_h
3 
5 
6 class NeutralEvent {
7  public:
9  reset();
10  }
11 
12  virtual ~NeutralEvent() {};
13 
14  virtual void reset() {
15  eECAL = -1;
16  eHCAL = -1;
17  eNeutral = -1;
18  etaECAL = -10;
19  etaHCAL = -10;
20  etaNeutral = -10;
21  nECAL = -1;
22  nHCAL = -1;
23  rCode = 0;
24  }
25 
26  double eECAL;
27  double eHCAL;
28  double eNeutral;
29  double etaECAL;
30  double etaHCAL;
31  double etaNeutral;
32  int nECAL;
33  int nHCAL;
34  int rCode;
35 };
36 
37 
38 class TauEvent : public NeutralEvent {
39  public:
40  TauEvent() :
41  NeutralEvent() {
42  reset();
43  }
44 
45  virtual ~TauEvent() {};
46 
47  void reset() {
49  pTrack = -1;
50  ptTrack = -1;
51  etaTrack = -10;
52  pHadron = -1;
53  eEcalHadron = -1;
54  chi2ECAL = -1;
55  }
56 
57 
58  double pTrack;
59  double ptTrack;
60  double etaTrack;
61  double pHadron;
62  double eEcalHadron;
63  double chi2ECAL;
64 };
65 
66 
68 
69  public:
70  PFRootEventManagerColin(const char* file);
71 
73 
74  void readSpecificOptions(const char* file);
75 
76  bool processEntry(int entry);
77  bool processNeutral();
78  bool processHIGH_E_TAUS();
79 
80 
81  void write();
82 
83 
84  enum Mode {
87  };
88 
89  TTree *outTreeMy_;
92  int mode_;
93 };
94 
95 #endif
virtual void reset()
void readSpecificOptions(const char *file)
PFRootEventManagerColin(const char *file)
bool processEntry(int entry)
process one entry (pass the TTree entry)
std::pair< std::string, MonitorElement * > entry
Definition: ME_MAP.h:8
ROOT interface to particle flow package.