CMS 3D CMS Logo

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

Public Member Functions

 CaloSimHitAnalysis (const edm::ParameterSet &ps)
 
 ~CaloSimHitAnalysis () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::SharedResources >
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > 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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices 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)
 

Protected Member Functions

void analyze (edm::Event const &, edm::EventSetup const &) override
 
void analyzeHits (std::vector< PCaloHit > &, int)
 
void analyzePassiveHits (std::vector< PassiveHit > &hits)
 
void beginJob () override
 
void beginRun (edm::Run const &, edm::EventSetup const &) override
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Private Attributes

const int allSteps_
 
const CaloGeometrycaloGeometry_
 
const std::vector< std::string > detNames_
 
std::map< int, unsigned int > etaDepth_
 
const std::string g4Label_
 
TH1F * h_edep1_ [nCalo_]
 
TH1F * h_edep_ [nCalo_]
 
TH1F * h_edepEM_ [nCalo_]
 
TH1F * h_edepHad_ [nCalo_]
 
TH1F * h_edepp_
 
TH1F * h_edepT1_ [nCalo_]
 
TH1F * h_edepT_ [nCalo_]
 
std::vector< TH1F * > h_edepTk_
 
TH1F * h_eta_ [nCalo_]
 
TH2F * h_etaphi_
 
TH1F * h_etot_ [nCalo_]
 
TH1F * h_etotg_ [nCalo_]
 
TH1F * h_hit_ [nCalo_]
 
TH1F * h_hitp_
 
TH1F * h_phi_ [nCalo_]
 
TH1F * h_rr_ [nCalo_]
 
TH2F * h_rz1_
 
TH2F * h_rz_
 
std::vector< TH2F * > h_rzH_
 
TH1F * h_stepp_
 
TH1F * h_time_ [nCalo_]
 
TH1F * h_timep_
 
TH1F * h_timeT_ [nCalo_]
 
std::vector< TH1F * > h_timeTk_
 
TH1F * h_trackp_
 
TH1F * h_zz_ [nCalo_]
 
const HcalGeometryhcalGeom_
 
const std::vector< std::string > hitLab_
 
const double maxEnergy_
 
const double maxTime_
 
const bool passive_
 
const double tCut_
 
const bool testNumber_
 
const std::vector< double > timeSliceUnit_
 
const double tMax_
 
const edm::EDGetTokenT< edm::PassiveHitContainertok_passive_
 
const edm::ESGetToken< CaloGeometry, CaloGeometryRecordtokGeom_
 
const std::vector< edm::EDGetTokenT< edm::PCaloHitContainer > > toks_calo_
 
const double tScale_
 

Static Private Attributes

static constexpr int nCalo_ = 6
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Detailed Description

Definition at line 45 of file CaloSimHitAnalysis.cc.

Constructor & Destructor Documentation

◆ CaloSimHitAnalysis()

CaloSimHitAnalysis::CaloSimHitAnalysis ( const edm::ParameterSet ps)

Definition at line 87 of file CaloSimHitAnalysis.cc.

References g4Label_, hitLab_, Skims_PA_cff::name, AlCaHLTBitMon_QueryRunRegistry::string, and edm::vector_transform().

