CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
CaloParticleDebugger Class Reference
Inheritance diagram for CaloParticleDebugger:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 CaloParticleDebugger (const edm::ParameterSet &)
 
 ~CaloParticleDebugger () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
void endJob () override
 
void fillSimHits (std::map< int, float > &, const edm::Event &, const edm::EventSetup &)
 

Private Attributes

edm::InputTag caloParticles_
 
edm::EDGetTokenT< std::vector< CaloParticle > > caloParticlesToken_
 
std::vector< edm::InputTagcollectionTags_
 
std::vector< edm::EDGetTokenT< std::vector< PCaloHit > > > collectionTagsToken_
 
edm::InputTag genParticles_
 
edm::EDGetTokenT< std::vector< reco::GenParticle > > genParticlesToken_
 
int geometryType_ = 0
 
edm::InputTag simClusters_
 
edm::EDGetTokenT< std::vector< SimCluster > > simClustersToken_
 
edm::InputTag simTracks_
 
edm::EDGetTokenT< std::vector< SimTrack > > simTracksToken_
 
edm::InputTag simVertices_
 
edm::EDGetTokenT< std::vector< SimVertex > > simVerticesToken_
 
edm::InputTag trackingParticles_
 
edm::EDGetTokenT< std::vector< TrackingParticle > > trackingParticlesToken_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 47 of file CaloParticleDebugger.cc.

Constructor & Destructor Documentation

◆ CaloParticleDebugger()

CaloParticleDebugger::CaloParticleDebugger ( const edm::ParameterSet iConfig)
explicit

Definition at line 88 of file CaloParticleDebugger.cc.

89  : simTracks_(iConfig.getParameter<edm::InputTag>("simTracks")),
90  genParticles_(iConfig.getParameter<edm::InputTag>("genParticles")),
91  simVertices_(iConfig.getParameter<edm::InputTag>("simVertices")),
92  trackingParticles_(iConfig.getParameter<edm::InputTag>("trackingParticles")),
93  caloParticles_(iConfig.getParameter<edm::InputTag>("caloParticles")),
94  simClusters_(iConfig.getParameter<edm::InputTag>("simClusters")),
95  collectionTags_(iConfig.getParameter<std::vector<edm::InputTag>>("collectionTags")) {
97  simTracksToken_ = iC.consumes<std::vector<SimTrack>>(simTracks_);
98  genParticlesToken_ = iC.consumes<std::vector<reco::GenParticle>>(genParticles_);
99  simVerticesToken_ = iC.consumes<std::vector<SimVertex>>(simVertices_);
100  trackingParticlesToken_ = iC.consumes<std::vector<TrackingParticle>>(trackingParticles_);
101  caloParticlesToken_ = iC.consumes<std::vector<CaloParticle>>(caloParticles_);
102  simClustersToken_ = iC.consumes<std::vector<SimCluster>>(simClusters_);
103  for (auto const& collectionTag : collectionTags_) {
104  collectionTagsToken_.push_back(iC.consumes<std::vector<PCaloHit>>(collectionTag));
105  }
106 }

References caloParticles_, caloParticlesToken_, collectionTags_, collectionTagsToken_, edm::ConsumesCollector::consumes(), edm::EDConsumerBase::consumesCollector(), genParticles_, genParticlesToken_, simClusters_, simClustersToken_, simTracks_, simTracksToken_, simVertices_, simVerticesToken_, trackingParticles_, and trackingParticlesToken_.

◆ ~CaloParticleDebugger()

CaloParticleDebugger::~CaloParticleDebugger ( )
override

Definition at line 108 of file CaloParticleDebugger.cc.

108 {}

Member Function Documentation

◆ analyze()

void CaloParticleDebugger::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 115 of file CaloParticleDebugger.cc.

