CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
HcalSimHitsClient Class Reference

#include <HcalSimHitsClient.h>

Inheritance diagram for HcalSimHitsClient:
DQMEDHarvester edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::EndProcessBlockProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void beginRun (edm::Run const &run, edm::EventSetup const &c) override
 
void dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override
 
 HcalSimHitsClient (const edm::ParameterSet &)
 
virtual void runClient_ (DQMStore::IBooker &, DQMStore::IGetter &)
 
 ~HcalSimHitsClient () override=default
 
- Public Member Functions inherited from DQMEDHarvester
void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
void beginJob () override
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &) override
 
virtual void dqmAnalyze (DQMStore::IBooker &, DQMStore::IGetter &, edm::Event const &, edm::EventSetup const &)
 
 DQMEDHarvester (edm::ParameterSet const &iConfig)
 
 DQMEDHarvester ()
 
virtual void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmEndRun (DQMStore::IBooker &, DQMStore::IGetter &, edm::Run const &, edm::EventSetup const &)
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &es) final
 
void endProcessBlockProduce (edm::ProcessBlock &) final
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &es) final
 
 ~DQMEDHarvester () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::EndProcessBlockProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const noexcept final
 
bool wantsGlobalRuns () const noexcept final
 
bool wantsInputProcessBlocks () const noexcept final
 
bool wantsProcessBlocks () const noexcept final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const noexcept
 
bool wantsStreamRuns () const noexcept
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) 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)
 

Private Member Functions

std::vector< std::string > getHistogramTypes ()
 
int SimHitsEndjob (const std::vector< MonitorElement *> &hcalMEs)
 

Private Attributes

const std::string dirName_
 
const HcalDDDRecConstantshcons
 
int maxDepthHB_
 
int maxDepthHE_
 
int maxDepthHF_
 
int maxDepthHO_
 
const edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecordtok_HRNDC_
 
const bool verbose_
 

Static Private Attributes

static const int nTime = 4
 
static const int nType1 = 4
 

Additional Inherited Members

- Public Types inherited from DQMEDHarvester
typedef dqm::harvesting::DQMStore DQMStore
 
typedef dqm::harvesting::MonitorElement MonitorElement
 
- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
template<typename T >
using BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T >
 
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::ProducerBase
template<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
ProducesCollector producesCollector ()
 
- 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)
 
- Protected Attributes inherited from DQMEDHarvester
DQMStoredqmstore_
 
edm::GetterOfProducts< DQMTokenjobmegetter_
 
edm::EDPutTokenT< DQMTokenjobToken_
 
edm::GetterOfProducts< DQMTokenlumimegetter_
 
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::GetterOfProducts< DQMTokenrunmegetter_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 34 of file HcalSimHitsClient.h.

Constructor & Destructor Documentation

◆ HcalSimHitsClient()

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

Definition at line 11 of file HcalSimHitsClient.cc.

12  : dirName_(iConfig.getParameter<std::string>("DQMDirName")),
13  verbose_(iConfig.getUntrackedParameter<bool>("Verbosity", false)),
14  tok_HRNDC_(esConsumes<HcalDDDRecConstants, HcalRecNumberingRecord, edm::Transition::BeginRun>()) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
const edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > tok_HRNDC_
T getUntrackedParameter(std::string const &, T const &) const
const std::string dirName_

◆ ~HcalSimHitsClient()

HcalSimHitsClient::~HcalSimHitsClient ( )
overridedefault

Member Function Documentation

◆ beginRun()

void HcalSimHitsClient::beginRun ( edm::Run const &  run,
edm::EventSetup const &  c 
)
override

Definition at line 16 of file HcalSimHitsClient.cc.

References DummyCfis::c, HcalDDDRecConstants::getMaxDepth(), hcons, maxDepthHB_, maxDepthHE_, maxDepthHF_, maxDepthHO_, and tok_HRNDC_.

16  {
17  const auto &pHRNDC = c.getData(tok_HRNDC_);
18  hcons = &pHRNDC;
23 
24  edm::LogVerbatim("HitsValidationHcal") << " Maximum Depths HB:" << maxDepthHB_ << " HE:" << maxDepthHE_
25  << " HO:" << maxDepthHO_ << " HF:" << maxDepthHF_;
26 }
Log< level::Info, true > LogVerbatim
const edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > tok_HRNDC_
const HcalDDDRecConstants * hcons
int getMaxDepth(const int &type) const

◆ dqmEndJob()

void HcalSimHitsClient::dqmEndJob ( DQMStore::IBooker ib,
DQMStore::IGetter ig 
)
overridevirtual