88  : g4Label_(ps.getUntrackedParameter<std::string>("moduleLabel", "g4SimHits")),
89  hitLab_(ps.getParameter<std::vector<std::string> >("hitCollection")),
90  timeSliceUnit_(ps.getParameter<std::vector<double> >("timeSliceUnit")),
91  maxEnergy_(ps.getUntrackedParameter<double>("maxEnergy", 250.0)),
92  maxTime_(ps.getUntrackedParameter<double>("maxTime", 1000.0)),
93  tMax_(ps.getUntrackedParameter<double>("timeCut", 100.0)),
94  tScale_(ps.getUntrackedParameter<double>("timeScale", 1.0)),
95  tCut_(ps.getUntrackedParameter<double>("timeThreshold", 15.0)),
96  testNumber_(ps.getUntrackedParameter<bool>("testNumbering", false)),
97  passive_(ps.getUntrackedParameter<bool>("passiveHits", false)),
98  allSteps_(ps.getUntrackedParameter<int>("allSteps", 100)),
99  detNames_(ps.getUntrackedParameter<std::vector<std::string> >("detNames")),
100  tokGeom_(esConsumes<CaloGeometry, CaloGeometryRecord>()),
102  [this](const std::string& name) {
103  return consumes<edm::PCaloHitContainer>(edm::InputTag{g4Label_, name});
104  })},
105  tok_passive_(consumes<edm::PassiveHitContainer>(edm::InputTag(g4Label_, "AllPassiveHits"))) {
106  usesResource(TFileService::kSharedResource);
107 
108  edm::LogVerbatim("HitStudy") << "Module Label: " << g4Label_ << " Hits|timeSliceUnit:";
109  for (unsigned int i = 0; i < hitLab_.size(); i++)
110  edm::LogVerbatim("HitStudy") << "[" << i << "] " << hitLab_[i] << " " << timeSliceUnit_[i];
111  edm::LogVerbatim("HitStudy") << "Passive Hits " << passive_ << " from AllPassiveHits";
112  edm::LogVerbatim("HitStudy") << "maxEnergy: " << maxEnergy_ << " maxTime: " << maxTime_ << " tMax: " << tMax_;
113  for (unsigned int k = 0; k < detNames_.size(); ++k)
114  edm::LogVerbatim("HitStudy") << "Detector[" << k << "] " << detNames_[k];
115 
117  if (!tfile.isAvailable())
118  throw cms::Exception("BadConfig") << "TFileService unavailable: "
119  << "please add it to config file";
120  char name[29], title[120];
121  std::string dets[nCalo_] = {"EB", "EE", "HB", "HE", "HO", "HF"};
122  for (int i = 0; i < nCalo_; i++) {
123  sprintf(name, "Hit%d", i);
124  sprintf(title, "Number of hits in %s", dets[i].c_str());
125  h_hit_[i] = tfile->make<TH1F>(name, title, 100, 0., 20000.);
126  h_hit_[i]->GetXaxis()->SetTitle(title);
127  h_hit_[i]->GetYaxis()->SetTitle("Events");
128  sprintf(name, "Time%d", i);
129  sprintf(title, "Time of the hit (ns) in %s", dets[i].c_str());
130  h_time_[i] = tfile->make<TH1F>(name, title, 100, 0., 200.);
131  h_time_[i]->GetXaxis()->SetTitle(title);
132  h_time_[i]->GetYaxis()->SetTitle("Hits");
133  sprintf(name, "TimeT%d", i);
134  sprintf(title, "Time of each hit (ns) in %s", dets[i].c_str());
135  h_timeT_[i] = tfile->make<TH1F>(name, title, 100, 0., 200.);
136  h_timeT_[i]->GetXaxis()->SetTitle(title);
137  h_timeT_[i]->GetYaxis()->SetTitle("Hits");
138  double ymax = (i > 1) ? 0.01 : 0.1;
139  double ymx0 = (i > 1) ? 0.0025 : 0.025;
140  sprintf(name, "Edep%d", i);
141  sprintf(title, "Energy deposit (GeV) in %s", dets[i].c_str());
142  h_edep_[i] = tfile->make<TH1F>(name, title, 100, 0., ymax);
143  h_edep_[i]->GetXaxis()->SetTitle(title);
144  h_edep_[i]->GetYaxis()->SetTitle("Hits");
145  sprintf(name, "EdepT%d", i);
146  sprintf(title, "Energy deposit (GeV) of each hit in %s", dets[i].c_str());
147  h_edepT_[i] = tfile->make<TH1F>(name, title, 100, 0., ymx0);
148  h_edepT_[i]->GetXaxis()->SetTitle(title);
149  h_edepT_[i]->GetYaxis()->SetTitle("Hits");
150  sprintf(name, "EdepEM%d", i);
151  sprintf(title, "Energy deposit (GeV) by EM particles in %s", dets[i].c_str());
152  h_edepEM_[i] = tfile->make<TH1F>(name, title, 100, 0., ymx0);
153  h_edepEM_[i]->GetXaxis()->SetTitle(title);
154  h_edepEM_[i]->GetYaxis()->SetTitle("Hits");
155  sprintf(name, "EdepHad%d", i);
156  sprintf(title, "Energy deposit (GeV) by hadrons in %s", dets[i].c_str());
157  h_edepHad_[i] = tfile->make<TH1F>(name, title, 100, 0., ymx0);
158  h_edepHad_[i]->GetXaxis()->SetTitle(title);
159  h_edepHad_[i]->GetYaxis()->SetTitle("Hits");
160  sprintf(name, "Edep15%d", i);
161  sprintf(title, "Energy deposit (GeV) for T > %4.0f ns in %s", tCut_, dets[i].c_str());
162  h_edep1_[i] = tfile->make<TH1F>(name, title, 100, 0., ymax);
163  h_edep1_[i]->GetXaxis()->SetTitle(title);
164  h_edep1_[i]->GetYaxis()->SetTitle("Hits");
165  sprintf(name, "EdepT15%d", i);
166  sprintf(title, "Energy deposit (GeV) of each hit for T > %4.0f in %s", tCut_, dets[i].c_str());
167  h_edepT1_[i] = tfile->make<TH1F>(name, title, 100, 0., ymx0);
168  h_edepT1_[i]->GetXaxis()->SetTitle(title);
169  h_edepT1_[i]->GetYaxis()->SetTitle("Hits");
170  ymax = (i > 1) ? 1.0 : maxEnergy_;
171  sprintf(name, "Etot%d", i);
172  sprintf(title, "Total energy deposit (GeV) in %s", dets[i].c_str());
173  h_etot_[i] = tfile->make<TH1F>(name, title, 50, 0., ymax);
174  h_etot_[i]->GetXaxis()->SetTitle(title);
175  h_etot_[i]->GetYaxis()->SetTitle("Events");
176  sprintf(name, "EtotG%d", i);
177  sprintf(title, "Total energy deposit (GeV) in %s (t < 100 ns)", dets[i].c_str());
178  h_etotg_[i] = tfile->make<TH1F>(name, title, 50, 0., ymax);
179  h_etotg_[i]->GetXaxis()->SetTitle(title);
180  h_etotg_[i]->GetYaxis()->SetTitle("Events");
181  sprintf(name, "rr%d", i);
182  sprintf(title, "R of hit point (cm) in %s", dets[i].c_str());
183  h_rr_[i] = tfile->make<TH1F>(name, title, 100, 0., 250.);
184  h_rr_[i]->GetXaxis()->SetTitle(title);
185  h_rr_[i]->GetYaxis()->SetTitle("Hits");
186  sprintf(name, "zz%d", i);
187  sprintf(title, "z of hit point (cm) in %s", dets[i].c_str());
188  h_zz_[i] = tfile->make<TH1F>(name, title, 240, -600., 600.);
189  h_zz_[i]->GetXaxis()->SetTitle(title);
190  h_zz_[i]->GetYaxis()->SetTitle("Hits");
191  sprintf(name, "eta%d", i);
192  sprintf(title, "#eta of hit point in %s", dets[i].c_str());
193  h_eta_[i] = tfile->make<TH1F>(name, title, 100, -5.0, 5.0);
194  h_eta_[i]->GetXaxis()->SetTitle(title);
195  h_eta_[i]->GetYaxis()->SetTitle("Hits");
196  sprintf(name, "phi%d", i);
197  sprintf(title, "#phi of hit point in %s", dets[i].c_str());
198  h_phi_[i] = tfile->make<TH1F>(name, title, 100, -M_PI, M_PI);
199  h_phi_[i]->GetXaxis()->SetTitle(title);
200  h_phi_[i]->GetYaxis()->SetTitle("Hits");
201  }
202  sprintf(title, "R vs Z of hit point");
203  h_rz_ = tfile->make<TH2F>("rz", title, 120, 0., 600., 100, 0., 250.);
204  h_rz_->GetXaxis()->SetTitle("z (cm)");
205  h_rz_->GetYaxis()->SetTitle("R (cm)");
206  sprintf(title, "R vs Z of hit point for hits with T > %4.0f ns", tCut_);
207  h_rz1_ = tfile->make<TH2F>("rz2", title, 120, 0., 600., 100, 0., 250.);
208  h_rz1_->GetXaxis()->SetTitle("z (cm)");
209  h_rz1_->GetYaxis()->SetTitle("R (cm)");
210  sprintf(title, "#phi vs #eta of hit point");
211  h_etaphi_ = tfile->make<TH2F>("etaphi", title, 100, 0., 5., 100, 0., M_PI);
212  h_etaphi_->GetXaxis()->SetTitle("#eta");
213  h_etaphi_->GetYaxis()->SetTitle("#phi");
214 
215  if (passive_) {
216  h_hitp_ = tfile->make<TH1F>("hitp", "All Steps", 100, 0.0, 20000.0);
217  h_hitp_->GetXaxis()->SetTitle("Hits");
218  h_hitp_->GetYaxis()->SetTitle("Events");
219  h_trackp_ = tfile->make<TH1F>("trackp", "All Steps", 100, 0.0, 200000.0);
220  h_hitp_->GetXaxis()->SetTitle("Tracks");
221  h_hitp_->GetYaxis()->SetTitle("Events");
222  h_edepp_ = tfile->make<TH1F>("edepp", "All Steps", 100, 0.0, 50.0);
223  h_edepp_->GetXaxis()->SetTitle("Energy Deposit (MeV)");
224  h_edepp_->GetYaxis()->SetTitle("Hits");
225  h_timep_ = tfile->make<TH1F>("timep", "All Steps", 100, 0.0, 100.0);
226  h_timep_->GetXaxis()->SetTitle("Hits");
227  h_timep_->GetYaxis()->SetTitle("Hit Time (ns)");
228  h_stepp_ = tfile->make<TH1F>("stepp", "All Steps", 1000, 0.0, 100.0);
229  h_stepp_->GetXaxis()->SetTitle("Hits");
230  h_stepp_->GetYaxis()->SetTitle("Step length (cm)");
231  for (unsigned int k = 0; k < detNames_.size(); ++k) {
232  sprintf(name, "edept%d", k);
233  sprintf(title, "Energy Deposit (MeV) in %s", detNames_[k].c_str());
234  h_edepTk_.emplace_back(tfile->make<TH1F>(name, title, 100, 0.0, 1.0));
235  h_edepTk_.back()->GetYaxis()->SetTitle("Hits");
236  h_edepTk_.back()->GetXaxis()->SetTitle(title);
237  sprintf(name, "timet%d", k);
238  sprintf(title, "Hit Time (ns) in %s", detNames_[k].c_str());
239  h_timeTk_.emplace_back(tfile->make<TH1F>(name, title, 100, 0.0, 100.0));
240  h_timeTk_.back()->GetYaxis()->SetTitle("Hits");
241  h_timeTk_.back()->GetXaxis()->SetTitle(title);
242  }
243  if ((allSteps_ / 100) % 10 > 0) {
244  for (int eta = 1; eta <= 29; ++eta) {
245  int dmax = (eta < 16) ? 4 : 7;
246  for (int depth = 1; depth <= dmax; ++depth) {
247  sprintf(name, "Eta%dDepth%d", eta, depth);
248  sprintf(title, "R vs Z (#eta = %d, depth = %d)", eta, depth);
249  etaDepth_[eta * 100 + depth] = h_rzH_.size();
250  h_rzH_.emplace_back(tfile->make<TH2F>(name, title, 120, 0., 600., 100, 0., 250.));
251  h_rzH_.back()->GetXaxis()->SetTitle("z (cm)");
252  h_rzH_.back()->GetYaxis()->SetTitle("R (cm)");
253  }
254  }
255  }
256  }
257 }
static const std::string kSharedResource
Definition: TFileService.h:76
Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
std::map< int, unsigned int > etaDepth_
TH1F * h_edepT1_[nCalo_]
const std::vector< std::string > hitLab_
TH1F * h_timeT_[nCalo_]
TH1F * h_edepT_[nCalo_]
std::vector< TH1F * > h_edepTk_
TH1F * h_time_[nCalo_]
std::vector< TH1F * > h_timeTk_
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
Definition: transform.h:11
const std::string g4Label_
const std::vector< std::string > detNames_
T getUntrackedParameter(std::string const &, T const &) const
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > tokGeom_
const edm::EDGetTokenT< edm::PassiveHitContainer > tok_passive_
TH1F * h_edep_[nCalo_]
TH1F * h_edepHad_[nCalo_]
Definition: tfile.py:1
static constexpr int nCalo_
TH1F * h_edep1_[nCalo_]
#define M_PI
const std::vector< edm::EDGetTokenT< edm::PCaloHitContainer > > toks_calo_
TH1F * h_etot_[nCalo_]
const std::vector< double > timeSliceUnit_
std::vector< TH2F * > h_rzH_
TH1F * h_etotg_[nCalo_]
TH1F * h_edepEM_[nCalo_]