115  {
116  using namespace edm;
117  using std::begin;
118  using std::end;
119  using std::iota;
120  using std::sort;
121 
125  edm::Handle<std::vector<TrackingParticle>> trackingParticlesH;
128 
129  iEvent.getByToken(simTracksToken_, simTracksH);
130  auto const& tracks = *simTracksH.product();
131  std::vector<int> sorted_tracks_idx(tracks.size());
132  iota(begin(sorted_tracks_idx), end(sorted_tracks_idx), 0);
133  sort(begin(sorted_tracks_idx), end(sorted_tracks_idx), [&tracks](int i, int j) {
134  return tracks[i].momentum().eta() < tracks[j].momentum().eta();
135  });
136 
138  auto const& genParticles = *genParticlesH.product();
139  std::vector<int> sorted_genParticles_idx(genParticles.size());
140  iota(begin(sorted_genParticles_idx), end(sorted_genParticles_idx), 0);
141  sort(begin(sorted_genParticles_idx), end(sorted_genParticles_idx), [&genParticles](int i, int j) {
142  return genParticles[i].momentum().eta() < genParticles[j].momentum().eta();
143  });
144 
145  iEvent.getByToken(simVerticesToken_, simVerticesH);
146  auto const& vertices = *simVerticesH.product();
147  std::vector<int> sorted_vertices_idx(vertices.size());
148  iota(begin(sorted_vertices_idx), end(sorted_vertices_idx), 0);
149  sort(begin(sorted_vertices_idx), end(sorted_vertices_idx), [&vertices](int i, int j) {
150  return vertices[i].vertexId() < vertices[j].vertexId();
151  });
152 
153  iEvent.getByToken(trackingParticlesToken_, trackingParticlesH);
154  auto const& trackingpart = *trackingParticlesH.product();
155  std::vector<int> sorted_tp_idx(trackingpart.size());
156  iota(begin(sorted_tp_idx), end(sorted_tp_idx), 0);
157  sort(begin(sorted_tp_idx), end(sorted_tp_idx), [&trackingpart](int i, int j) {
158  return trackingpart[i].eta() < trackingpart[j].eta();
159  });
160 
161  iEvent.getByToken(caloParticlesToken_, caloParticlesH);
162  auto const& calopart = *caloParticlesH.product();
163  std::vector<int> sorted_cp_idx(calopart.size());
164  iota(begin(sorted_cp_idx), end(sorted_cp_idx), 0);
165  sort(begin(sorted_cp_idx), end(sorted_cp_idx), [&calopart](int i, int j) {
166  return calopart[i].eta() < calopart[j].eta();
167  });
168 
169  iEvent.getByToken(simClustersToken_, simClustersH);
170  auto const& simclusters = *simClustersH.product();
171  std::vector<int> sorted_simcl_idx(simclusters.size());
172  iota(begin(sorted_simcl_idx), end(sorted_simcl_idx), 0);
173  sort(begin(sorted_simcl_idx), end(sorted_simcl_idx), [&simclusters](int i, int j) {
174  return simclusters[i].eta() < simclusters[j].eta();
175  });
176 
177  // Let's first fill in hits information
178  std::map<int, float> detIdToTotalSimEnergy;
179  fillSimHits(detIdToTotalSimEnergy, iEvent, iSetup);
180 
181  int idx = 0;
182 
183  std::map<int, int> trackid_to_track_index;
184  std::cout << "Printing SimTracks information" << std::endl;
185  std::cout << "IDX\tTrackId\tPDGID\tMOMENTUM(x,y,z,E)\tVertexIdx\tGenPartIdx" << std::endl;
186  for (auto i : sorted_tracks_idx) {
187  auto const& t = tracks[i];
188  std::cout << idx << "\t" << t.trackId() << "\t" << t << std::endl;
189  trackid_to_track_index[t.trackId()] = idx;
190  idx++;
191  }
192 
193  std::cout << "Printing GenParticles information" << std::endl;
194  std::cout << "IDX\tPDGID\tMOMENTUM(x,y,z)\tVertex(x,y,z)" << std::endl;
195  for (auto i : sorted_genParticles_idx) {
196  auto const& gp = genParticles[i];
197  std::cout << i << "\t" << gp.pdgId() << "\t" << gp.momentum() << "\t" << gp.vertex() << std::endl;
198  }
199 
200  std::cout << "Printing SimVertex information" << std::endl;
201  std::cout << "IDX\tPOSITION(x,y,z)\tPARENT_INDEX\tVERTEX_ID" << std::endl;
202  for (auto i : sorted_vertices_idx) {
203  auto const& v = vertices[i];
204  std::cout << i << "\t" << v << std::endl;
205  }
206  std::cout << "Printing TrackingParticles information" << std::endl;
207  for (auto i : sorted_tp_idx) {
208  auto const& tp = trackingpart[i];
209  std::cout << i << "\t" << tp << std::endl;
210  }
211 
212  std::cout << "Printing CaloParticles information" << std::endl;
213  idx = 0;
214  for (auto i : sorted_cp_idx) {
215  auto const& cp = calopart[i];
216  std::cout << "\n\n"
217  << idx++ << " |Eta|: " << std::abs(cp.momentum().eta()) << "\tType: " << cp.pdgId()
218  << "\tEnergy: " << cp.energy() << "\tIdx: " << cp.g4Tracks()[0].trackId()
219  << std::endl; // << cp << std::endl;
220  double total_sim_energy = 0.;
221  double total_cp_energy = 0.;
222  std::cout << "--> Overall simclusters's size: " << cp.simClusters().size() << std::endl;
223  // All the next mess just to print the simClusters ordered
224  auto const& simcs = cp.simClusters();
225  std::vector<int> sorted_sc_idx(simcs.size());
226  iota(begin(sorted_sc_idx), end(sorted_sc_idx), 0);
227  sort(begin(sorted_sc_idx), end(sorted_sc_idx), [&simcs](int i, int j) {
228  return simcs[i]->momentum().eta() < simcs[j]->momentum().eta();
229  });
230  for (auto i : sorted_sc_idx) {
231  std::cout << *(simcs[i]);
232  }
233 
234  for (auto const& sc : cp.simClusters()) {
235  for (auto const& cl : sc->hits_and_fractions()) {
236  total_sim_energy += detIdToTotalSimEnergy[cl.first] * cl.second;
237  total_cp_energy += cp.energy() * cl.second;
238  }
239  }
240  std::cout << "--> Overall SC energy (sum using sim energies): " << total_sim_energy << std::endl;
241  std::cout << "--> Overall SC energy (sum using CaloP energies): " << total_cp_energy << std::endl;
242  }
243 
244  idx = 0;
245  std::cout << "Printing SimClusters information" << std::endl;
246  for (auto i : sorted_simcl_idx) {
247  auto const& simcl = simclusters[i];
248  std::cout << "\n\n"
249  << idx++ << " |Eta|: " << std::abs(simcl.momentum().eta()) << "\tType: " << simcl.pdgId()
250  << "\tEnergy: " << simcl.energy() << "\tKey: " << i << std::endl; // << simcl << std::endl;
251  double total_sim_energy = 0.;
252  std::cout << "--> Overall simclusters's size: " << simcl.numberOfRecHits() << std::endl;
253  for (auto const& cl : simcl.hits_and_fractions()) {
254  total_sim_energy += detIdToTotalSimEnergy[cl.first] * cl.second;
255  }
256  std::cout << simcl << std::endl;
257  std::cout << "--> Overall SimCluster energy (sum using sim energies): " << total_sim_energy << std::endl;
258  }
259 }

