CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Attributes
ESOccupancyTask Class Reference

#include <ESOccupancyTask.h>

Inheritance diagram for ESOccupancyTask:
DQMOneEDAnalyzer< edm::LuminosityBlockCache< ESOccLSCache > > edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 ESOccupancyTask (const edm::ParameterSet &ps)
 
 ~ESOccupancyTask () override
 
- Public Member Functions inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< ESOccLSCache > >
void accumulate (edm::Event const &event, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
 DQMOneEDAnalyzer ()
 
void endRun (edm::Run const &, edm::EventSetup const &) final
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... >
 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)
 

Protected Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
std::shared_ptr< ESOccLSCacheglobalBeginLuminosityBlock (const edm::LuminosityBlock &lumi, const edm::EventSetup &c) const override
 Begin Lumi. More...
 
void globalEndLuminosityBlock (const edm::LuminosityBlock &lumi, const edm::EventSetup &c) override
 End Lumi. More...
 
- Protected Member Functions inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< ESOccLSCache > >
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
virtual void dqmEndRun (edm::Run const &, edm::EventSetup const &)
 
- 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)
 

Private Attributes

int eCount_
 
MonitorElementhE1E2_ [2]
 
MonitorElementhEnDensity_ [2][2]
 
MonitorElementhEng_ [2][2]
 
MonitorElementhEvEng_ [2][2]
 
MonitorElementhGoodRecNHit_ [2][2]
 
MonitorElementhRecNHit_ [2][2]
 
MonitorElementhRecOCC_ [2][2]
 
MonitorElementhSelEnDensity_ [2][2]
 
MonitorElementhSelEng_ [2][2]
 
MonitorElementhSelOCC_ [2][2]
 
MonitorElementhSelOCCByLS_ [2][2]
 
std::string prefixME_
 
edm::EDGetTokenT< ESRecHitCollectionrechittoken_
 
int runNum_
 

Additional Inherited Members

- Public Types inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< ESOccLSCache > >
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::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 Attributes inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< ESOccLSCache > >
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 14 of file ESOccupancyTask.h.

Constructor & Destructor Documentation

◆ ESOccupancyTask()

ESOccupancyTask::ESOccupancyTask ( const edm::ParameterSet ps)

Definition at line 24 of file ESOccupancyTask.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), mps_fire::i, and dqmiolumiharvest::j.