◆ ~CaloSimHitAnalysis()

CaloSimHitAnalysis::~CaloSimHitAnalysis ( )
inlineoverride

Definition at line 48 of file CaloSimHitAnalysis.cc.

48 {}

Member Function Documentation

◆ analyze()

void CaloSimHitAnalysis::analyze ( edm::Event const &  e,
edm::EventSetup const &  set 
)
overrideprotectedvirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 279 of file CaloSimHitAnalysis.cc.

References analyzeHits(), analyzePassiveHits(), caloGeometry_, MillePedeFileConverter_cfg::e, CaloGeometry::getSubdetectorGeometry(), DetId::Hcal, HcalBarrel, hcalGeom_, mps_fire::i, edm::HandleBase::isValid(), passive_, tok_passive_, tokGeom_, and toks_calo_.

279  {
280  edm::LogVerbatim("HitStudy") << "CaloSimHitAnalysis:Run = " << e.id().run() << " Event = " << e.id().event();
281 
282  caloGeometry_ = &set.getData(tokGeom_);
284 
285  for (unsigned int i = 0; i < toks_calo_.size(); i++) {
286  const edm::Handle<edm::PCaloHitContainer>& hitsCalo = e.getHandle(toks_calo_[i]);
287  bool getHits = (hitsCalo.isValid());
288 #ifdef EDM_ML_DEBUG
289  edm::LogVerbatim("HitStudy") << "CaloSimHitAnalysis: Input flags Hits[" << i << "]: " << getHits;
290 #endif
291  if (getHits) {
292  std::vector<PCaloHit> caloHits;
293  caloHits.insert(caloHits.end(), hitsCalo->begin(), hitsCalo->end());
294 #ifdef EDM_ML_DEBUG
295  edm::LogVerbatim("HitStudy") << "CaloSimHitAnalysis: Hit buffer [" << i << "] " << caloHits.size();
296 #endif
297  analyzeHits(caloHits, i);
298  }
299  }
300 
301  if (passive_) {
302  const edm::Handle<edm::PassiveHitContainer>& hitsPassive = e.getHandle(tok_passive_);
303  bool getHits = (hitsPassive.isValid());
304 #ifdef EDM_ML_DEBUG
305  edm::LogVerbatim("HitStudy") << "CaloSimHitAnalysis: Passive: " << getHits;
306 #endif
307  if (getHits) {
308  std::vector<PassiveHit> passiveHits;
309  passiveHits.insert(passiveHits.end(), hitsPassive->begin(), hitsPassive->end());
310 #ifdef EDM_ML_DEBUG
311  edm::LogVerbatim("HitStudy") << "CaloSimHitAnalysis: Passive Hit buffer " << passiveHits.size();
312 #endif
313  analyzePassiveHits(passiveHits);
314  }
315  }
316 }
void analyzeHits(std::vector< PCaloHit > &, int)
Log< level::Info, true > LogVerbatim
void analyzePassiveHits(std::vector< PassiveHit > &hits)
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > tokGeom_
const edm::EDGetTokenT< edm::PassiveHitContainer > tok_passive_
const HcalGeometry * hcalGeom_
const CaloGeometry * caloGeometry_
const std::vector< edm::EDGetTokenT< edm::PCaloHitContainer > > toks_calo_
bool isValid() const
Definition: HandleBase.h:70
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:34

