CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes
DQMHcalIterativePhiSymAlCaReco Class Reference
Inheritance diagram for DQMHcalIterativePhiSymAlCaReco:
DQMOneEDAnalyzer<> edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args...> edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 DQMHcalIterativePhiSymAlCaReco (const edm::ParameterSet &)
 
 ~DQMHcalIterativePhiSymAlCaReco () override
 
- Public Member Functions inherited from DQMOneEDAnalyzer<>
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 final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~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
 
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
 
- 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
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex >
const & 
esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector
< ProductResolverIndexAndSkipBit >
const & 
itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::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
 
bool registeredToConsumeMany (TypeID const &, 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::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- 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

void analyze (const edm::Event &e, const edm::EventSetup &c) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void dqmEndRun (const edm::Run &r, const edm::EventSetup &c) override
 
- Protected Member Functions inherited from DQMOneEDAnalyzer<>
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
- Protected Member Functions inherited from edm::ProducerBase
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 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<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

std::string folderName_
 
MonitorElementhiDistr2D_ [maxDepth_]
 
double hiDistr_x_max_
 
double hiDistr_x_min_
 
int hiDistr_x_nbin_
 
double hiDistr_y_max_
 
double hiDistr_y_min_
 
int hiDistr_y_nbin_
 
MonitorElementhiDistrHBHEsize1D_
 
MonitorElementhiDistrHFsize1D_
 
MonitorElementhiDistrHOsize1D_
 
edm::EDGetTokenT
< HBHERecHitCollection
tok_hbhe_
 object to monitor More...
 
edm::EDGetTokenT
< HFRecHitCollection
tok_hf_
 
edm::EDGetTokenT
< HORecHitCollection
tok_ho_
 

Static Private Attributes

static constexpr int maxDepth_ = 7
 

Additional Inherited Members

- Public Types inherited from DQMOneEDAnalyzer<>
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
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
 
- Protected Attributes inherited from DQMOneEDAnalyzer<>
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 38 of file DQMHcalIterativePhiSymAlCaReco.cc.

Constructor & Destructor Documentation

DQMHcalIterativePhiSymAlCaReco::DQMHcalIterativePhiSymAlCaReco ( const edm::ParameterSet ps)

Definition at line 81 of file DQMHcalIterativePhiSymAlCaReco.cc.

References folderName_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hiDistr_x_max_, hiDistr_x_min_, hiDistr_x_nbin_, hiDistr_y_max_, hiDistr_y_min_, hiDistr_y_nbin_, AlCaHLTBitMon_QueryRunRegistry::string, tok_hbhe_, tok_hf_, and tok_ho_.

81  {
82  //
83  // Input from configurator file
84  //
85  folderName_ = ps.getParameter<std::string>("folderName");
86 
87  // histogram parameters
88  tok_ho_ = consumes<HORecHitCollection>(ps.getParameter<edm::InputTag>("hoInput"));
89  tok_hf_ = consumes<HFRecHitCollection>(ps.getParameter<edm::InputTag>("hfInput"));
90  tok_hbhe_ = consumes<HBHERecHitCollection>(ps.getParameter<edm::InputTag>("hbheInput"));
91 
92  // Distribution of rechits in iPhi, iEta
93  hiDistr_y_nbin_ = ps.getUntrackedParameter<int>("hiDistr_y_nbin", 72);
94  hiDistr_y_min_ = ps.getUntrackedParameter<double>("hiDistr_y_min", 0.5);
95  hiDistr_y_max_ = ps.getUntrackedParameter<double>("hiDistr_y_max", 72.5);
96  hiDistr_x_nbin_ = ps.getUntrackedParameter<int>("hiDistr_x_nbin", 83);
97  hiDistr_x_min_ = ps.getUntrackedParameter<double>("hiDistr_x_min", -41.5);
98  hiDistr_x_max_ = ps.getUntrackedParameter<double>("hiDistr_x_max", 41.5);
99 }
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
object to monitor
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::EDGetTokenT< HORecHitCollection > tok_ho_
DQMHcalIterativePhiSymAlCaReco::~DQMHcalIterativePhiSymAlCaReco ( )
override

Definition at line 101 of file DQMHcalIterativePhiSymAlCaReco.cc.

101 {}

Member Function Documentation

void DQMHcalIterativePhiSymAlCaReco::analyze ( const edm::Event e,
const edm::EventSetup c 
)
overrideprotectedvirtual

Reimplemented from DQMOneEDAnalyzer<>.

Definition at line 146 of file DQMHcalIterativePhiSymAlCaReco.cc.

References edm::SortedCollection< T, SORT >::begin(), HcalDetId::depth(), edm::SortedCollection< T, SORT >::end(), dqm::impl::MonitorElement::Fill(), edm::Event::getByToken(), hiDistr2D_, hiDistrHBHEsize1D_, hiDistrHFsize1D_, hiDistrHOsize1D_, gpuClustering::id, HcalDetId::ieta(), HcalDetId::iphi(), edm::HandleBase::isValid(), maxDepth_, edm::Handle< T >::product(), edm::SortedCollection< T, SORT >::size(), tok_hbhe_, tok_hf_, and tok_ho_.

146  {
147  // First HBHE RecHits
149  iEvent.getByToken(tok_hbhe_, hbheMB);
150  if (!hbheMB.isValid()) {
151  edm::LogWarning("DQMHcal") << "DQMHcalIterativePhiSymAlCaReco: Error! can't get HBHE RecHit Collection!";
152  } else {
153  const HBHERecHitCollection Hithbhe = *(hbheMB.product());
154  hiDistrHBHEsize1D_->Fill(Hithbhe.size());
155  for (HBHERecHitCollection::const_iterator hbheItr = Hithbhe.begin(); hbheItr != Hithbhe.end(); hbheItr++) {
156  HcalDetId hid = HcalDetId(hbheItr->detid());
157  int id = hid.depth() - 1;
158  if ((id >= 0) && (id < maxDepth_))
159  hiDistr2D_[id]->Fill(hid.ieta(), hid.iphi(), hbheItr->energy());
160  }
161  }
162 
163  // Then HF RecHits
165  iEvent.getByToken(tok_hf_, hfMB);
166  if (!hfMB.isValid()) {
167  edm::LogWarning("DQMHcal") << "DQMHcalIterativePhiSymAlCaReco: Error! can't get HF RecHit Collection!";
168  } else {
169  const HFRecHitCollection Hithf = *(hfMB.product());
170  hiDistrHFsize1D_->Fill(Hithf.size());
171  for (HFRecHitCollection::const_iterator hfItr = Hithf.begin(); hfItr != Hithf.end(); hfItr++) {
172  HcalDetId hid = HcalDetId(hfItr->detid());
173  int id = hid.depth() - 1;
174  if ((id >= 0) && (id < maxDepth_))
175  hiDistr2D_[id]->Fill(hid.ieta(), hid.iphi(), hfItr->energy());
176  }
177  }
178 
179  // And finally HO RecHits
181  iEvent.getByToken(tok_ho_, hoMB);
182  if (!hoMB.isValid()) {
183  edm::LogWarning("DQMHcal") << "DQMHcalIterativePhiSymAlCaReco: Error! can't get HO RecHit Collection!";
184  } else {
185  const HORecHitCollection Hitho = *(hoMB.product());
186  hiDistrHOsize1D_->Fill(Hitho.size());
187  for (HORecHitCollection::const_iterator hoItr = Hitho.begin(); hoItr != Hitho.end(); hoItr++) {
188  HcalDetId hid = HcalDetId(hoItr->detid());
189  int id = hid.depth() - 1;
190  if ((id >= 0) && (id < maxDepth_))
191  hiDistr2D_[id]->Fill(hid.ieta(), hid.iphi(), hoItr->energy());
192  }
193  }
194 
195 } // analyze
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
object to monitor
uint16_t *__restrict__ id
std::vector< T >::const_iterator const_iterator
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
void Fill(long long x)
int iEvent
Definition: GenABIO.cc:224
constexpr int iphi() const
get the cell iphi
Definition: HcalDetId.h:157
constexpr int ieta() const
get the cell ieta
Definition: HcalDetId.h:155
bool isValid() const
Definition: HandleBase.h:70
const_iterator end() const
T const * product() const
Definition: Handle.h:70
size_type size() const
constexpr int depth() const
get the tower depth
Definition: HcalDetId.h:164
Log< level::Warning, false > LogWarning
edm::EDGetTokenT< HORecHitCollection > tok_ho_
const_iterator begin() const
void DQMHcalIterativePhiSymAlCaReco::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  irun,
edm::EventSetup const &  isetup 
)
overrideprotectedvirtual