References funct::abs(), caloParticlesToken_, GetRecoTauVFromDQM_MC_cff::cl, gather_cfg::cout, CommonMethods::cp(), mps_fire::end, fillSimHits(), genParticles2HepMC_cfi::genParticles, runTauDisplay::genParticlesH, genParticlesToken_, runTauDisplay::gp, mps_fire::i, heavyIonCSV_trainingSettings::idx, iEvent, dqmiolumiharvest::j, edm::Handle< T >::product(), simClustersToken_, simTracksToken_, simVerticesToken_, submitPVValidationJobs::t, cmsswSequenceInfo::tp, trackingParticlesToken_, PDWG_EXOHSCP_cff::tracks, findQualityFiles::v, and pwdgSkimBPark_cfi::vertices.

◆ beginJob()

void CaloParticleDebugger::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 262 of file CaloParticleDebugger.cc.

262 {}

◆ endJob()

void CaloParticleDebugger::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 265 of file CaloParticleDebugger.cc.

265 {}

◆ fillDescriptions()

void CaloParticleDebugger::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 345 of file CaloParticleDebugger.cc.

345  {
347  desc.add<edm::InputTag>("simTracks", edm::InputTag("g4SimHits"));
348  desc.add<edm::InputTag>("genParticles", edm::InputTag("genParticles"));
349  desc.add<edm::InputTag>("simVertices", edm::InputTag("g4SimHits"));
350  desc.add<edm::InputTag>("trackingParticles", edm::InputTag("mix", "MergedTrackTruth"));
351  desc.add<edm::InputTag>("caloParticles", edm::InputTag("mix", "MergedCaloTruth"));
352  desc.add<edm::InputTag>("simClusters", edm::InputTag("mix", "MergedCaloTruth"));
353  desc.add<std::vector<edm::InputTag>>("collectionTags",
354  {edm::InputTag("g4SimHits", "HGCHitsEE"),
355  edm::InputTag("g4SimHits", "HGCHitsHEfront"),
356  edm::InputTag("g4SimHits", "HcalHits")});
357  descriptions.add("caloParticleDebugger", desc);
358 }

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and HLT_FULL_cff::InputTag.