24  {
25  rechittoken_ = consumes<ESRecHitCollection>(ps.getParameter<InputTag>("RecHitLabel"));
26  prefixME_ = ps.getUntrackedParameter<string>("prefixME", "EcalPreshower");
27 
28  eCount_ = 0;
29 
30  //Histogram init
31  for (int i = 0; i < 2; ++i)
32  for (int j = 0; j < 2; ++j) {
33  hRecOCC_[i][j] = nullptr;
34  hRecNHit_[i][j] = nullptr;
35  hEng_[i][j] = nullptr;
36  hEvEng_[i][j] = nullptr;
37  hEnDensity_[i][i] = nullptr;
38  hGoodRecNHit_[i][j] = nullptr;
39 
40  hSelEng_[i][j] = nullptr;
41  hSelOCC_[i][j] = nullptr;
42  hSelOCCByLS_[i][j] = nullptr;
43  hSelEnDensity_[i][j] = nullptr;
44  }
45 
46  for (int i = 0; i < 2; ++i)
47  hE1E2_[i] = nullptr;
48 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
MonitorElement * hSelOCC_[2][2]
MonitorElement * hSelEng_[2][2]
MonitorElement * hRecOCC_[2][2]
MonitorElement * hEvEng_[2][2]
MonitorElement * hEng_[2][2]
T getUntrackedParameter(std::string const &, T const &) const
std::string prefixME_
MonitorElement * hE1E2_[2]
MonitorElement * hSelEnDensity_[2][2]
MonitorElement * hSelOCCByLS_[2][2]
MonitorElement * hEnDensity_[2][2]
MonitorElement * hGoodRecNHit_[2][2]
MonitorElement * hRecNHit_[2][2]
edm::EDGetTokenT< ESRecHitCollection > rechittoken_

◆ ~ESOccupancyTask()

ESOccupancyTask::~ESOccupancyTask ( )
inlineoverride

Definition at line 17 of file ESOccupancyTask.h.

17 {}

Member Function Documentation

◆ analyze()

void ESOccupancyTask::analyze ( const edm::Event e,
const edm::EventSetup iSetup 
)
overrideprotectedvirtual

Reimplemented from DQMOneEDAnalyzer< edm::LuminosityBlockCache< ESOccLSCache > >.

Definition at line 138 of file ESOccupancyTask.cc.

References edm::SortedCollection< T, SORT >::begin(), MillePedeFileConverter_cfg::e, edm::SortedCollection< T, SORT >::end(), mps_fire::i, ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::endcap::ix(), ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::endcap::iy(), dqmiolumiharvest::j, and ecaldqm::zside().

138  {
139  runNum_ = e.id().run();
140  eCount_++;
141 
142  // RecHits
143  int zside, plane, ix, iy;
144  int sum_RecHits[2][2], sum_GoodRecHits[2][2];
145  float sum_Energy[2][2];
146 
147  for (int i = 0; i < 2; ++i)
148  for (int j = 0; j < 2; ++j) {
149  sum_RecHits[i][j] = 0;
150  sum_GoodRecHits[i][j] = 0;
151  sum_Energy[i][j] = 0;
152  }
153 
155  if (e.getByToken(rechittoken_, ESRecHit)) {
156  for (ESRecHitCollection::const_iterator hitItr = ESRecHit->begin(); hitItr != ESRecHit->end(); ++hitItr) {
157  ESDetId id = ESDetId(hitItr->id());
158 
159  zside = id.zside();
160  plane = id.plane();
161  ix = id.six();
162  iy = id.siy();
163 
164  int i = (zside == 1) ? 0 : 1;
165  int j = plane - 1;
166 
167  sum_RecHits[i][j]++;
168  sum_Energy[i][j] += hitItr->energy();
169  hRecOCC_[i][j]->Fill(ix, iy);
170  if (hitItr->energy() != 0) {
171  hEng_[i][j]->Fill(hitItr->energy());
172  hEnDensity_[i][j]->Fill(ix, iy, hitItr->energy());
173 
174  if (hitItr->recoFlag() == 14 || hitItr->recoFlag() == 1 ||
175  (hitItr->recoFlag() <= 10 && hitItr->recoFlag() >= 5))
176  continue;
177  sum_GoodRecHits[i][j]++;
178  hSelEng_[i][j]->Fill(hitItr->energy());
179  hSelEnDensity_[i][j]->Fill(ix, iy, hitItr->energy());
180  hSelOCC_[i][j]->Fill(ix, iy);
181  hSelOCCByLS_[i][j]->Fill(ix, iy);
182  }
183  }
184  } else {
185  LogWarning("ESOccupancyTask") << "RecHitCollection not available";
186  }
187 
188  //Fill histograms after a event
189  for (int i = 0; i < 2; ++i)
190  for (int j = 0; j < 2; ++j) {
191  hRecNHit_[i][j]->Fill(sum_RecHits[i][j]);
192  hGoodRecNHit_[i][j]->Fill(sum_GoodRecHits[i][j]);
193  hEvEng_[i][j]->Fill(sum_Energy[i][j]);
194 
195  //Save eCount_ for Scaling
196  hRecOCC_[i][j]->setBinContent(40, 40, eCount_);
197  hEnDensity_[i][j]->setBinContent(40, 40, eCount_);
198 
199  hSelOCC_[i][j]->setBinContent(40, 40, eCount_);
200  hSelOCCByLS_[i][j]->setBinContent(40, 40, eCount_);
201  hSelEnDensity_[i][j]->setBinContent(40, 40, eCount_);
202  }
203 
204  hE1E2_[0]->Fill(sum_Energy[0][0], sum_Energy[0][1]);
205  hE1E2_[1]->Fill(sum_Energy[1][0], sum_Energy[1][1]);
206 }
MonitorElement * hSelOCC_[2][2]
MonitorElement * hSelEng_[2][2]
MonitorElement * hRecOCC_[2][2]
MonitorElement * hEvEng_[2][2]
MonitorElement * hEng_[2][2]
std::vector< EcalRecHit >::const_iterator const_iterator
int zside(DetId const &)
void Fill(long long x)
MonitorElement * hE1E2_[2]
const_iterator begin() const
MonitorElement * hSelEnDensity_[2][2]
const_iterator end() const
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t ix(uint32_t id)
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * hSelOCCByLS_[2][2]
MonitorElement * hEnDensity_[2][2]
MonitorElement * hGoodRecNHit_[2][2]
MonitorElement * hRecNHit_[2][2]
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t iy(uint32_t id)
Log< level::Warning, false > LogWarning
edm::EDGetTokenT< ESRecHitCollection > rechittoken_

◆ bookHistograms()

void ESOccupancyTask::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  ,
edm::EventSetup const &   
)
overrideprotectedvirtual

Implements DQMOneEDAnalyzer< edm::LuminosityBlockCache< ESOccLSCache > >.

Definition at line 65 of file ESOccupancyTask.cc.

References dqm::implementation::IBooker::book1DD(), dqm::implementation::IBooker::book2D(), timingPdfMaker::histo, mps_fire::i, dqmiolumiharvest::j, dqm::impl::MonitorElement::setAxisTitle(), and dqm::implementation::NavigatorBase::setCurrentFolder().