◆ analyzeHits()

void CaloSimHitAnalysis::analyzeHits ( std::vector< PCaloHit > &  hits,
int  indx 
)
protected

Definition at line 318 of file CaloSimHitAnalysis.cc.

References funct::abs(), caloGeometry_, TauDecayModes::dec, hcalRecHitTable_cff::depth, dqmdumpme::first, CaloGeometry::getPosition(), HcalGeometry::getPosition(), h_edep1_, h_edep_, h_edepEM_, h_edepHad_, h_edepT1_, h_edepT_, h_eta_, h_etaphi_, h_etot_, h_etotg_, h_hit_, h_phi_, h_rr_, h_rz1_, h_rz_, h_time_, h_timeT_, h_zz_, HcalBarrel, HcalEndcap, HcalForward, hcalGeom_, HcalOuter, hfClusterShapes_cfi::hits, l1ctLayer2EG_cff::id, hit::id, heavyIonCSV_trainingSettings::idx, hcalRecHitTable_cff::ieta, dqmdumpme::k, nCalo_, phi, point, DetId::rawId(), edm::second(), HcalDetId::subdet(), tCut_, testNumber_, hcalRecHitTable_cff::time, timeSliceUnit_, tMax_, tScale_, HcalTestNumbering::unpackHcalIndex(), and z.

