|
void | analyze (const edm::Event &e, const edm::EventSetup &) override |
|
void | bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override |
|
| ME0HitsValidation (const edm::ParameterSet &) |
|
| ~ME0HitsValidation () override |
|
MonitorElement * | BookHistXY (DQMStore::IBooker &, const char *name, const char *label, unsigned int region_num, unsigned int layer_num=99) |
|
MonitorElement * | BookHistZR (DQMStore::IBooker &, const char *name, const char *label, unsigned int region_num, unsigned int layer_num=99) |
|
| ME0BaseValidation (const edm::ParameterSet &ps) |
|
| ~ME0BaseValidation () 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) |
|
|
typedef dqm::reco::DQMStore | DQMStore |
|
typedef dqm::reco::MonitorElement | MonitorElement |
|
typedef EDProducerBase | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
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) |
|
edm::EDGetToken | InputTagToken_ |
|
std::vector< std::string > | layerLabel |
|
int | nBinXY_ |
|
std::vector< double > | nBinZR_ |
|
std::vector< double > | RangeZR_ |
|
std::vector< std::string > | regionLabel |
|
edm::EDPutTokenT< DQMToken > | lumiToken_ |
|
edm::EDPutTokenT< DQMToken > | runToken_ |
|
Definition at line 6 of file ME0HitsValidation.h.
Implements ME0BaseValidation.
Definition at line 60 of file ME0HitsValidation.cc.
References funct::abs(), gather_cfg::cout, fastSimProducer_cff::energyLoss, dqm::impl::MonitorElement::Fill(), edm::EventSetup::get(), edm::Event::getByToken(), hfClusterShapes_cfi::hits, triggerObjects_cff::id, ME0Geometry::idToDet(), ME0BaseValidation::InputTagToken_, createfilelist::int, edm::HandleBase::isValid(), me0_sh_eloss, me0_sh_elossMu, me0_sh_tof, me0_sh_tofMu, me0_sh_tot_zr, me0_sh_xy, me0_sh_zr, PV3DBase< T, PVType, FrameType >::perp(), HLT_2018_cff::region, spr::timeOfFlight(), and GeomDet::toGlobal().
68 edm::LogError(
"ME0HitsValidation") <<
"Cannot get ME0Hits by Token simInputTagToken";
72 Float_t timeOfFlightMuon = 0.;
73 Float_t energyLossMuon = 0;
75 for (
auto hits = ME0Hits->begin();
hits != ME0Hits->end();
hits++) {
77 Int_t
region =
id.region();
78 Int_t layer =
id.layer();
81 if (ME0Geometry_->
idToDet(
hits->detUnitId()) ==
nullptr) {
82 std::cout <<
"simHit did not matched with GEMGeometry." << std::endl;
89 Float_t g_r = hitGP.
perp();
90 Float_t g_x = hitGP.x();
91 Float_t g_y = hitGP.y();
92 Float_t g_z = hitGP.z();
96 if (
abs(
hits->particleType()) == 13) {
97 timeOfFlightMuon =
hits->timeOfFlight();
98 energyLossMuon =
hits->energyLoss();
MonitorElement * me0_sh_elossMu[2][6]
MonitorElement * me0_sh_zr[2][6]
MonitorElement * me0_sh_tot_zr[2]
MonitorElement * me0_sh_xy[2][6]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
MonitorElement * me0_sh_tofMu[2][6]
Abs< T >::type abs(const T &t)
MonitorElement * me0_sh_tof[2][6]
MonitorElement * me0_sh_eloss[2][6]
const GeomDet * idToDet(DetId) const override
edm::EDGetToken InputTagToken_
double timeOfFlight(DetId id, const CaloGeometry *geo, bool debug=false)
Implements DQMEDAnalyzer.
Definition at line 9 of file ME0HitsValidation.cc.
References dqm::dqmstoreimpl::DQMStore::IBooker::book1D(), ME0BaseValidation::BookHistXY(), ME0BaseValidation::BookHistZR(), ME0BaseValidation::layerLabel, LogDebug, me0_sh_eloss, me0_sh_elossMu, me0_sh_tof, me0_sh_tofMu, me0_sh_tot_zr, me0_sh_xy, me0_sh_zr, ME0BaseValidation::regionLabel, dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.
10 LogDebug(
"MuonME0HitsValidation") <<
"Info : Loading Geometry information\n";
11 ibooker.setCurrentFolder(
"MuonME0HitsV/ME0HitsTask");
13 unsigned int nregion = 2;
15 edm::LogInfo(
"MuonME0HitsValidation") <<
"+++ Info : # of region : " << nregion << std::endl;
17 LogDebug(
"MuonME0HitsValidation") <<
"+++ Info : finish to get geometry information from ES.\n";
19 for (
unsigned int region_num = 0; region_num < nregion; region_num++) {
21 for (
unsigned int layer_num = 0; layer_num < 6; layer_num++) {
22 me0_sh_zr[region_num][layer_num] =
BookHistZR(ibooker,
"me0_sh",
"SimHit", region_num, layer_num);
23 me0_sh_xy[region_num][layer_num] =
BookHistXY(ibooker,
"me0_sh",
"SimHit", region_num, layer_num);
33 layerLabel[layer_num] +
" ; globalX [cm]; globalY[cm]";
35 layerLabel[layer_num] +
" " +
" ; Time of flight [ns] ; entries";
36 std::string hist_label_for_tofMu =
"SimHit TOF(Muon only) : region" +
regionLabel[region_num] +
" layer " +
37 layerLabel[layer_num] +
" " +
" ; Time of flight [ns] ; entries";
39 layerLabel[layer_num] +
" " +
" ; Energy loss [eV] ; entries";
41 " layer " + layerLabel[layer_num] +
" " +
" ; Energy loss [eV] ; entries";
43 double tof_min, tof_max;
47 ibooker.book1D(hist_name_for_tof.c_str(), hist_label_for_tof.c_str(), 40, tof_min, tof_max);
49 ibooker.book1D(hist_name_for_tofMu.c_str(), hist_label_for_tofMu.c_str(), 40, tof_min, tof_max);
51 ibooker.book1D(hist_name_for_eloss.c_str(), hist_label_for_eloss.c_str(), 60, 0., 6000.);
53 ibooker.book1D(hist_name_for_elossMu.c_str(), hist_label_for_elossMu.c_str(), 60, 0., 6000.);
MonitorElement * me0_sh_elossMu[2][6]
MonitorElement * me0_sh_zr[2][6]
MonitorElement * me0_sh_tot_zr[2]
MonitorElement * me0_sh_xy[2][6]
std::vector< std::string > regionLabel
MonitorElement * me0_sh_tofMu[2][6]
MonitorElement * BookHistZR(DQMStore::IBooker &, const char *name, const char *label, unsigned int region_num, unsigned int layer_num=99)
MonitorElement * BookHistXY(DQMStore::IBooker &, const char *name, const char *label, unsigned int region_num, unsigned int layer_num=99)
MonitorElement * me0_sh_tof[2][6]
MonitorElement * me0_sh_eloss[2][6]
std::vector< std::string > layerLabel