65  {
66  iBooker.setCurrentFolder(prefixME_ + "/ESOccupancyTask");
67 
68  //Booking Histograms
69  //Notice: Change ESRenderPlugin under DQM/RenderPlugins/src if you change this histogram name.
70  char histo[200];
71  for (int i = 0; i < 2; ++i)
72  for (int j = 0; j < 2; ++j) {
73  int iz = (i == 0) ? 1 : -1;
74  sprintf(histo, "ES RecHit 2D Occupancy Z %d P %d", iz, j + 1);
75  hRecOCC_[i][j] = iBooker.book2D(histo, histo, 40, 0.5, 40.5, 40, 0.5, 40.5);
76  hRecOCC_[i][j]->setAxisTitle("Si X", 1);
77  hRecOCC_[i][j]->setAxisTitle("Si Y", 2);
78 
79  //Bin 40,40 is used to save eumber of event for scaling.
80  sprintf(histo, "ES Energy Density Z %d P %d", iz, j + 1);
81  hEnDensity_[i][j] = iBooker.book2D(histo, histo, 40, 0.5, 40.5, 40, 0.5, 40.5);
82  hEnDensity_[i][j]->setAxisTitle("Si X", 1);
83  hEnDensity_[i][j]->setAxisTitle("Si Y", 2);
84 
85  sprintf(histo, "ES Num of RecHits Z %d P %d", iz, j + 1);
86  hRecNHit_[i][j] = iBooker.book1DD(histo, histo, 60, 0, 1920);
87  hRecNHit_[i][j]->setAxisTitle("# of RecHits", 1);
88  hRecNHit_[i][j]->setAxisTitle("Num of Events", 2);
89 
90  sprintf(histo, "ES Num of Good RecHits Z %d P %d", iz, j + 1);
91  hGoodRecNHit_[i][j] = iBooker.book1DD(histo, histo, 60, 0, 1920);
92  hGoodRecNHit_[i][j]->setAxisTitle("# of good RecHits", 1);
93  hGoodRecNHit_[i][j]->setAxisTitle("Num of Events", 2);
94 
95  sprintf(histo, "ES RecHit Energy Z %d P %d", iz, j + 1);
96  hEng_[i][j] = iBooker.book1DD(histo, histo, 50, 0, 0.001);
97  hEng_[i][j]->setAxisTitle("RecHit Energy", 1);
98  hEng_[i][j]->setAxisTitle("Num of ReHits", 2);
99 
100  sprintf(histo, "ES Event Energy Z %d P %d", iz, j + 1);
101  hEvEng_[i][j] = iBooker.book1DD(histo, histo, 50, 0, 0.1);
102  hEvEng_[i][j]->setAxisTitle("Event Energy", 1);
103  hEvEng_[i][j]->setAxisTitle("Num of Events", 2);
104 
105  // histograms with selected hits
106  sprintf(histo, "ES RecHit Energy with selected hits Z %d P %d", iz, j + 1);
107  hSelEng_[i][j] = iBooker.book1DD(histo, histo, 50, 0, 0.001);
108  hSelEng_[i][j]->setAxisTitle("RecHit Energy", 1);
109  hSelEng_[i][j]->setAxisTitle("Num of ReHits", 2);
110 
111  sprintf(histo, "ES Occupancy with selected hits Z %d P %d", iz, j + 1);
112  hSelOCC_[i][j] = iBooker.book2D(histo, histo, 40, 0.5, 40.5, 40, 0.5, 40.5);
113  hSelOCC_[i][j]->setAxisTitle("Si X", 1);
114  hSelOCC_[i][j]->setAxisTitle("Si Y", 2);
115 
116  sprintf(histo, "ES Energy Density with selected hits Z %d P %d", iz, j + 1);
117  hSelEnDensity_[i][j] = iBooker.book2D(histo, histo, 40, 0.5, 40.5, 40, 0.5, 40.5);
118  hSelEnDensity_[i][j]->setAxisTitle("Si X", 1);
119  hSelEnDensity_[i][j]->setAxisTitle("Si Y", 2);
120  }
121 
122  hE1E2_[0] = iBooker.book2D("ES+ EP1 vs EP2", "ES+ EP1 vs EP2", 50, 0, 0.1, 50, 0, 0.1);
123  hE1E2_[1] = iBooker.book2D("ES- EP1 vs EP2", "ES- EP1 vs EP2", 50, 0, 0.1, 50, 0, 0.1);
124 
125  // LS-based histos
126  iBooker.setCurrentFolder(prefixME_ + "/ByLumiSection");
127  for (int i = 0; i < 2; ++i) {
128  for (int j = 0; j < 2; ++j) {
129  int iz = (i == 0) ? 1 : -1;
130  sprintf(histo, "ES Occupancy with selected hits Z %d P %d", iz, j + 1);
131  hSelOCCByLS_[i][j] = iBooker.book2D(histo, histo, 40, 0.5, 40.5, 40, 0.5, 40.5);
132  hSelOCCByLS_[i][j]->setAxisTitle("Si X", 1);
133  hSelOCCByLS_[i][j]->setAxisTitle("Si Y", 2);
134  }
135  }
136 }
MonitorElement * hSelOCC_[2][2]
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
MonitorElement * hSelEng_[2][2]
MonitorElement * hRecOCC_[2][2]
MonitorElement * hEvEng_[2][2]
MonitorElement * hEng_[2][2]
std::string prefixME_
MonitorElement * book1DD(TString const &name, TString const &title, int nchX, double lowX, double highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:155
MonitorElement * hE1E2_[2]
MonitorElement * hSelEnDensity_[2][2]
MonitorElement * hSelOCCByLS_[2][2]
MonitorElement * hEnDensity_[2][2]
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:221
MonitorElement * hGoodRecNHit_[2][2]
MonitorElement * hRecNHit_[2][2]
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)

