|
void | bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override |
|
| ZDCDigiStudy (const edm::ParameterSet &ps) |
|
| ~ZDCDigiStudy () override |
|
void | accumulate (edm::Event const &event, edm::EventSetup const &setup) final |
|
virtual void | analyze (edm::Event const &, edm::EventSetup const &) |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final |
|
void | beginRun (edm::Run const &run, edm::EventSetup const &setup) final |
|
virtual void | dqmBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) |
|
virtual void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) |
|
| DQMEDAnalyzer () |
|
virtual void | dqmEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) |
|
virtual void | dqmEndRun (edm::Run const &, edm::EventSetup const &) |
|
void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final |
|
void | endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final |
|
void | endRun (edm::Run const &, edm::EventSetup const &) final |
|
void | endRunProduce (edm::Run &run, edm::EventSetup const &setup) final |
|
virtual bool | getCanSaveByLumi () |
|
| EDProducer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDProducerBase () override |
|
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 |
|
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) |
|
| ~ProducerBase () noexcept(false) override |
|
std::vector< ConsumesInfo > | consumesInfo () 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 |
|
ESProxyIndex const * | esGetTokenIndices (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 |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
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) |
|
|
void | analyze (const edm::Event &e, const edm::EventSetup &c) override |
|
void | dqmEndRun (const edm::Run &run, const edm::EventSetup &c) override |
|
int | FillHitValHist (int side, int section, int channel, double energy, double time) |
|
ProducesCollector | producesCollector () |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
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 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<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
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) |
|
Definition at line 45 of file ZDCDigiStudy.h.
Definition at line 191 of file ZDCDigiStudy.cc.
References edm::SortedCollection< T, SORT >::begin(), HcalZDCDetId::channel(), edm::SortedCollection< T, SORT >::end(), dqm::impl::MonitorElement::Fill(), edm::Event::getByToken(), mps_fire::i, ZDCDataFrame::id(), edm::HandleBase::isValid(), meZdcfCNEMvHAD, meZdcfCNHAD, meZdcfCNTOT, meZdcfCPEMvHAD, meZdcfCPHAD, meZdcfCPTOT, meZdcNEM1fCvsTS, meZdcNEM2fCvsTS, meZdcNEM3fCvsTS, meZdcNEM4fCvsTS, meZdcNEM5fCvsTS, meZdcNHAD1fCvsTS, meZdcNHAD2fCvsTS, meZdcNHAD3fCvsTS, meZdcNHAD4fCvsTS, meZdcPEM1fCvsTS, meZdcPEM2fCvsTS, meZdcPEM3fCvsTS, meZdcPEM4fCvsTS, meZdcPEM5fCvsTS, meZdcPHAD1fCvsTS, meZdcPHAD2fCvsTS, meZdcPHAD3fCvsTS, meZdcPHAD4fCvsTS, HcalQIESample::nominal_fC(), ZDCDataFrame::sample(), HcalZDCDetId::section(), ZDCDataFrame::size(), tok_zdc_, hcalSimParameters_cfi::zdc, and HcalZDCDetId::zside().
195 bool gotZDCDigis =
true;
205 double totalPHADCharge = 0;
206 double totalNHADCharge = 0;
207 double totalPEMCharge = 0;
208 double totalNEMCharge = 0;
209 double totalPCharge = 0;
210 double totalNCharge = 0;
213 if (gotZDCDigis ==
true) {
222 for (
int i = 0;
i < digi.
size(); ++
i)
245 if (
i == 4 ||
i == 5 ||
i == 6)
249 for (
int i = 0;
i < digi.
size(); ++
i) {
270 if (
i == 4 ||
i == 5 ||
i == 6)
279 for (
int i = 0;
i < digi.
size(); ++
i) {
305 if (
i == 4 ||
i == 5 ||
i == 6)
309 for (
int i = 0;
i < digi.
size(); ++
i) {
335 if (
i == 4 ||
i == 5 ||
i == 6)
341 totalPCharge = totalPHADCharge + (0.1) * totalPEMCharge;
342 totalNCharge = totalNHADCharge + (0.1) * totalNEMCharge;
int zside() const
get the z-side of the cell (1/-1)
std::vector< T >::const_iterator const_iterator
MonitorElement * meZdcfCPTOT
MonitorElement * meZdcPEM1fCvsTS
MonitorElement * meZdcfCPEMvHAD
MonitorElement * meZdcPHAD2fCvsTS
MonitorElement * meZdcfCNTOT
MonitorElement * meZdcPHAD3fCvsTS
MonitorElement * meZdcfCPHAD
MonitorElement * meZdcNHAD2fCvsTS
MonitorElement * meZdcPEM3fCvsTS
const HcalQIESample & sample(int i) const
access a sample
MonitorElement * meZdcNHAD3fCvsTS
MonitorElement * meZdcPEM2fCvsTS
MonitorElement * meZdcNEM2fCvsTS
MonitorElement * meZdcNEM4fCvsTS
MonitorElement * meZdcNEM3fCvsTS
constexpr double nominal_fC() const
get the nominal FC (no calibrations applied)
MonitorElement * meZdcPHAD1fCvsTS
const_iterator end() const
MonitorElement * meZdcNHAD4fCvsTS
const HcalZDCDetId & id() const
int channel() const
get the channel
int size() const
total number of samples in the digi
MonitorElement * meZdcNHAD1fCvsTS
Section section() const
get the section
MonitorElement * meZdcfCNHAD
MonitorElement * meZdcfCNEMvHAD
MonitorElement * meZdcPHAD4fCvsTS
MonitorElement * meZdcPEM4fCvsTS
edm::EDGetTokenT< ZDCDigiCollection > tok_zdc_
MonitorElement * meZdcPEM5fCvsTS
MonitorElement * meZdcNEM1fCvsTS
const_iterator begin() const
MonitorElement * meZdcNEM5fCvsTS
Implements DQMEDAnalyzer.
Definition at line 41 of file ZDCDigiStudy.cc.
References dqm::dqmstoreimpl::DQMStore::IBooker::book1D(), dqm::dqmstoreimpl::DQMStore::IBooker::book2D(), checkHit_, meZdcfCNEMvHAD, meZdcfCNHAD, meZdcfCNTOT, meZdcfCPEMvHAD, meZdcfCPHAD, meZdcfCPTOT, meZdcNEM1fCvsTS, meZdcNEM2fCvsTS, meZdcNEM3fCvsTS, meZdcNEM4fCvsTS, meZdcNEM5fCvsTS, meZdcNHAD1fCvsTS, meZdcNHAD2fCvsTS, meZdcNHAD3fCvsTS, meZdcNHAD4fCvsTS, meZdcPEM1fCvsTS, meZdcPEM2fCvsTS, meZdcPEM3fCvsTS, meZdcPEM4fCvsTS, meZdcPEM5fCvsTS, meZdcPHAD1fCvsTS, meZdcPHAD2fCvsTS, meZdcPHAD3fCvsTS, meZdcPHAD4fCvsTS, dqm::impl::MonitorElement::setAxisTitle(), dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder(), and dqm::impl::MonitorElement::setOption().
42 ib.setCurrentFolder(
"ZDCDigiValidation");
55 ib.setCurrentFolder(
"ZDCDigiValidation/ZDC_Digis/1D_fC");
56 meZdcfCPHAD =
ib.book1D(
"PHAD_TotalfC",
"PZDC_HAD_TotalfC", 1000, -50, 10000);
60 meZdcfCPTOT =
ib.book1D(
"PZDC_TotalfC",
"PZDC_TotalfC", 1000, -50, 20000);
64 meZdcfCNHAD =
ib.book1D(
"NHAD_TotalfC",
"NZDC_HAD_TotalfC", 1000, -50, 10000);
68 meZdcfCNTOT =
ib.book1D(
"NZDC_TotalfC",
"NZDC_TotalfC", 1000, -50, 20000);
74 ib.setCurrentFolder(
"ZDCDigiValidation/ZDC_Digis/fCvsTS/PZDC");
121 ib.setCurrentFolder(
"ZDCDigiValidation/ZDC_Digis/fCvsTS/NZDC");
170 ib.setCurrentFolder(
"ZDCDigiValidation/ZDC_Digis/2D_EMvHAD");
173 meZdcfCPEMvHAD =
ib.book2D(
"PEMvPHAD",
"PZDC_EMvHAD", 200, -25, 12000, 200, -25, 15000);
178 meZdcfCNEMvHAD =
ib.book2D(
"NEMvNHAD",
"NZDC_EMvHAD", 1000, -25, 12000, 1000, -25, 15000);
virtual void setOption(const char *option)
MonitorElement * meZdcfCPTOT
MonitorElement * meZdcPEM1fCvsTS
MonitorElement * meZdcfCPEMvHAD
MonitorElement * meZdcPHAD2fCvsTS
MonitorElement * meZdcfCNTOT
MonitorElement * meZdcPHAD3fCvsTS
MonitorElement * meZdcfCPHAD
MonitorElement * meZdcNHAD2fCvsTS
MonitorElement * meZdcPEM3fCvsTS
MonitorElement * meZdcNHAD3fCvsTS
MonitorElement * meZdcPEM2fCvsTS
MonitorElement * meZdcNEM2fCvsTS
MonitorElement * meZdcNEM4fCvsTS
MonitorElement * meZdcNEM3fCvsTS
MonitorElement * meZdcPHAD1fCvsTS
MonitorElement * meZdcNHAD4fCvsTS
MonitorElement * meZdcNHAD1fCvsTS
MonitorElement * meZdcfCNHAD
MonitorElement * meZdcfCNEMvHAD
MonitorElement * meZdcPHAD4fCvsTS
MonitorElement * meZdcPEM4fCvsTS
MonitorElement * meZdcPEM5fCvsTS
MonitorElement * meZdcNEM1fCvsTS
MonitorElement * meZdcNEM5fCvsTS
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
Definition at line 364 of file ZDCDigiStudy.cc.
References DEFINE_FWK_MODULE, dqm::impl::MonitorElement::getTH1F(), meZdcNEM1fCvsTS, meZdcNEM2fCvsTS, meZdcNEM3fCvsTS, meZdcNEM4fCvsTS, meZdcNEM5fCvsTS, meZdcNHAD1fCvsTS, meZdcNHAD2fCvsTS, meZdcNHAD3fCvsTS, meZdcNHAD4fCvsTS, meZdcPEM1fCvsTS, meZdcPEM2fCvsTS, meZdcPEM3fCvsTS, meZdcPEM4fCvsTS, meZdcPEM5fCvsTS, meZdcPHAD1fCvsTS, meZdcPHAD2fCvsTS, meZdcPHAD3fCvsTS, meZdcPHAD4fCvsTS, and cmsHarvester::nevents.
MonitorElement * meZdcPEM1fCvsTS
MonitorElement * meZdcPHAD2fCvsTS
MonitorElement * meZdcPHAD3fCvsTS
MonitorElement * meZdcNHAD2fCvsTS
MonitorElement * meZdcPEM3fCvsTS
MonitorElement * meZdcNHAD3fCvsTS
MonitorElement * meZdcPEM2fCvsTS
MonitorElement * meZdcNEM2fCvsTS
MonitorElement * meZdcNEM4fCvsTS
MonitorElement * meZdcNEM3fCvsTS
MonitorElement * meZdcPHAD1fCvsTS
MonitorElement * meZdcNHAD4fCvsTS
MonitorElement * meZdcNHAD1fCvsTS
MonitorElement * meZdcPHAD4fCvsTS
MonitorElement * meZdcPEM4fCvsTS
MonitorElement * meZdcPEM5fCvsTS
MonitorElement * meZdcNEM1fCvsTS
MonitorElement * meZdcNEM5fCvsTS