Referenced by analyze().

318  {
319  int nHit = hits.size();
320  int nHB = 0, nHE = 0, nHO = 0, nHF = 0, nEB = 0, nEE = 0, nBad = 0;
321 #ifdef EDM_ML_DEBUG
322  int iHit = 0;
323 #endif
324 
325  std::map<CaloHitID, std::pair<double, double> > hitMap;
326  double etot[nCalo_], etotG[nCalo_];
327  for (unsigned int k = 0; k < nCalo_; ++k) {
328  etot[k] = etotG[k] = 0;
329  }
330  for (const auto& hit : hits) {
331  double edep = hit.energy();
332  double time = tScale_ * hit.time();
333  uint32_t id = hit.id();
334  int itra = hit.geantTrackId();
335  double edepEM = hit.energyEM();
336  double edepHad = hit.energyHad();
337  int idx(-1);
338  if (indx != 2) {
339  idx = indx;
340  if (indx == 0)
341  ++nEB;
342  else
343  ++nEE;
344  } else {
345  int subdet(0);
346  if (testNumber_) {
347  int ieta(0), phi(0), z(0), lay(0), depth(0);
348  HcalTestNumbering::unpackHcalIndex(id, subdet, z, depth, ieta, phi, lay);
349  id = HcalDetId(static_cast<HcalSubdetector>(subdet), z * ieta, phi, depth).rawId();
350  } else {
351  subdet = HcalDetId(id).subdet();
352  }
353  if (subdet == static_cast<int>(HcalBarrel)) {
354  idx = indx;
355  nHB++;
356  } else if (subdet == static_cast<int>(HcalEndcap)) {
357  idx = indx + 1;
358  nHE++;
359  } else if (subdet == static_cast<int>(HcalOuter)) {
360  idx = indx + 2;
361  nHO++;
362  } else if (subdet == static_cast<int>(HcalForward)) {
363  idx = indx + 3;
364  nHF++;
365  }
366  }
367 #ifdef EDM_ML_DEBUG
368  edm::LogVerbatim("HitStudy") << "Hit[" << iHit << ":" << nHit << ":" << idx << "] E " << edep << ":" << edepEM
369  << ":" << edepHad << " T " << time << " itra " << itra << " ID " << std::hex << id
370  << std::dec;
371  ++iHit;
372 #endif
373  if (idx >= 0) {
374  CaloHitID hid(id, time, itra, 0, timeSliceUnit_[indx]);
375  auto itr = hitMap.find(hid);
376  if (itr == hitMap.end())
377  hitMap[hid] = std::make_pair(time, edep);
378  else
379  ((itr->second).second) += edep;
380  h_edepT_[idx]->Fill(edep);
381  h_timeT_[idx]->Fill(time);
382  if (edepEM > 0)
383  h_edepEM_[idx]->Fill(edepEM);
384  if (edepHad > 0)
385  h_edepHad_[idx]->Fill(edepHad);
386  if (time > tCut_)
387  h_edepT1_[idx]->Fill(edep);
388  } else {
389  ++nBad;
390  }
391  }
392 
393  //Now make plots
394  for (auto itr = hitMap.begin(); itr != hitMap.end(); ++itr) {
395  int idx = -1;
397  DetId id((itr->first).unitID());
398 #ifdef EDM_ML_DEBUG
399  edm::LogVerbatim("HitStudy") << "Index " << indx << " Geom " << caloGeometry_ << ":" << hcalGeom_ << " "
400  << std::hex << id.rawId() << std::dec;
401 #endif
402  if (indx != 2) {
403  idx = indx;
405  } else {
406  int subdet = id.subdetId();
407  if (subdet == static_cast<int>(HcalBarrel)) {
408  idx = indx;
409  } else if (subdet == static_cast<int>(HcalEndcap)) {
410  idx = indx + 1;
411  } else if (subdet == static_cast<int>(HcalOuter)) {
412  idx = indx + 2;
413  } else if (subdet == static_cast<int>(HcalForward)) {
414  idx = indx + 3;
415  }
416  point = hcalGeom_->getPosition(id);
417  }
418  double edep = (itr->second).second;
419  double time = (itr->second).first;
420 #ifdef EDM_ML_DEBUG
421  edm::LogVerbatim("HitStudy") << "Index " << idx << ":" << nCalo_ << " Point " << point << " E " << edep << " T "
422  << time;
423 #endif
424  if (idx >= 0) {
425  h_time_[idx]->Fill(time);
426  h_edep_[idx]->Fill(edep);
427  h_rr_[idx]->Fill(point.perp());
428  h_zz_[idx]->Fill(point.z());
429  h_eta_[idx]->Fill(point.eta());
430  h_phi_[idx]->Fill(point.phi());
431  h_rz_->Fill(std::abs(point.z()), point.perp());
432  h_etaphi_->Fill(std::abs(point.eta()), std::abs(point.phi()));
433  etot[idx] += edep;
434  if (time < tMax_)
435  etotG[idx] += edep;
436  if (time > tCut_) {
437  h_edep1_[idx]->Fill(edep);
438  h_rz1_->Fill(std::abs(point.z()), point.perp());
439  }
440  }
441  }
442 
443  if (indx < 2) {
444  h_etot_[indx]->Fill(etot[indx]);
445  h_etotg_[indx]->Fill(etotG[indx]);
446  if (indx == 0)
447  h_hit_[indx]->Fill(double(nEB));
448  else
449  h_hit_[indx]->Fill(double(nEE));
450  } else {
451  h_hit_[2]->Fill(double(nHB));
452  h_hit_[3]->Fill(double(nHE));
453  h_hit_[4]->Fill(double(nHO));
454  h_hit_[5]->Fill(double(nHF));
455  for (int idx = 2; idx < nCalo_; idx++) {
456  h_etot_[idx]->Fill(etot[idx]);
457  h_etotg_[idx]->Fill(etotG[idx]);
458  }
459  }
460 
461  edm::LogVerbatim("HitStudy") << "CaloSimHitAnalysis::analyzeHits: EB " << nEB << " EE " << nEE << " HB " << nHB
462  << " HE " << nHE << " HO " << nHO << " HF " << nHF << " Bad " << nBad << " All " << nHit
463  << " Reduced " << hitMap.size();
464 }
Log< level::Info, true > LogVerbatim
TH1F * h_edepT1_[nCalo_]
TH1F * h_timeT_[nCalo_]
TH1F * h_edepT_[nCalo_]
TH1F * h_time_[nCalo_]
U second(std::pair< T, U > const &p)
constexpr HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:138
GlobalPoint getPosition(const DetId &id) const
Get the position of a given detector id.
Definition: CaloGeometry.cc:50
TH1F * h_edep_[nCalo_]
TH1F * h_edepHad_[nCalo_]
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
static constexpr int nCalo_
static void unpackHcalIndex(const uint32_t &idx, int &det, int &z, int &depth, int &eta, int &phi, int &lay)
const HcalGeometry * hcalGeom_
TH1F * h_edep1_[nCalo_]
unsigned int id
const CaloGeometry * caloGeometry_
Definition: DetId.h:17
TH1F * h_etot_[nCalo_]
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
const std::vector< double > timeSliceUnit_
GlobalPoint getPosition(const DetId &id) const
TH1F * h_etotg_[nCalo_]
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
TH1F * h_edepEM_[nCalo_]