◆ globalBeginLuminosityBlock()

std::shared_ptr< ESOccLSCache > ESOccupancyTask::globalBeginLuminosityBlock ( const edm::LuminosityBlock lumi,
const edm::EventSetup c 
) const
overrideprotected

Begin Lumi.

Definition at line 50 of file ESOccupancyTask.cc.

51  {
52  auto lumiCache = std::make_shared<ESOccLSCache>();
53  lumiCache->ievtLS_ = 0;
54 
55  for (int iz = 0; iz < 2; ++iz) {
56  for (int ip = 0; ip < 2; ++ip) {
57  hSelOCCByLS_[iz][ip]->Reset();
58  }
59  }
60  return lumiCache;
61 }
virtual void Reset()
Remove all data from the ME, keept the empty histogram with all its settings.
MonitorElement * hSelOCCByLS_[2][2]

◆ globalEndLuminosityBlock()

void ESOccupancyTask::globalEndLuminosityBlock ( const edm::LuminosityBlock lumi,
const edm::EventSetup c 
)
overrideprotected

End Lumi.

Definition at line 63 of file ESOccupancyTask.cc.

63 {}

Member Data Documentation

◆ eCount_

int ESOccupancyTask::eCount_
private

Definition at line 46 of file ESOccupancyTask.h.

◆ hE1E2_

MonitorElement* ESOccupancyTask::hE1E2_[2]
private

Definition at line 44 of file ESOccupancyTask.h.

◆ hEnDensity_

MonitorElement* ESOccupancyTask::hEnDensity_[2][2]
private

Definition at line 38 of file ESOccupancyTask.h.

◆ hEng_

MonitorElement* ESOccupancyTask::hEng_[2][2]
private

Definition at line 42 of file ESOccupancyTask.h.

◆ hEvEng_

MonitorElement* ESOccupancyTask::hEvEng_[2][2]
private

Definition at line 43 of file ESOccupancyTask.h.

◆ hGoodRecNHit_

MonitorElement* ESOccupancyTask::hGoodRecNHit_[2][2]
private

Definition at line 40 of file ESOccupancyTask.h.

◆ hRecNHit_

MonitorElement* ESOccupancyTask::hRecNHit_[2][2]
private

Definition at line 37 of file ESOccupancyTask.h.

◆ hRecOCC_

MonitorElement* ESOccupancyTask::hRecOCC_[2][2]
private

Definition at line 34 of file ESOccupancyTask.h.

◆ hSelEnDensity_

MonitorElement* ESOccupancyTask::hSelEnDensity_[2][2]
private

Definition at line 39 of file ESOccupancyTask.h.

◆ hSelEng_

MonitorElement* ESOccupancyTask::hSelEng_[2][2]
private

Definition at line 41 of file ESOccupancyTask.h.

◆ hSelOCC_

MonitorElement* ESOccupancyTask::hSelOCC_[2][2]
private

Definition at line 35 of file ESOccupancyTask.h.

◆ hSelOCCByLS_

MonitorElement* ESOccupancyTask::hSelOCCByLS_[2][2]
private

Definition at line 36 of file ESOccupancyTask.h.

◆ prefixME_

std::string ESOccupancyTask::prefixME_
private

Definition at line 32 of file ESOccupancyTask.h.

◆ rechittoken_

edm::EDGetTokenT<ESRecHitCollection> ESOccupancyTask::rechittoken_
private

Definition at line 31 of file ESOccupancyTask.h.

◆ runNum_

int ESOccupancyTask::runNum_
private

Definition at line 46 of file ESOccupancyTask.h.