Implements DQMEDHarvester.

Definition at line 28 of file HcalSimHitsClient.cc.

References cuy::ib, and runClient_().

28 { runClient_(ib, ig); }
virtual void runClient_(DQMStore::IBooker &, DQMStore::IGetter &)
ib
Definition: cuy.py:661

◆ getHistogramTypes()

std::vector< std::string > HcalSimHitsClient::getHistogramTypes ( )
private

Definition at line 166 of file HcalSimHitsClient.cc.

References hcalRecHitTable_cff::depth, dqmdumpme::k, SiStripPI::max, HLT_2024v14_cff::maxDepth, maxDepthHB_, maxDepthHE_, maxDepthHF_, maxDepthHO_, AlCaHLTBitMon_QueryRunRegistry::string, and verbose_.

Referenced by SimHitsEndjob().

166  {
168  if (verbose_)
169  edm::LogVerbatim("HitsValidationHcal") << "Max depth 1st step:: " << maxDepth;
171  if (verbose_)
172  edm::LogVerbatim("HitsValidationHcal") << "Max depth 2nd step:: " << maxDepth;
174  if (verbose_)
175  edm::LogVerbatim("HitsValidationHcal") << "Max depth 3rd step:: " << maxDepth;
176  std::vector<std::string> divisions;
177  char name1[20];
178 
179  // first overall Hcal
180  for (int depth = 0; depth < maxDepth; ++depth) {
181  sprintf(name1, "HC%d", depth);
182  divisions.push_back(std::string(name1));
183  }
184  // HB
185  for (int depth = 0; depth < maxDepthHB_; ++depth) {
186  sprintf(name1, "HB%d", depth);
187  divisions.push_back(std::string(name1));
188  }
189  // HE
190  for (int depth = 0; depth < maxDepthHE_; ++depth) {
191  sprintf(name1, "HE%d+z", depth);
192  divisions.push_back(std::string(name1));
193  sprintf(name1, "HE%d-z", depth);
194  divisions.push_back(std::string(name1));
195  }
196  // HO
197  {
198  int depth = maxDepthHO_;
199  sprintf(name1, "HO%d", depth);
200  divisions.push_back(std::string(name1));
201  }
202  // HF (first absorber, then different types of abnormal hits)
203  std::string hfty1[4] = {"A", "W", "B", "J"};
204  for (int k = 0; k < 4; ++k) {
205  for (int depth = 0; depth < maxDepthHF_; ++depth) {
206  sprintf(name1, "HF%s%d+z", hfty1[k].c_str(), depth);
207  divisions.push_back(std::string(name1));
208  sprintf(name1, "HF%s%d-z", hfty1[k].c_str(), depth);
209  divisions.push_back(std::string(name1));
210  }
211  }
212  return divisions;
213 }
Log< level::Info, true > LogVerbatim

◆ runClient_()

void HcalSimHitsClient::runClient_ ( DQMStore::IBooker ib,
DQMStore::IGetter ig 
)
virtual

Definition at line 30 of file HcalSimHitsClient.cc.

References dirName_, dqm::implementation::IGetter::getContents(), dqm::implementation::IGetter::getSubdirs(), mps_fire::i, dqmiolumiharvest::j, dqm::implementation::NavigatorBase::setCurrentFolder(), SimHitsEndjob(), and verbose_.

Referenced by dqmEndJob().

30  {
32 
33  if (verbose_)
34  edm::LogVerbatim("HitsValidationHcal") << "runClient";
35 
36  std::vector<MonitorElement *> hcalMEs;
37 
38  std::vector<std::string> fullPathHLTFolders = ig.getSubdirs();
39  for (unsigned int i = 0; i < fullPathHLTFolders.size(); i++) {
40  if (verbose_)
41  edm::LogVerbatim("HitsValidationHcal") << "fullPath: " << fullPathHLTFolders[i];
42  ig.setCurrentFolder(fullPathHLTFolders[i]);
43 
44  std::vector<std::string> fullSubPathHLTFolders = ig.getSubdirs();
45  for (unsigned int j = 0; j < fullSubPathHLTFolders.size(); j++) {
46  if (verbose_)
47  edm::LogVerbatim("HitsValidationHcal") << "fullSub: " << fullSubPathHLTFolders[j];
48 
49  if (strcmp(fullSubPathHLTFolders[j].c_str(), "HcalHitsV/SimHitsValidationHcal") == 0) {
50  hcalMEs = ig.getContents(fullSubPathHLTFolders[j]);
51  if (verbose_)
52  edm::LogVerbatim("HitsValidationHcal") << "hltMES size : " << hcalMEs.size();
53  if (!SimHitsEndjob(hcalMEs))
54  edm::LogWarning("HitsValidationHcal") << "Error in SimhitEndjob!";
55  }
56  }
57  }
58 }
Log< level::Info, true > LogVerbatim
int SimHitsEndjob(const std::vector< MonitorElement *> &hcalMEs)
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
const std::string dirName_
Log< level::Warning, false > LogWarning
virtual std::vector< dqm::harvesting::MonitorElement * > getContents(std::string const &path) const
Definition: DQMStore.cc:625
virtual DQM_DEPRECATED std::vector< std::string > getSubdirs() const
Definition: DQMStore.cc:739