Implements DQMOneEDAnalyzer<>.

Definition at line 119 of file DQMHcalIterativePhiSymAlCaReco.cc.

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), folderName_, hiDistr2D_, hiDistr_x_max_, hiDistr_x_min_, hiDistr_x_nbin_, hiDistr_y_max_, hiDistr_y_min_, hiDistr_y_nbin_, hiDistrHBHEsize1D_, hiDistrHFsize1D_, hiDistrHOsize1D_, isotrackApplyRegressor::k, maxDepth_, mergeVDriftHistosByStation::name, dqm::impl::MonitorElement::setAxisTitle(), dqm::implementation::NavigatorBase::setCurrentFolder(), and runGCPTkAlMap::title.

121  {
122  // create and cd into new folder
123  ibooker.setCurrentFolder(folderName_);
124 
125  // book some histograms 1D
126  hiDistrHBHEsize1D_ = ibooker.book1D("DistrHBHEsize", "Size of HBHE Collection", 100, 0.0, 10000.0);
127  hiDistrHFsize1D_ = ibooker.book1D("DistrHFsize", "Size of HF Collection", 100, 0.0, 10000.0);
128  hiDistrHOsize1D_ = ibooker.book1D("DistrHOsize", "Size of HO Collection", 100, 0.0, 3000.0);
129 
130  // Eta-phi occupancy
131  for (int k = 0; k < maxDepth_; ++k) {
132  char name[20], title[20];
133  sprintf(name, "MBdepth%d", (k + 1));
134  sprintf(title, "Depth %d", (k + 1));
135  hiDistr2D_[k] = ibooker.book2D(
137  hiDistr2D_[k]->setAxisTitle("i#phi ", 2);
138  hiDistr2D_[k]->setAxisTitle("i#eta ", 1);
139  }
140 }
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
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:212
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void DQMHcalIterativePhiSymAlCaReco::dqmEndRun ( const edm::Run r,
const edm::EventSetup c 
)
inlineoverrideprotectedvirtual

Reimplemented from DQMOneEDAnalyzer<>.

Definition at line 50 of file DQMHcalIterativePhiSymAlCaReco.cc.

50 {}
void DQMHcalIterativePhiSymAlCaReco::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 103 of file DQMHcalIterativePhiSymAlCaReco.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

103  {
105  desc.add<std::string>("folderName", "ALCAStreamHcalIterativePhiSym");
106  desc.add<edm::InputTag>("hbheInput", edm::InputTag("hbhereco"));
107  desc.add<edm::InputTag>("hfInput", edm::InputTag("hfreco"));
108  desc.add<edm::InputTag>("hoInput", edm::InputTag("horeco"));
109  desc.addUntracked<int>("hiDistr_y_nbin", 72);
110  desc.addUntracked<double>("hiDistr_y_min", 0.5);
111  desc.addUntracked<double>("hiDistr_y_max", 72.5);
112  desc.addUntracked<int>("hiDistr_x_nbin", 83);
113  desc.addUntracked<double>("hiDistr_x_min", -41.5);
114  desc.addUntracked<double>("hiDistr_x_max", 41.5);
115  descriptions.add("dqmHcalIterativePhiSymAlCaReco", desc);
116 }
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)

