|
void | analyze (const edm::Event &e, const edm::EventSetup &) override |
|
void | bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override |
|
| ME0RecHitsValidation (const edm::ParameterSet &) |
|
| ~ME0RecHitsValidation () 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 11 of file ME0RecHitsValidation.h.
Implements ME0BaseValidation.
Definition at line 61 of file ME0RecHitsValidation.cc.
References l1GtPatternGenerator_cfi::bx, relativeConstraints::chamber, gather_cfg::cout, dqm::impl::MonitorElement::Fill(), spr::find(), edm::EventSetup::get(), edm::Event::getByToken(), hfClusterShapes_cfi::hits, mps_fire::i, triggerObjects_cff::id, ME0Geometry::idToDet(), ME0BaseValidation::InputTagToken_, InputTagToken_RecHit, edm::HandleBase::isValid(), me0_rh_DeltaX, me0_rh_DeltaY, me0_rh_PullX, me0_rh_PullY, me0_rh_xy, me0_rh_zr, or, PV3DBase< T, PVType, FrameType >::perp(), rpcPointValidation_cfi::recHit, HLT_2018_cff::region, mathSSE::sqrt(), relativeConstraints::station, GeomDet::toGlobal(), x, PV3DBase< T, PVType, FrameType >::x(), y, PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
72 edm::LogError(
"ME0RecHitsValidation") <<
"Cannot get ME0Hits/ME0RecHits by Token simInputTagToken";
76 for (
auto hits = ME0Hits->begin();
hits != ME0Hits->end();
hits++) {
78 Int_t sh_region =
id.region();
79 Int_t sh_layer =
id.layer();
81 Int_t sh_chamber =
id.chamber();
82 Int_t sh_roll =
id.roll();
85 if (ME0Geometry_->
idToDet(
hits->detUnitId()) ==
nullptr) {
86 std::cout <<
"simHit did not matched with GEMGeometry." << std::endl;
93 Float_t
x =
recHit->localPosition().x();
94 Float_t xErr =
recHit->localPositionError().xx();
95 Float_t
y =
recHit->localPosition().y();
96 Float_t yErr =
recHit->localPositionError().yy();
99 Float_t clusterSize = 0;
100 Float_t firstClusterStrip = 0;
106 Short_t layer = (Short_t)
id.layer();
108 Short_t roll = (Short_t)
id.roll();
113 Float_t globalR = rhGP.
perp();
114 Float_t globalX = rhGP.
x();
115 Float_t globalY = rhGP.
y();
116 Float_t globalZ = rhGP.
z();
118 Float_t x_sim = hitLP.x();
119 Float_t y_sim = hitLP.y();
120 Float_t pullX = (x_sim -
x) /
sqrt(xErr);
121 Float_t pullY = (y_sim -
y) /
sqrt(yErr);
126 std::vector<int> stripsFired;
127 for (
int i = firstClusterStrip;
i < (firstClusterStrip + clusterSize);
i++) {
128 stripsFired.push_back(
i);
131 const bool cond1(sh_region == region and sh_layer == layer and sh_station == station);
132 const bool cond2(sh_chamber == chamber and sh_roll == roll);
134 (
std::find(stripsFired.begin(), stripsFired.end(), (firstClusterStrip + 1)) != stripsFired.end())
or 140 else if (region == 1)
142 int layer_num = layer - 1;
144 if (cond1 and cond2 and cond3) {
edm::EDGetToken InputTagToken_RecHit
MonitorElement * me0_rh_DeltaX[2][6]
MonitorElement * me0_rh_PullY[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_rh_xy[2][6]
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
MonitorElement * me0_rh_zr[2]
C::const_iterator const_iterator
constant access iterator type
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
MonitorElement * me0_rh_PullX[2][6]
const GeomDet * idToDet(DetId) const override
edm::EDGetToken InputTagToken_
MonitorElement * me0_rh_DeltaY[2][6]
Implements DQMEDAnalyzer.
Definition at line 9 of file ME0RecHitsValidation.cc.
References dqm::dqmstoreimpl::DQMStore::IBooker::book1D(), ME0BaseValidation::BookHistXY(), ME0BaseValidation::BookHistZR(), ME0BaseValidation::layerLabel, LogDebug, me0_rh_DeltaX, me0_rh_DeltaY, me0_rh_PullX, me0_rh_PullY, me0_rh_xy, me0_rh_zr, ME0BaseValidation::regionLabel, dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.
12 LogDebug(
"MuonME0RecHitsValidation") <<
"Info : Loading Geometry information\n";
13 ibooker.setCurrentFolder(
"MuonME0RecHitsV/ME0RecHitsTask");
15 unsigned int nregion = 2;
17 edm::LogInfo(
"MuonME0RecHitsValidation") <<
"+++ Info : # of region : " << nregion << std::endl;
19 LogDebug(
"MuonME0RecHitsValidation") <<
"+++ Info : finish to get geometry information from ES.\n";
21 for (
unsigned int region_num = 0; region_num < nregion; region_num++) {
23 for (
unsigned int layer_num = 0; layer_num < 6; layer_num++) {
24 me0_rh_xy[region_num][layer_num] =
BookHistXY(ibooker,
"me0_rh",
"RecHit", region_num, layer_num);
31 layerLabel[layer_num] +
" " +
" ; x_{SimHit} - x_{RecHit} ; entries";
33 layerLabel[layer_num] +
" " +
" ; y_{SimHit} - y_{RecHit} ; entries";
36 ibooker.book1D(histo_name_DeltaX.c_str(), histo_label_DeltaX.c_str(), 100, -10, 10);
38 ibooker.book1D(histo_name_DeltaY.c_str(), histo_label_DeltaY.c_str(), 100, -10, 10);
45 layerLabel[layer_num] +
" " +
46 " ; #frac{x_{SimHit} - x_{RecHit}}{#sigma_{x,RecHit}} ; entries";
48 layerLabel[layer_num] +
" " +
49 " ; #frac{y_{SimHit} - y_{RecHit}}{#sigma_{y,RecHit}} ; entries";
52 ibooker.book1D(histo_name_PullX.c_str(), histo_label_DeltaX.c_str(), 100, -10, 10);
54 ibooker.book1D(histo_name_PullY.c_str(), histo_label_DeltaY.c_str(), 100, -10, 10);
MonitorElement * me0_rh_DeltaX[2][6]
MonitorElement * me0_rh_PullY[2][6]
std::vector< std::string > regionLabel
MonitorElement * me0_rh_xy[2][6]
MonitorElement * BookHistZR(DQMStore::IBooker &, const char *name, const char *label, unsigned int region_num, unsigned int layer_num=99)
MonitorElement * me0_rh_zr[2]
MonitorElement * BookHistXY(DQMStore::IBooker &, const char *name, const char *label, unsigned int region_num, unsigned int layer_num=99)
MonitorElement * me0_rh_PullX[2][6]
std::vector< std::string > layerLabel
MonitorElement * me0_rh_DeltaY[2][6]