◆ fillSimHits()

void CaloParticleDebugger::fillSimHits ( std::map< int, float > &  detIdToTotalSimEnergy,
const edm::Event iEvent,
const edm::EventSetup iSetup 
)
private

Definition at line 267 of file CaloParticleDebugger.cc.

269  {
270  // Taken needed quantities from the EventSetup
272  iSetup.get<CaloGeometryRecord>().get(geom);
273  const HGCalGeometry *eegeom = nullptr, *fhgeom = nullptr, *bhgeomnew = nullptr;
274  const HcalGeometry* bhgeom = nullptr;
275  const HGCalDDDConstants* hgddd[3];
276  const HGCalTopology* hgtopo[3];
277  const HcalDDDRecConstants* hcddd = nullptr;
278  eegeom =
279  static_cast<const HGCalGeometry*>(geom->getSubdetectorGeometry(DetId::HGCalEE, ForwardSubdetector::ForwardEmpty));
280  //check if it's the new geometry
281  if (eegeom) {
282  geometryType_ = 1;
283  fhgeom = static_cast<const HGCalGeometry*>(
284  geom->getSubdetectorGeometry(DetId::HGCalHSi, ForwardSubdetector::ForwardEmpty));
285  bhgeomnew = static_cast<const HGCalGeometry*>(
286  geom->getSubdetectorGeometry(DetId::HGCalHSc, ForwardSubdetector::ForwardEmpty));
287  } else {
288  geometryType_ = 0;
289  eegeom = static_cast<const HGCalGeometry*>(geom->getSubdetectorGeometry(DetId::Forward, HGCEE));
290  fhgeom = static_cast<const HGCalGeometry*>(geom->getSubdetectorGeometry(DetId::Forward, HGCHEF));
291  bhgeom = static_cast<const HcalGeometry*>(geom->getSubdetectorGeometry(DetId::Hcal, HcalEndcap));
292  }
293  hgtopo[0] = &(eegeom->topology());
294  hgtopo[1] = &(fhgeom->topology());
295  if (bhgeomnew)
296  hgtopo[2] = &(bhgeomnew->topology());
297 
298  for (unsigned i = 0; i < 3; ++i) {
299  if (hgtopo[i])
300  hgddd[i] = &(hgtopo[i]->dddConstants());
301  }
302 
303  if (bhgeom)
304  hcddd = bhgeom->topology().dddConstants();
305 
306  // loop over the collections
307  int token = 0;
308  for (auto const& collectionTag : collectionTags_) {
310  const bool isHcal = (collectionTag.instance().find("HcalHits") != std::string::npos);
311  iEvent.getByToken(collectionTagsToken_[token++], hSimHits);
312  for (auto const& simHit : *hSimHits) {
313  DetId id(0);
314  const uint32_t simId = simHit.id();
315  if (geometryType_ == 1) {
316  //no test numbering in new geometry
317  id = simId;
318  } else if (isHcal) {
319  assert(hcddd);
320  HcalDetId hid = HcalHitRelabeller::relabel(simId, hcddd);
321  if (hid.subdet() == HcalEndcap)
322  id = hid;
323  } else {
324  int subdet, layer, cell, sec, subsec, zp;
325  HGCalTestNumbering::unpackHexagonIndex(simId, subdet, zp, layer, sec, subsec, cell);
326  const HGCalDDDConstants* ddd = hgddd[subdet - 3];
327  std::pair<int, int> recoLayerCell = ddd->simToReco(cell, layer, sec, hgtopo[subdet - 3]->detectorType());
328  cell = recoLayerCell.first;
329  layer = recoLayerCell.second;
330  // skip simhits with bad barcodes or non-existant layers
331  if (layer == -1 || simHit.geantTrackId() == 0)
332  continue;
333  id = HGCalDetId((ForwardSubdetector)subdet, zp, layer, subsec, sec, cell);
334  }
335 
336  if (DetId(0) == id)
337  continue;
338 
339  detIdToTotalSimEnergy[id.rawId()] += simHit.energy();
340  }
341  } // end of loop over InputTags
342 }

