|
| HcalGeomCheck (const edm::ParameterSet &) |
|
| ~HcalGeomCheck () 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 &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
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 & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
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) |
|
|
void | analyze (edm::Event const &, edm::EventSetup const &) override |
|
void | beginJob () override |
|
void | beginRun (edm::Run const &, edm::EventSetup const &) override |
|
void | endRun (edm::Run const &, edm::EventSetup const &) override |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
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<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () noexcept |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) noexcept |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Definition at line 40 of file HcalGeomCheck.cc.
Implements edm::one::EDAnalyzerBase.
Definition at line 111 of file HcalGeomCheck.cc.
115 if (theCaloHitContainer.
isValid()) {
117 edm::LogVerbatim(
"HcalValidation") <<
" PcalohitItr = " << theCaloHitContainer->size();
120 std::map<HcalDetId, hitsinfo> map_hits;
121 unsigned int nused(0);
122 for (
auto const&
hit : *(theCaloHitContainer.
product())) {
123 unsigned int id =
hit.
id();
127 int subdet = detId.
subdet();
136 HepGeom::Point3D<float> gcoord = HepGeom::Point3D<float>(rz *
cos(
etaphi.second) / cosh(
etaphi.first),
140 double tof = (gcoord.mag() * CLHEP::mm) / CLHEP::c_light;
143 <<
"Detector " << subdet <<
" ieta = " <<
ieta <<
" iphi = " <<
iphi <<
" depth = " <<
depth
144 <<
" positon = " << gcoord <<
" energy = " <<
energy <<
" time = " <<
time <<
":" << tof;
149 if (map_hits.count(detId) != 0) {
150 hinfo = map_hits[detId];
152 hinfo.phi = gcoord.getPhi();
153 hinfo.eta = gcoord.getEta();
157 map_hits[detId] =
hinfo;
159 h_RZ_->Fill(gcoord.z(), gcoord.rho());
163 for (
auto const&
hit : map_hits) {
165 int subdet =
hit.first.subdet();
166 if (subdet > 0 && subdet < static_cast<int>(
h_E_.size())) {
172 <<
" ---------------------- eta = " <<
ieta <<
":" <<
hinfo.eta <<
" phi = " <<
iphi <<
":" <<
hinfo.phi
173 <<
" depth = " <<
depth <<
" E = " <<
hinfo.energy <<
" T = " <<
hinfo.time;
178 itr1->second->Fill(
iphi);
181 itr2->second->Fill(
ieta);
References funct::cos(), LEDCalibrationChannels::depth, HcalDetId::depth(), HCALHighEnergyHPDFilter_cfi::energy, fastmath::etaphi(), HcalDDDRecConstants::getEtaPhi(), HcalDDDRecConstants::getRZ(), h_E_, h_eta_, h_phi_, h_RZ_, h_T_, hcons_, hit::id, LEDCalibrationChannels::ieta, HcalDetId::ieta(), iEvent, LEDCalibrationChannels::iphi, HcalDetId::iphi(), edm::HandleBase::isValid(), edm::Handle< T >::product(), HcalHitRelabeller::relabel(), funct::sin(), HcalDetId::subdet(), protons_cff::time, tok_hits_, and verbosity_.
void HcalGeomCheck::beginJob |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 198 of file HcalGeomCheck.cc.
204 edm::LogVerbatim(
"HcalValidation") <<
"HcalGeomCheck: booked scatterplot RZ";
221 std::vector<std::string> dets = {
"HCAL",
"HB",
"HE",
"HF",
"HO"};
222 for (
unsigned int ih = 0; ih < dets.size(); ++ih) {
223 sprintf(
name,
"E_%s", dets[ih].c_str());
224 sprintf(
title,
"Energy deposit in %s (MeV)", dets[ih].c_str());
228 sprintf(
name,
"T_%s", dets[ih].c_str());
229 sprintf(
title,
"Time of hit in %s (ns)", dets[ih].c_str());
References LEDCalibrationChannels::depth, depthMax_, h_E_, h_eta_, h_phi_, h_RZ_, h_T_, LEDCalibrationChannels::ieta, ietaMax_, ietaMin_, TFileService::make(), Skims_PA_cff::name, nbinR_, nbinZ_, rmax_, rmin_, runGCPTkAlMap::title, verbosity_, zmax_, and zmin_.