◆ analyzePassiveHits()

void CaloSimHitAnalysis::analyzePassiveHits ( std::vector< PassiveHit > &  hits)
protected

Definition at line 466 of file CaloSimHitAnalysis.cc.

References allSteps_, HcalDetId::depth(), detNames_, etaDepth_, h_edepp_, h_edepTk_, h_hitp_, h_rzH_, h_stepp_, h_timep_, h_timeTk_, h_trackp_, DetId::Hcal, hfClusterShapes_cfi::hits, hit::id, HcalDetId::ietaAbs(), dqmdumpme::k, Skims_PA_cff::name, findQualityFiles::rr, mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, DiMuonV_cfg::tracks, hit::x, hit::y, and hit::z.

Referenced by analyze().

466  {
467  const std::string active = "Active";
468  const std::string sensor = "Sensor";
469  std::map<std::pair<std::string, uint32_t>, int> hitx;
470  std::map<int, int> tracks;
471  unsigned int passive1(0), passive2(0);
472  for (auto& hit : hits) {
473  std::string name = hit.vname();
474  std::pair<std::string, uint32_t> volume = std::make_pair(name, (hit.id() % 1000000));
475  auto itr = hitx.find(volume);
476  if (itr == hitx.end())
477  hitx[volume] = 1;
478  else
479  ++(itr->second);
480  auto ktr = tracks.find(hit.trackId());
481  if (ktr == tracks.end())
482  tracks[hit.trackId()] = 1;
483  else
484  ++(ktr->second);
485  h_edepp_->Fill(hit.energy());
486  h_timep_->Fill(hit.time());
487  h_stepp_->Fill(hit.stepLength());
488  if ((name.find(active) != std::string::npos) || (name.find(sensor) != std::string::npos)) {
489  unsigned idet = detNames_.size();
490  for (unsigned int k = 0; k < detNames_.size(); ++k) {
491  if (name.find(detNames_[k]) != std::string::npos) {
492  idet = k;
493  break;
494  }
495  }
496  if (idet < detNames_.size()) {
497  h_edepTk_[idet]->Fill(hit.energy());
498  h_timeTk_[idet]->Fill(hit.time());
499  }
500  }
501 
502  if ((allSteps_ / 100) % 10 > 0) {
503  uint32_t id = hit.id();
504  if (DetId(id).det() == DetId::Hcal) {
505  HcalDetId hid = HcalDetId(id);
506  int indx = (100 * hid.ietaAbs() + hid.depth());
507  auto itr = etaDepth_.find(indx);
508 #ifdef EDM_ML_DEBUG
509  edm::LogVerbatim("HitStudy") << "CaloSimHitAnalysis::ID: " << hid << " Index " << indx << " Iterator "
510  << (itr != etaDepth_.end());
511 #endif
512  ++passive1;
513  if (itr != etaDepth_.end()) {
514  uint32_t ipos = itr->second;
515  double rr = std::sqrt(hit.x() * hit.x() + hit.y() * hit.y());
516  if (ipos < h_rzH_.size()) {
517  h_rzH_[ipos]->Fill(hit.z(), rr);
518  ++passive2;
519  }
520  }
521  }
522  }
523  }
524  h_hitp_->Fill(hitx.size());
525  h_trackp_->Fill(tracks.size());
526  edm::LogVerbatim("HitStudy") << "CaloSimHitAnalysis::analyzPassiveHits: Total " << hits.size() << " Cells "
527  << hitx.size() << " Tracks " << tracks.size() << " Passive " << passive1 << ":"
528  << passive2;
529 }
Log< level::Info, true > LogVerbatim
std::map< int, unsigned int > etaDepth_
constexpr int ietaAbs() const
get the absolute value of the cell ieta
Definition: HcalDetId.h:148
std::vector< TH1F * > h_edepTk_
std::vector< TH1F * > h_timeTk_
const std::vector< std::string > detNames_
T sqrt(T t)
Definition: SSEVec.h:19
unsigned int id
Definition: DetId.h:17
std::vector< TH2F * > h_rzH_
constexpr int depth() const
get the tower depth
Definition: HcalDetId.h:164