References cms::cuda::assert(), collectionTags_, collectionTagsToken_, HGCalTopology::dddConstants(), HcalTopology::dddConstants(), EcalMappingRecord_cfi::eegeom, DetId::Forward, ForwardEmpty, relativeConstraints::geom, geometryType_, edm::EventSetup::get(), get, DetId::Hcal, HcalEndcap, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCEE, HGCHEF, mps_fire::i, triggerObjects_cff::id, iEvent, HcalHitRelabeller::relabel(), fileinputsource_cfi::sec, rpcPointValidation_cfi::simHit, HGCalDDDConstants::simToReco(), HcalDetId::subdet(), unpackBuffers-CaloStage2::token, HcalGeometry::topology(), and HGCalTestNumbering::unpackHexagonIndex().

Referenced by analyze().

Member Data Documentation

◆ caloParticles_

edm::InputTag CaloParticleDebugger::caloParticles_
private

Definition at line 63 of file CaloParticleDebugger.cc.

Referenced by CaloParticleDebugger().

◆ caloParticlesToken_

edm::EDGetTokenT<std::vector<CaloParticle> > CaloParticleDebugger::caloParticlesToken_
private

Definition at line 70 of file CaloParticleDebugger.cc.

Referenced by analyze(), and CaloParticleDebugger().

◆ collectionTags_

std::vector<edm::InputTag> CaloParticleDebugger::collectionTags_
private

Definition at line 65 of file CaloParticleDebugger.cc.

Referenced by CaloParticleDebugger(), and fillSimHits().

◆ collectionTagsToken_

std::vector<edm::EDGetTokenT<std::vector<PCaloHit> > > CaloParticleDebugger::collectionTagsToken_
private

Definition at line 72 of file CaloParticleDebugger.cc.

Referenced by CaloParticleDebugger(), and fillSimHits().

◆ genParticles_

edm::InputTag CaloParticleDebugger::genParticles_
private

Definition at line 60 of file CaloParticleDebugger.cc.

Referenced by CaloParticleDebugger().

◆ genParticlesToken_

edm::EDGetTokenT<std::vector<reco::GenParticle> > CaloParticleDebugger::genParticlesToken_
private

Definition at line 67 of file CaloParticleDebugger.cc.

Referenced by analyze(), and CaloParticleDebugger().

◆ geometryType_

int CaloParticleDebugger::geometryType_ = 0
private

Definition at line 73 of file CaloParticleDebugger.cc.

Referenced by fillSimHits().

◆ simClusters_

edm::InputTag CaloParticleDebugger::simClusters_
private

Definition at line 64 of file CaloParticleDebugger.cc.

Referenced by CaloParticleDebugger().