◆ SimHitsEndjob()

int HcalSimHitsClient::SimHitsEndjob ( const std::vector< MonitorElement *> &  hcalMEs)
private

Definition at line 62 of file HcalSimHitsClient.cc.

References generateEDF::cont, EcalCondDBWriter_cfi::Energy, nano_mu_digi_cff::float, dqm::impl::MonitorElement::getBinContent(), getHistogramTypes(), ForwardName::getName(), dqm::impl::MonitorElement::getNbinsX(), dqm::impl::MonitorElement::getNbinsY(), mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, Skims_PA_cff::name, hfnoseParametersInitialization_cfi::name2, nevent, nTime, nType1, dqm::impl::MonitorElement::setBinContent(), AlCaHLTBitMon_QueryRunRegistry::string, hcalRecHitTable_cff::time, and verbose_.

Referenced by runClient_().

62  {
63  std::vector<std::string> divisions = getHistogramTypes();
64  MonitorElement *Occupancy_map[nTime][divisions.size()];
65  MonitorElement *Energy[nType1], *Time_weighteden[nType1];
66  MonitorElement *HitEnergyvsieta[divisions.size()], *HitTimevsieta[divisions.size()];
67 
68  std::string time[nTime] = {"25", "50", "100", "250"};
69  std::string detdivision[nType1] = {"HB", "HE", "HF", "HO"};
70  char name[40], name1[40], name2[40], name3[40], name4[40];
71 
72  for (int k = 0; k < nType1; k++) {
73  Energy[k] = nullptr;
74  Time_weighteden[k] = nullptr;
75  for (unsigned int ih = 0; ih < hcalMEs.size(); ih++) {
76  sprintf(name1, "Energy_%s", detdivision[k].c_str());
77  sprintf(name2, "Time_Enweighted_%s", detdivision[k].c_str());
78  if (strcmp(hcalMEs[ih]->getName().c_str(), name1) == 0) {
79  Energy[k] = hcalMEs[ih];
80  }
81  if (strcmp(hcalMEs[ih]->getName().c_str(), name2) == 0) {
82  Time_weighteden[k] = hcalMEs[ih];
83  }
84  }
85  }
86 
87  for (int i = 0; i < nTime; i++) {
88  for (unsigned int j = 0; j < divisions.size(); j++) {
89  for (unsigned int ih = 0; ih < hcalMEs.size(); ih++) {
90  sprintf(name, "HcalHitE%s%s", time[i].c_str(), divisions[j].c_str());
91  if (strcmp(hcalMEs[ih]->getName().c_str(), name) == 0) {
92  Occupancy_map[i][j] = hcalMEs[ih];
93  }
94  }
95  }
96  }
97 
98  for (unsigned int k = 0; k < divisions.size(); k++) {
99  HitEnergyvsieta[k] = nullptr;
100  HitTimevsieta[k] = nullptr;
101  for (unsigned int ih = 0; ih < hcalMEs.size(); ih++) {
102  sprintf(name3, "HcalHitEta%s", divisions[k].c_str());
103  sprintf(name4, "HcalHitTimeAEta%s", divisions[k].c_str());
104  if (strcmp(hcalMEs[ih]->getName().c_str(), name3) == 0) {
105  HitEnergyvsieta[k] = hcalMEs[ih];
106  }
107  if (strcmp(hcalMEs[ih]->getName().c_str(), name4) == 0) {
108  HitTimevsieta[k] = hcalMEs[ih];
109  }
110  }
111  }
112 
113  // mean energy
114 
115  double nevent = Energy[0]->getEntries();
116  if (verbose_)
117  edm::LogVerbatim("HitsValidationHcal") << "nevent : " << nevent;
118 
119  float cont[nTime][divisions.size()];
120  float en[nType1], tme[nType1];
121  float hitenergy[divisions.size()], hittime[divisions.size()];
122  float fev = float(nevent);
123 
124  for (int dettype = 0; dettype < nType1; dettype++) {
125  int nx1 = Energy[dettype]->getNbinsX();
126  for (int i = 0; i <= nx1; i++) {
127  en[dettype] = Energy[dettype]->getBinContent(i) / fev;
128  Energy[dettype]->setBinContent(i, en[dettype]);
129  }
130  int nx2 = Time_weighteden[dettype]->getNbinsX();
131  for (int i = 0; i <= nx2; i++) {
132  tme[dettype] = Time_weighteden[dettype]->getBinContent(i) / fev;
133  Time_weighteden[dettype]->setBinContent(i, tme[dettype]);
134  }
135  }
136 
137  for (unsigned int dettype = 0; dettype < divisions.size(); dettype++) {
138  int nx1 = HitEnergyvsieta[dettype]->getNbinsX();
139  for (int i = 0; i <= nx1; i++) {
140  hitenergy[dettype] = HitEnergyvsieta[dettype]->getBinContent(i) / fev;
141  HitEnergyvsieta[dettype]->setBinContent(i, hitenergy[dettype]);
142  }
143  int nx2 = HitTimevsieta[dettype]->getNbinsX();
144  for (int i = 0; i <= nx2; i++) {
145  hittime[dettype] = HitTimevsieta[dettype]->getBinContent(i) / fev;
146  HitTimevsieta[dettype]->setBinContent(i, hittime[dettype]);
147  }
148  }
149 
150  for (int itime = 0; itime < nTime; itime++) {
151  for (unsigned int det = 0; det < divisions.size(); det++) {
152  int ny = Occupancy_map[itime][det]->getNbinsY();
153  int nx = Occupancy_map[itime][det]->getNbinsX();
154  for (int i = 1; i < nx + 1; i++) {
155  for (int j = 1; j < ny + 1; j++) {
156  cont[itime][det] = Occupancy_map[itime][det]->getBinContent(i, j) / fev;
157  Occupancy_map[itime][det]->setBinContent(i, j, cont[itime][det]);
158  }
159  }
160  }
161  }
162 
163  return 1;
164 }
Log< level::Info, true > LogVerbatim
static const int nType1
std::vector< std::string > getHistogramTypes()
int nevent
Definition: AMPTWrapper.h:84
virtual int getNbinsY() const
get # of bins in Y-axis
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
static const int nTime
std::string getName(const G4String &)
Definition: ForwardName.cc:3
virtual int getNbinsX() const
get # of bins in X-axis
cont
load Luminosity info ##
Definition: generateEDF.py:620
virtual double getBinContent(int binx) const
get content of bin (1-D)

