CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GenSimInfo.h
Go to the documentation of this file.
1 /*
2 Functions to give the details of parent track of Generator Tracks
3 
4 Authors: Seema Sharma, Sunanda Banerjee
5 Created: August 2009
6 */
7 
8 #ifndef CalibrationIsolatedParticlesGenSimInfo_h
9 #define CalibrationIsolatedParticlesGenSimInfo_h
10 
11 // system include files
12 #include <memory>
13 #include <map>
14 #include <vector>
15 #include <string>
16 
17 // user include files
19 
21 
28 
32 
34 
35 namespace spr {
36 
37  struct genSimInfo {
39  maxNearP = -1.0;
41  isChargedIso = true;
42  for (int i = 0; i < 3; ++i)
43  cHadronEne_[i] = 0.0;
44  }
45  double maxNearP;
48  double cHadronEne_[3];
49  };
50 
51  void eGenSimInfo(const DetId& coreDet,
52  HepMC::GenEvent::particle_const_iterator trkItr,
53  std::vector<spr::propagatedGenTrackID>& trackIds,
54  const CaloGeometry* geo,
55  const CaloTopology* caloTopology,
56  int ieta,
57  int iphi,
59  bool debug = false);
60 
61  void eGenSimInfo(const DetId& coreDet,
62  HepMC::GenEvent::particle_const_iterator trkItr,
63  std::vector<spr::propagatedGenTrackID>& trackIds,
64  const CaloGeometry* geo,
65  const CaloTopology* caloTopology,
66  double dR,
67  const GlobalVector& trackMom,
69  bool debug = false);
70 
71  void eGenSimInfo(const DetId& coreDet,
72  reco::GenParticleCollection::const_iterator trkItr,
73  std::vector<spr::propagatedGenParticleID>& trackIds,
74  const CaloGeometry* geo,
75  const CaloTopology* caloTopology,
76  int ieta,
77  int iphi,
79  bool debug = false);
80 
81  void eGenSimInfo(const DetId& coreDet,
82  reco::GenParticleCollection::const_iterator trkItr,
83  std::vector<spr::propagatedGenParticleID>& trackIds,
84  const CaloGeometry* geo,
85  const CaloTopology* caloTopology,
86  double dR,
87  const GlobalVector& trackMom,
89  bool debug = false);
90 
91  void hGenSimInfo(const DetId& coreDet,
92  HepMC::GenEvent::particle_const_iterator trkItr,
93  std::vector<spr::propagatedGenTrackID>& trackIds,
94  const HcalTopology* topology,
95  int ieta,
96  int iphi,
98  bool includeHO = false,
99  bool debug = false);
100 
101  void hGenSimInfo(const DetId& coreDet,
102  HepMC::GenEvent::particle_const_iterator trkItr,
103  std::vector<spr::propagatedGenTrackID>& trackIds,
104  const CaloGeometry* geo,
105  const HcalTopology* topology,
106  double dR,
107  const GlobalVector& trackMom,
109  bool includeHO = false,
110  bool debug = false);
111 
112  void hGenSimInfo(const DetId& coreDet,
113  reco::GenParticleCollection::const_iterator trkItr,
114  std::vector<spr::propagatedGenParticleID>& trackIds,
115  const HcalTopology* topology,
116  int ieta,
117  int iphi,
119  bool includeHO = false,
120  bool debug = false);
121 
122  void hGenSimInfo(const DetId& coreDet,
123  reco::GenParticleCollection::const_iterator trkItr,
124  std::vector<spr::propagatedGenParticleID>& trackIds,
125  const CaloGeometry* geo,
126  const HcalTopology* topology,
127  double dR,
128  const GlobalVector& trackMom,
130  bool includeHO = false,
131  bool debug = false);
132 
133  void cGenSimInfo(std::vector<DetId>& vdets,
134  HepMC::GenEvent::particle_const_iterator trkItr,
135  std::vector<spr::propagatedGenTrackID>& trackIds,
136  bool ifECAL,
138  bool debug = false);
139 
140  void cGenSimInfo(std::vector<DetId>& vdets,
141  reco::GenParticleCollection::const_iterator trkItr,
142  std::vector<spr::propagatedGenParticleID>& trackIds,
143  bool ifECAL,
145  bool debug = false);
146 
147  void cGenSimInfo(int charge, int pdgid, double p, spr::genSimInfo& info, bool debug = false);
148 } // namespace spr
149 
150 #endif
static const TGPicture * info(bool iBackgroundIsBlack)
double cHadronEne_[3]
Definition: GenSimInfo.h:48
double photonEne
Definition: GenSimInfo.h:46
void cGenSimInfo(std::vector< DetId > &vdets, HepMC::GenEvent::particle_const_iterator trkItr, std::vector< spr::propagatedGenTrackID > &trackIds, bool ifECAL, spr::genSimInfo &info, bool debug=false)
Definition: GenSimInfo.cc:176
double cHadronEne
Definition: GenSimInfo.h:46
double nHadronEne
Definition: GenSimInfo.h:46
void eGenSimInfo(const DetId &coreDet, HepMC::GenEvent::particle_const_iterator trkItr, std::vector< spr::propagatedGenTrackID > &trackIds, const CaloGeometry *geo, const CaloTopology *caloTopology, int ieta, int iphi, spr::genSimInfo &info, bool debug=false)
Definition: GenSimInfo.cc:10
Definition: DetId.h:17
#define debug
Definition: HDRShower.cc:19
void hGenSimInfo(const DetId &coreDet, HepMC::GenEvent::particle_const_iterator trkItr, std::vector< spr::propagatedGenTrackID > &trackIds, const HcalTopology *topology, int ieta, int iphi, spr::genSimInfo &info, bool includeHO=false, bool debug=false)
Definition: GenSimInfo.cc:90
double maxNearP
Definition: GenSimInfo.h:45