◆ simClustersToken_

edm::EDGetTokenT<std::vector<SimCluster> > CaloParticleDebugger::simClustersToken_
private

Definition at line 71 of file CaloParticleDebugger.cc.

Referenced by analyze(), and CaloParticleDebugger().

◆ simTracks_

edm::InputTag CaloParticleDebugger::simTracks_
private

Definition at line 59 of file CaloParticleDebugger.cc.

Referenced by CaloParticleDebugger().

◆ simTracksToken_

edm::EDGetTokenT<std::vector<SimTrack> > CaloParticleDebugger::simTracksToken_
private

Definition at line 66 of file CaloParticleDebugger.cc.

Referenced by analyze(), and CaloParticleDebugger().

◆ simVertices_

edm::InputTag CaloParticleDebugger::simVertices_
private

Definition at line 61 of file CaloParticleDebugger.cc.

Referenced by CaloParticleDebugger().

◆ simVerticesToken_

edm::EDGetTokenT<std::vector<SimVertex> > CaloParticleDebugger::simVerticesToken_
private

Definition at line 68 of file CaloParticleDebugger.cc.

Referenced by analyze(), and CaloParticleDebugger().

◆ trackingParticles_

edm::InputTag CaloParticleDebugger::trackingParticles_
private

Definition at line 62 of file CaloParticleDebugger.cc.

Referenced by CaloParticleDebugger().

◆ trackingParticlesToken_

edm::EDGetTokenT<std::vector<TrackingParticle> > CaloParticleDebugger::trackingParticlesToken_
private

Definition at line 69 of file CaloParticleDebugger.cc.

Referenced by analyze(), and CaloParticleDebugger().

