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 void reset() {
13  eECAL = -1;
14  eHCAL = -1;
15  eNeutral = -1;
16  etaECAL = -10;
17  etaHCAL = -10;
18  etaNeutral = -10;
19  nECAL = -1;
20  nHCAL = -1;
21  rCode = 0;
22  }
23 
24  double eECAL;
25  double eHCAL;
26  double eNeutral;
27  double etaECAL;
28  double etaHCAL;
29  double etaNeutral;
30  int nECAL;
31  int nHCAL;
32  int rCode;
33 };
34 
35 
36 class TauEvent : public NeutralEvent {
37  public:
38  TauEvent() :
39  NeutralEvent() {
40  reset();
41  }
42 
43  void reset() {
45  pTrack = -1;
46  ptTrack = -1;
47  etaTrack = -10;
48  pHadron = -1;
49  eEcalHadron = -1;
50  chi2ECAL = -1;
51  }
52 
53 
54  double pTrack;
55  double ptTrack;
56  double etaTrack;
57  double pHadron;
58  double eEcalHadron;
59  double chi2ECAL;
60 };
61 
62 
64 
65  public:
66  PFRootEventManagerColin(const char* file);
67 
69 
70  void readSpecificOptions(const char* file);
71 
72  bool processEntry(int entry);
73  bool processNeutral();
74  bool processHIGH_E_TAUS();
75 
76 
77  void write();
78 
79 
80  enum Mode {
83  };
84 
85  TTree *outTreeMy_;
88  int mode_;
89 };
90 
91 #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.