◆ beginJob()

void CaloSimHitAnalysis::beginJob ( void  )
inlineoverrideprotectedvirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 52 of file CaloSimHitAnalysis.cc.

52 {}

◆ beginRun()

void CaloSimHitAnalysis::beginRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlineoverrideprotected

Definition at line 54 of file CaloSimHitAnalysis.cc.

54 {}

◆ endRun()

void CaloSimHitAnalysis::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlineoverrideprotected

Definition at line 55 of file CaloSimHitAnalysis.cc.

55 {}

◆ fillDescriptions()

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

Definition at line 259 of file CaloSimHitAnalysis.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, SummaryClient_cfi::labels, names, and AlCaHLTBitMon_QueryRunRegistry::string.

259  {
261  std::vector<std::string> labels = {"EcalHitsEB1", "EcalHitsEE1", "HcalHits1"};
262  std::vector<double> times = {1, 1, 1};
263  desc.addUntracked<std::string>("moduleLabel", "g4SimHits");
264  desc.add<std::vector<std::string> >("hitCollection", labels);
265  desc.add<std::vector<double> >("timeSliceUnit", times);
266  desc.addUntracked<double>("maxEnergy", 250.0);
267  desc.addUntracked<double>("maxTime", 1000.0);
268  desc.addUntracked<double>("timeCut", 100.0);
269  desc.addUntracked<double>("timeScale", 1.0);
270  desc.addUntracked<double>("timeThreshold", 15.0);
271  desc.addUntracked<bool>("testNumbering", false);
272  desc.addUntracked<bool>("passiveHits", false);
273  std::vector<std::string> names = {"PixelBarrel", "PixelForward", "TIB", "TID", "TOB", "TEC"};
274  desc.addUntracked<std::vector<std::string> >("detNames", names);
275  desc.addUntracked<int>("allStep", 100);
276  descriptions.add("caloSimHitAnalysis", desc);
277 }
const std::string names[nVars_]
void add(std::string const &label, ParameterSetDescription const &psetDescription)

Member Data Documentation

◆ allSteps_

const int CaloSimHitAnalysis::allSteps_
private

Definition at line 66 of file CaloSimHitAnalysis.cc.

Referenced by analyzePassiveHits().

◆ caloGeometry_

const CaloGeometry* CaloSimHitAnalysis::caloGeometry_
private

Definition at line 72 of file CaloSimHitAnalysis.cc.

Referenced by analyze(), and analyzeHits().

◆ detNames_

const std::vector<std::string> CaloSimHitAnalysis::detNames_
private

Definition at line 67 of file CaloSimHitAnalysis.cc.

Referenced by analyzePassiveHits().

◆ etaDepth_

std::map<int, unsigned int> CaloSimHitAnalysis::etaDepth_
private

Definition at line 84 of file CaloSimHitAnalysis.cc.

Referenced by analyzePassiveHits().

◆ g4Label_

const std::string CaloSimHitAnalysis::g4Label_
private

Definition at line 61 of file CaloSimHitAnalysis.cc.

Referenced by CaloSimHitAnalysis().

◆ h_edep1_

TH1F * CaloSimHitAnalysis::h_edep1_[nCalo_]
private

Definition at line 77 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ h_edep_

TH1F * CaloSimHitAnalysis::h_edep_[nCalo_]
private

Definition at line 76 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ h_edepEM_

TH1F* CaloSimHitAnalysis::h_edepEM_[nCalo_]
private

Definition at line 78 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ h_edepHad_

TH1F * CaloSimHitAnalysis::h_edepHad_[nCalo_]
private

Definition at line 78 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ h_edepp_

TH1F * CaloSimHitAnalysis::h_edepp_
private

Definition at line 81 of file CaloSimHitAnalysis.cc.

Referenced by analyzePassiveHits().

◆ h_edepT1_

TH1F * CaloSimHitAnalysis::h_edepT1_[nCalo_]
private

Definition at line 77 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ h_edepT_

