|
| HGcalHitCheck (const edm::ParameterSet &ps) |
|
| ~HGcalHitCheck () override |
|
| EDAnalyzer ()=default |
|
| EDAnalyzer (const EDAnalyzer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
const EDAnalyzer & | operator= (const EDAnalyzer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () const final |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDAnalyzerBase () 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 |
|
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 |
|
EDConsumerBase & | operator= (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) |
|
|
void | analyze (edm::Event const &, edm::EventSetup const &) override |
|
void | beginJob () override |
|
void | endJob () override |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (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) |
|
Definition at line 31 of file HGCalHitCheck.cc.
Implements edm::one::EDAnalyzerBase.
Definition at line 135 of file HGCalHitCheck.cc.
References MillePedeFileConverter_cfg::e, relativeConstraints::geom, geomToken_, edm::EventSetup::getData(), h_hit1_, h_hit2_, h_hitF_, h_hitL_, h_hitP_, h_hits_, histos_, hfClusterShapes_cfi::hits, l1ctLayer2EG_cff::id, hit::id, info(), edm::HandleBase::isValid(), nameSense_, nhits, tok_calo_, verbosity_, HGCalTypes::WaferFull, HGCalWaferIndex::waferU(), and HGCalWaferIndex::waferV().
137 edm::LogVerbatim(
"HitStudy") <<
"Run = " <<
e.id().run() <<
" Event = " <<
e.id().event();
142 const std::vector<DetId>& validIds =
geom->getValidDetIds();
146 bool getHits = (hitsCalo.
isValid());
147 uint32_t
nhits = (getHits) ? hitsCalo->size() : 0;
148 uint32_t wafer(0), tiles(0);
150 edm::LogVerbatim(
"HitStudy") <<
"HGcalHitCheck: Input flags Hits " << getHits <<
" with " <<
nhits <<
" hits";
155 std::vector<PCaloHit>
hits;
156 hits.insert(
hits.end(), hitsCalo->begin(), hitsCalo->end());
163 int lay =
id.layer();
176 int lay =
id.layer();
178 int sipm =
id.sipm();
191 edm::LogVerbatim(
"HitStudy") <<
"Total hits = " <<
nhits <<
" Wafer DetIds = " << wafer <<
" Tile DetIds = " << tiles;
Log< level::Info, true > LogVerbatim
const std::string nameSense_
int32_t waferU(const int32_t index)
std::vector< TH1D * > h_hitP_
static constexpr int32_t WaferFull
std::vector< TH1D * > h_hitF_
std::vector< TH1D * > h_hitL_
int32_t waferV(const int32_t index)
const edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > geomToken_
const edm::EDGetTokenT< edm::PCaloHitContainer > tok_calo_
void HGcalHitCheck::beginJob |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 79 of file HGCalHitCheck.cc.
References compareTotals::fs, h_hit1_, h_hit2_, h_hitF_, h_hitL_, h_hitP_, h_hits_, histos_, dqmdumpme::k, layers_, Skims_PA_cff::name, nameSense_, tag_, and runGCPTkAlMap::title.
81 if (!
fs.isAvailable()) {
86 sprintf(
name,
"HitsL");
90 h_hits_->GetYaxis()->SetTitle(
"Hits");
92 sprintf(
name,
"HitsF");
93 sprintf(
title,
"Number of hits in %s for %s in Full Wafers or SiPM 2",
nameSense_.c_str(),
tag_.c_str());
96 h_hit1_->GetYaxis()->SetTitle(
"Hits");
98 sprintf(
name,
"HitsP");
99 sprintf(
title,
"Number of hits in %s for %s in Partial Wafers or SiPM 4",
nameSense_.c_str(),
tag_.c_str());
102 h_hit2_->GetYaxis()->SetTitle(
"Hits");
105 sprintf(
name,
"HitsL%d",
k + 1);
106 sprintf(
title,
"Number of hits in %s for %s in Layer %d",
nameSense_.c_str(),
tag_.c_str(),
k + 1);
109 h_hitL_.back()->GetYaxis()->SetTitle(
"Hits");
111 sprintf(
name,
"HitsF%d",
k + 1);
113 "Number of hits in %s for %s in Full Wafers or SiPM 2 of Layer %d",
119 h_hitF_.back()->GetYaxis()->SetTitle(
"Hits");
121 sprintf(
name,
"HitsP%d",
k + 1);
123 "Number of hits in %s for %s in Partial Wafers or SiPM 4 of Layer %d",
129 h_hitP_.back()->GetYaxis()->SetTitle(
"Hits");
Log< level::Info, true > LogVerbatim
const std::string nameSense_
std::vector< TH1D * > h_hitP_
std::vector< TH1D * > h_hitF_
std::vector< TH1D * > h_hitL_