Member Data Documentation

◆ dirName_

const std::string HcalSimHitsClient::dirName_
private

Definition at line 39 of file HcalSimHitsClient.h.

Referenced by runClient_().

◆ hcons

const HcalDDDRecConstants* HcalSimHitsClient::hcons
private

Definition at line 44 of file HcalSimHitsClient.h.

Referenced by beginRun().

◆ maxDepthHB_

int HcalSimHitsClient::maxDepthHB_
private

Definition at line 45 of file HcalSimHitsClient.h.

Referenced by beginRun(), and getHistogramTypes().

◆ maxDepthHE_

int HcalSimHitsClient::maxDepthHE_
private

Definition at line 45 of file HcalSimHitsClient.h.

Referenced by beginRun(), and getHistogramTypes().

◆ maxDepthHF_

int HcalSimHitsClient::maxDepthHF_
private

Definition at line 45 of file HcalSimHitsClient.h.

Referenced by beginRun(), and getHistogramTypes().

◆ maxDepthHO_

int HcalSimHitsClient::maxDepthHO_
private

Definition at line 45 of file HcalSimHitsClient.h.

Referenced by beginRun(), and getHistogramTypes().

◆ nTime

const int HcalSimHitsClient::nTime = 4
staticprivate

Definition at line 42 of file HcalSimHitsClient.h.

Referenced by SimHitsEndjob().

◆ nType1

const int HcalSimHitsClient::nType1 = 4
staticprivate

Definition at line 43 of file HcalSimHitsClient.h.

Referenced by SimHitsEndjob().

◆ tok_HRNDC_

const edm::ESGetToken<HcalDDDRecConstants, HcalRecNumberingRecord> HcalSimHitsClient::tok_HRNDC_
private

Definition at line 41 of file HcalSimHitsClient.h.

Referenced by beginRun().

◆ verbose_

const bool HcalSimHitsClient::verbose_
private

Definition at line 40 of file HcalSimHitsClient.h.

Referenced by getHistogramTypes(), runClient_(), and SimHitsEndjob().