CaloParticleDebugger::simVertices_
edm::InputTag simVertices_
Definition: CaloParticleDebugger.cc:61
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
mps_fire.i
i
Definition: mps_fire.py:428
HGCalTopology::dddConstants
const HGCalDDDConstants & dddConstants() const
Definition: HGCalTopology.h:98
genParticles2HepMC_cfi.genParticles
genParticles
Definition: genParticles2HepMC_cfi.py:4
edm::Handle::product
T const * product() const
Definition: Handle.h:70
ForwardEmpty
Definition: ForwardSubdetector.h:5
HcalDDDRecConstants::dddConstants
const HcalDDDSimConstants * dddConstants() const
Definition: HcalDDDRecConstants.h:126
ForwardSubdetector
ForwardSubdetector
Definition: ForwardSubdetector.h:4
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
edm
HLT enums.
Definition: AlignableModifier.h:19
gather_cfg.cout
cout
Definition: gather_cfg.py:144
HGCalTestNumbering::unpackHexagonIndex
static void unpackHexagonIndex(const uint32_t &idx, int &subdet, int &z, int &lay, int &wafer, int &celltyp, int &cell)
Definition: HGCalTestNumbering.cc:47
runTauDisplay.genParticlesH
genParticlesH
Definition: runTauDisplay.py:30
DetId::Hcal
Definition: DetId.h:28
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89353
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
cms::cuda::assert
assert(be >=bs)
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:46
CaloParticleDebugger::trackingParticlesToken_
edm::EDGetTokenT< std::vector< TrackingParticle > > trackingParticlesToken_
Definition: CaloParticleDebugger.cc:69
CaloParticleDebugger::simClusters_
edm::InputTag simClusters_
Definition: CaloParticleDebugger.cc:64
findQualityFiles.v
v
Definition: findQualityFiles.py:179
EcalMappingRecord_cfi.eegeom
eegeom
Definition: EcalMappingRecord_cfi.py:3
edm::Handle
Definition: AssociativeIterator.h:50
CaloParticleDebugger::caloParticlesToken_
edm::EDGetTokenT< std::vector< CaloParticle > > caloParticlesToken_
Definition: CaloParticleDebugger.cc:70
CaloParticleDebugger::collectionTagsToken_
std::vector< edm::EDGetTokenT< std::vector< PCaloHit > > > collectionTagsToken_
Definition: CaloParticleDebugger.cc:72
HGCalDDDConstants
Definition: HGCalDDDConstants.h:26
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
GetRecoTauVFromDQM_MC_cff.cl
cl
Definition: GetRecoTauVFromDQM_MC_cff.py:38
DetId
Definition: DetId.h:17
DetId::HGCalHSi
Definition: DetId.h:33
DetId::HGCalEE
Definition: DetId.h:32
CaloParticleDebugger::geometryType_
int geometryType_
Definition: CaloParticleDebugger.cc:73
CaloParticleDebugger::simClustersToken_
edm::EDGetTokenT< std::vector< SimCluster > > simClustersToken_
Definition: CaloParticleDebugger.cc:71
HGCalDDDConstants::simToReco
std::pair< int, int > simToReco(int cell, int layer, int mod, bool half) const
Definition: HGCalDDDConstants.cc:1016
CaloParticleDebugger::genParticles_
edm::InputTag genParticles_
Definition: CaloParticleDebugger.cc:60
edm::EventSetup::get
T get() const
Definition: EventSetup.h:80
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
rpcPointValidation_cfi.simHit
simHit
Definition: rpcPointValidation_cfi.py:24
mps_fire.end
end
Definition: mps_fire.py:242
edm::ESHandle< CaloGeometry >
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:55
HGCalGeometry
Definition: HGCalGeometry.h:29
cmsswSequenceInfo.tp
tp
Definition: cmsswSequenceInfo.py:17
HGCEE
Definition: ForwardSubdetector.h:8
CaloParticleDebugger::genParticlesToken_
edm::EDGetTokenT< std::vector< reco::GenParticle > > genParticlesToken_
Definition: CaloParticleDebugger.cc:67
runTauDisplay.gp
gp
Definition: runTauDisplay.py:431
HcalDetId::subdet
constexpr HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:138
HcalDetId
Definition: HcalDetId.h:12
iEvent
int iEvent
Definition: GenABIO.cc:224
get
#define get
CaloParticleDebugger::simTracks_
edm::InputTag simTracks_
Definition: CaloParticleDebugger.cc:59
fileinputsource_cfi.sec
sec
Definition: fileinputsource_cfi.py:87
HGCalTopology
Definition: HGCalTopology.h:12
CaloParticleDebugger::fillSimHits
void fillSimHits(std::map< int, float > &, const edm::Event &, const edm::EventSetup &)
Definition: CaloParticleDebugger.cc:267
HcalHitRelabeller::relabel
DetId relabel(const uint32_t testId) const
Definition: HcalHitRelabeller.cc:49
HGCalDetId
Definition: HGCalDetId.h:8
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
CaloParticleDebugger::collectionTags_
std::vector< edm::InputTag > collectionTags_
Definition: CaloParticleDebugger.cc:65
CaloParticleDebugger::simTracksToken_
edm::EDGetTokenT< std::vector< SimTrack > > simTracksToken_
Definition: CaloParticleDebugger.cc:66
HcalEndcap
Definition: HcalAssistant.h:34
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
DetId::HGCalHSc
Definition: DetId.h:34
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
CaloParticleDebugger::simVerticesToken_
edm::EDGetTokenT< std::vector< SimVertex > > simVerticesToken_
Definition: CaloParticleDebugger.cc:68
HcalDDDRecConstants
Definition: HcalDDDRecConstants.h:23
HGCHEF
Definition: ForwardSubdetector.h:9
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
CaloParticleDebugger::caloParticles_
edm::InputTag caloParticles_
Definition: CaloParticleDebugger.cc:63
DetId::Forward
Definition: DetId.h:30
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
CommonMethods.cp
def cp(fromDir, toDir, listOfFiles, overwrite=False, smallList=False)
Definition: CommonMethods.py:192
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
HcalGeometry
Definition: HcalGeometry.h:17
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
pwdgSkimBPark_cfi.vertices
vertices
Definition: pwdgSkimBPark_cfi.py:7
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:318
CaloParticleDebugger::trackingParticles_
edm::InputTag trackingParticles_
Definition: CaloParticleDebugger.cc:62