CMS 3D CMS Logo

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
Vector3DBase
Definition: Vector3DBase.h:8
Handle.h
mps_fire.i
i
Definition: mps_fire.py:355
spr::genSimInfo::eleEne
double eleEne
Definition: GenSimInfo.h:46
spr
Definition: CaloConstants.h:6
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
HcalTopology
Definition: HcalTopology.h:26
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:152
CaloTopology
Definition: CaloTopology.h:19
GenParticle.h
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
DetId
Definition: DetId.h:17
CaloGeometry
Definition: CaloGeometry.h:21
debug
#define debug
Definition: HDRShower.cc:19
ecaldqm::topology
const CaloTopology * topology(nullptr)
spr::genSimInfo::muEne
double muEne
Definition: GenSimInfo.h:46
GenParticleFwd.h
spr::hGenSimInfo
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:101
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
spr::eGenSimInfo
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:13
Event.h
spr::genSimInfo::nHadronEne
double nHadronEne
Definition: GenSimInfo.h:46
spr::cGenSimInfo
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:195
spr::genSimInfo::genSimInfo
genSimInfo()
Definition: GenSimInfo.h:38
spr::genSimInfo
Definition: GenSimInfo.h:37
spr::genSimInfo::cHadronEne
double cHadronEne
Definition: GenSimInfo.h:46
CaloTopology.h
HcalTopology.h
spr::genSimInfo::maxNearP
double maxNearP
Definition: GenSimInfo.h:45
DetId.h
Frameworkfwd.h
CaloPropagateTrack.h
CaloGeometry.h
GlobalVector.h
spr::genSimInfo::cHadronEne_
double cHadronEne_[3]
Definition: GenSimInfo.h:48
spr::genSimInfo::photonEne
double photonEne
Definition: GenSimInfo.h:46
spr::genSimInfo::isChargedIso
bool isChargedIso
Definition: GenSimInfo.h:47
HGC3DClusterGenMatchSelector_cfi.dR
dR
Definition: HGC3DClusterGenMatchSelector_cfi.py:7
HepMCProduct.h
EgammaValidation_cff.pdgid
pdgid
Definition: EgammaValidation_cff.py:30