CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EventColin.h
Go to the documentation of this file.
1 #ifndef Demo_PFRootEvent_EventColin_h
2 #define Demo_PFRootEvent_EventColin_h
3 
4 #include <vector>
5 
6 
7 class EventColin {
8 
9  public:
10  EventColin() : number_(-1), nTracks_(0) {}
11  virtual ~EventColin() {}
12  void reset() {
13  number_ = -1;
14  particles_.clear();
15  candidates_.clear();
16  clusters_.clear();
17  clustersIsland_.clear();
18  jetsMC_.clear();
19  jetsEHT_.clear();
20  jetsPF_.clear();
21  nTracks_=0;
22  }
23 
24  class Particle {
25  public:
26  Particle() : eta(0),phi(0),e(0),pdgCode(0) {}
27  virtual ~Particle() {}
28  double eta;
29  double phi;
30  double e;
31  int pdgCode;
32  };
33 
34  class Cluster {
35  public:
36  Cluster() : eta(0),phi(0),e(0),layer(0),type(0) {}
37  virtual ~Cluster() {}
38  double eta;
39  double phi;
40  double e;
41  int layer;
42  int type;
44  };
45 
46  class Jet {
47  public:
48  Jet() : eta(0),phi(0),et(0),e(0),ee(0),eh(0),ete(0),eth(0) {}
49  virtual ~Jet() {}
50  double eta;
51  double phi;
52  double et;
53  double e;
54  double ee;
55  double eh;
56  double ete;
57  double eth;
58  };
59 
60  class CaloTower {
61  public:
62  CaloTower() : e(0), ee(0), eh(0) {}
63  double e;
64  double ee;
65  double eh;
66  };
67 
68  class Block {
69  public:
70  Block() : p(0), e(0), h(0) {}
71  double p; // tot momentum
72  double e; // tot ecal
73  double h; // tot hcal
74  int ntracks; // number of tracks
75  std::vector<double> ptrack;
76  std::vector<double> etrack;
77  };
78 
79 
80 
81  void setNumber(int number) {number_ = number;}
82  void setNTracks(int nTracks) {nTracks_ = nTracks;}
83 
84  void addParticle( const Particle& ptc ) {
85  particles_.push_back(ptc);
86  }
87 
88  void addCandidate( const Particle& ptc ) {
89  candidates_.push_back(ptc);
90  }
91 
92  void addCluster( const Cluster& ptc ) {
93  clusters_.push_back(ptc);
94  }
95 
96  void addClusterIsland( const Cluster& ptc ) {
97  clustersIsland_.push_back(ptc);
98  }
99 
100  void addJetMC( const Jet & jets ) {
101  jetsMC_.push_back(jets);
102  }
103 
104  void addJetEHT( const Jet & jets ) {
105  jetsEHT_.push_back(jets);
106  }
107 
108  void addJetPF( const Jet & jets ) {
109  jetsPF_.push_back(jets);
110  }
111 
112  void addCaloTower( const CaloTower& ct ) {
113  caloTowers_.push_back( ct );
114  }
115 
116  void addBlock( const Block& b ) {
117  blocks_.push_back( b );
118  }
119 
120 
121  const std::vector<EventColin::Particle>& particles()
122  {return particles_;}
123  const std::vector<EventColin::Cluster>& clusters()
124  {return clusters_;}
125  const std::vector<EventColin::Cluster>& clustersIsland()
126  {return clustersIsland_;}
127  const std::vector<EventColin::Jet>& jetsMC()
128  {return jetsMC_;}
129  const std::vector<EventColin::Jet>& jetsEHT()
130  {return jetsEHT_;}
131  const std::vector<EventColin::Jet>& jetsPF()
132  {return jetsPF_;}
133 
134  private:
135 
136  int number_;
137  int nTracks_;
138  std::vector<EventColin::Particle> particles_;
139  std::vector<EventColin::Particle> candidates_;
140  std::vector<EventColin::Cluster> clusters_;
141  std::vector<EventColin::Cluster> clustersIsland_;
142  std::vector<EventColin::Jet> jetsMC_;
143  std::vector<EventColin::Jet> jetsEHT_;
144  std::vector<EventColin::Jet> jetsPF_;
145  std::vector<EventColin::CaloTower> caloTowers_;
146  std::vector<EventColin::Block> blocks_;
147 
148 };
149 
150 #endif
type
Definition: HCALResponse.h:21
std::vector< double > etrack
Definition: EventColin.h:76
const std::vector< EventColin::Cluster > & clusters()
Definition: EventColin.h:123
void setNTracks(int nTracks)
Definition: EventColin.h:82
std::vector< EventColin::Jet > jetsEHT_
Definition: EventColin.h:143
const std::vector< EventColin::Jet > & jetsPF()
Definition: EventColin.h:131
void addJetMC(const Jet &jets)
Definition: EventColin.h:100
void setNumber(int number)
Definition: EventColin.h:81
std::vector< EventColin::Particle > candidates_
Definition: EventColin.h:139
int nTracks_
Definition: EventColin.h:137
std::vector< EventColin::Jet > jetsMC_
Definition: EventColin.h:142
std::vector< double > ptrack
Definition: EventColin.h:75
void addCandidate(const Particle &ptc)
Definition: EventColin.h:88
vector< PseudoJet > jets
std::vector< EventColin::CaloTower > caloTowers_
Definition: EventColin.h:145
const std::vector< EventColin::Particle > & particles()
Definition: EventColin.h:121
virtual ~Particle()
Definition: EventColin.h:27
std::vector< EventColin::Particle > particles_
Definition: EventColin.h:138
std::vector< EventColin::Cluster > clustersIsland_
Definition: EventColin.h:141
void addCluster(const Cluster &ptc)
Definition: EventColin.h:92
virtual ~Jet()
Definition: EventColin.h:49
virtual ~EventColin()
Definition: EventColin.h:11
void addJetPF(const Jet &jets)
Definition: EventColin.h:108
std::vector< EventColin::Cluster > clusters_
Definition: EventColin.h:140
const std::vector< EventColin::Jet > & jetsEHT()
Definition: EventColin.h:129
std::vector< EventColin::Jet > jetsPF_
Definition: EventColin.h:144
double b
Definition: hdecay.h:120
void addParticle(const Particle &ptc)
Definition: EventColin.h:84
void addBlock(const Block &b)
Definition: EventColin.h:116
virtual ~Cluster()
Definition: EventColin.h:37
const std::vector< EventColin::Jet > & jetsMC()
Definition: EventColin.h:127
void addJetEHT(const Jet &jets)
Definition: EventColin.h:104
void addCaloTower(const CaloTower &ct)
Definition: EventColin.h:112
std::vector< EventColin::Block > blocks_
Definition: EventColin.h:146
void addClusterIsland(const Cluster &ptc)
Definition: EventColin.h:96
void reset()
Definition: EventColin.h:12
const std::vector< EventColin::Cluster > & clustersIsland()
Definition: EventColin.h:125