TH1F * CaloSimHitAnalysis::h_edepT_[nCalo_]
private

Definition at line 76 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ h_edepTk_

std::vector<TH1F*> CaloSimHitAnalysis::h_edepTk_
private

Definition at line 82 of file CaloSimHitAnalysis.cc.

Referenced by analyzePassiveHits().

◆ h_eta_

TH1F* CaloSimHitAnalysis::h_eta_[nCalo_]
private

Definition at line 79 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ h_etaphi_

TH2F * CaloSimHitAnalysis::h_etaphi_
private

Definition at line 80 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ h_etot_

TH1F * CaloSimHitAnalysis::h_etot_[nCalo_]
private

Definition at line 79 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ h_etotg_

TH1F * CaloSimHitAnalysis::h_etotg_[nCalo_]
private

Definition at line 79 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ h_hit_

TH1F* CaloSimHitAnalysis::h_hit_[nCalo_]
private

Definition at line 76 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ h_hitp_

TH1F* CaloSimHitAnalysis::h_hitp_
private

Definition at line 81 of file CaloSimHitAnalysis.cc.

Referenced by analyzePassiveHits().

◆ h_phi_

TH1F * CaloSimHitAnalysis::h_phi_[nCalo_]
private

Definition at line 79 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ h_rr_

TH1F * CaloSimHitAnalysis::h_rr_[nCalo_]
private

Definition at line 78 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ h_rz1_

TH2F * CaloSimHitAnalysis::h_rz1_
private

Definition at line 80 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ h_rz_

TH2F* CaloSimHitAnalysis::h_rz_
private

Definition at line 80 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ h_rzH_

std::vector<TH2F*> CaloSimHitAnalysis::h_rzH_
private

Definition at line 83 of file CaloSimHitAnalysis.cc.

Referenced by analyzePassiveHits().

◆ h_stepp_

TH1F * CaloSimHitAnalysis::h_stepp_
private

Definition at line 81 of file CaloSimHitAnalysis.cc.

Referenced by analyzePassiveHits().

◆ h_time_

TH1F * CaloSimHitAnalysis::h_time_[nCalo_]
private

Definition at line 76 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ h_timep_

TH1F * CaloSimHitAnalysis::h_timep_
private

Definition at line 81 of file CaloSimHitAnalysis.cc.

Referenced by analyzePassiveHits().

◆ h_timeT_

TH1F* CaloSimHitAnalysis::h_timeT_[nCalo_]
private

Definition at line 77 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ h_timeTk_

std::vector<TH1F*> CaloSimHitAnalysis::h_timeTk_
private

Definition at line 82 of file CaloSimHitAnalysis.cc.

Referenced by analyzePassiveHits().

◆ h_trackp_

TH1F * CaloSimHitAnalysis::h_trackp_
private

Definition at line 81 of file CaloSimHitAnalysis.cc.

Referenced by analyzePassiveHits().

◆ h_zz_

TH1F * CaloSimHitAnalysis::h_zz_[nCalo_]
private

Definition at line 78 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ hcalGeom_

const HcalGeometry* CaloSimHitAnalysis::hcalGeom_
private

Definition at line 73 of file CaloSimHitAnalysis.cc.

Referenced by analyze(), and analyzeHits().

◆ hitLab_

const std::vector<std::string> CaloSimHitAnalysis::hitLab_
private

Definition at line 62 of file CaloSimHitAnalysis.cc.

Referenced by CaloSimHitAnalysis().

◆ maxEnergy_

const double CaloSimHitAnalysis::maxEnergy_
private

Definition at line 64 of file CaloSimHitAnalysis.cc.

◆ maxTime_

const double CaloSimHitAnalysis::maxTime_
private

Definition at line 64 of file CaloSimHitAnalysis.cc.

◆ nCalo_

constexpr int CaloSimHitAnalysis::nCalo_ = 6
staticprivate

Definition at line 75 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ passive_

const bool CaloSimHitAnalysis::passive_
private

Definition at line 65 of file CaloSimHitAnalysis.cc.

Referenced by analyze().

◆ tCut_

const double CaloSimHitAnalysis::tCut_
private

Definition at line 64 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ testNumber_

const bool CaloSimHitAnalysis::testNumber_
private

Definition at line 65 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ timeSliceUnit_

const std::vector<double> CaloSimHitAnalysis::timeSliceUnit_
private

Definition at line 63 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ tMax_

const double CaloSimHitAnalysis::tMax_
private

Definition at line 64 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().

◆ tok_passive_

const edm::EDGetTokenT<edm::PassiveHitContainer> CaloSimHitAnalysis::tok_passive_
private

Definition at line 70 of file CaloSimHitAnalysis.cc.

Referenced by analyze().

◆ tokGeom_

const edm::ESGetToken<CaloGeometry, CaloGeometryRecord> CaloSimHitAnalysis::tokGeom_
private

Definition at line 68 of file CaloSimHitAnalysis.cc.

Referenced by analyze().

◆ toks_calo_

const std::vector<edm::EDGetTokenT<edm::PCaloHitContainer> > CaloSimHitAnalysis::toks_calo_
private

Definition at line 69 of file CaloSimHitAnalysis.cc.

Referenced by analyze().

◆ tScale_

const double CaloSimHitAnalysis::tScale_
private

Definition at line 64 of file CaloSimHitAnalysis.cc.

Referenced by analyzeHits().