Member Data Documentation

std::string DQMHcalIterativePhiSymAlCaReco::folderName_
private
MonitorElement* DQMHcalIterativePhiSymAlCaReco::hiDistr2D_[maxDepth_]
private

Definition at line 57 of file DQMHcalIterativePhiSymAlCaReco.cc.

Referenced by analyze(), and bookHistograms().

double DQMHcalIterativePhiSymAlCaReco::hiDistr_x_max_
private
double DQMHcalIterativePhiSymAlCaReco::hiDistr_x_min_
private
int DQMHcalIterativePhiSymAlCaReco::hiDistr_x_nbin_
private
double DQMHcalIterativePhiSymAlCaReco::hiDistr_y_max_
private
double DQMHcalIterativePhiSymAlCaReco::hiDistr_y_min_
private
int DQMHcalIterativePhiSymAlCaReco::hiDistr_y_nbin_
private
MonitorElement* DQMHcalIterativePhiSymAlCaReco::hiDistrHBHEsize1D_
private

Definition at line 59 of file DQMHcalIterativePhiSymAlCaReco.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* DQMHcalIterativePhiSymAlCaReco::hiDistrHFsize1D_
private

Definition at line 60 of file DQMHcalIterativePhiSymAlCaReco.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* DQMHcalIterativePhiSymAlCaReco::hiDistrHOsize1D_
private

Definition at line 61 of file DQMHcalIterativePhiSymAlCaReco.cc.

Referenced by analyze(), and bookHistograms().

constexpr int DQMHcalIterativePhiSymAlCaReco::maxDepth_ = 7
staticprivate

Definition at line 53 of file DQMHcalIterativePhiSymAlCaReco.cc.

Referenced by analyze(), and bookHistograms().

edm::EDGetTokenT<HBHERecHitCollection> DQMHcalIterativePhiSymAlCaReco::tok_hbhe_
private

object to monitor

Definition at line 72 of file DQMHcalIterativePhiSymAlCaReco.cc.

Referenced by analyze(), and DQMHcalIterativePhiSymAlCaReco().

edm::EDGetTokenT<HFRecHitCollection> DQMHcalIterativePhiSymAlCaReco::tok_hf_
private

Definition at line 74 of file DQMHcalIterativePhiSymAlCaReco.cc.

Referenced by analyze(), and DQMHcalIterativePhiSymAlCaReco().

edm::EDGetTokenT<HORecHitCollection> DQMHcalIterativePhiSymAlCaReco::tok_ho_
private

Definition at line 73 of file DQMHcalIterativePhiSymAlCaReco.cc.

Referenced by analyze(), and DQMHcalIterativePhiSymAlCaReco().