|
void | analyze (const edm::Event &event, const edm::EventSetup &setup) override |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) override |
| To reset the MEs. More...
|
|
void | dqmBeginRun (const edm::Run &run, const edm::EventSetup &setup) override |
| BeginRun. More...
|
|
| DTChamberEfficiencyTask (const edm::ParameterSet &pset) |
| Constructor. More...
|
|
| ~DTChamberEfficiencyTask () override |
| Destructor. More...
|
|
void | accumulate (edm::Event const &ev, edm::EventSetup const &es) final |
|
virtual void | analyze (edm::Event const &, edm::EventSetup const &) |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override |
|
void | beginRun (edm::Run const &run, edm::EventSetup const &setup) final |
|
virtual void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) |
|
| DQMEDAnalyzer () |
|
| DQMEDAnalyzer (DQMEDAnalyzer const &)=delete |
|
| DQMEDAnalyzer (DQMEDAnalyzer &&)=delete |
|
void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
|
void | endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final |
|
void | endRun (edm::Run const &run, edm::EventSetup const &setup) override |
|
void | endRunProduce (edm::Run &run, edm::EventSetup const &setup) override |
|
| ~DQMEDAnalyzer () override=default |
|
| EDProducer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | hasAbilityToProduceInLumis () const final |
|
bool | hasAbilityToProduceInRuns () 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 () 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 |
|
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) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
DQM Analysis of 4D DT segments, it produces plots about:
- single chamber efficiency All histos are produced per Chamber
Class based on the code written by S. Lacaprara : RecoLocalMuon / DTSegment / test / DTEffAnalyzer.h
- Author
- G. Mila - INFN Torino
Definition at line 43 of file DTChamberEfficiencyTask.h.
Definition at line 153 of file DTChamberEfficiencyTask.cc.
References DTRecSegment4D::hasPhi(), DTRecSegment4D::hasZed(), plotFactory::histos, HiCaloJetParameters_cff::interpolate, DTRecSegment4D::localPosition(), mag(), DTChamberId::sector(), DTChamberId::station(), relativeConstraints::station, DTChamberId::wheel(), makeMuonMisalignmentScenario::wheel, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
155 edm::LogVerbatim (
"DTDQM|DTMonitorModule|DTChamberEfficiencyTask") <<
"[DTChamberEfficiencyTask] Analyze #Run: " <<
event.id().run()
156 <<
" #Event: " <<
event.id().event();
165 vector<const DTChamber*>::const_iterator ch_it =
dtGeom->
chambers().begin();
166 vector<const DTChamber*>::const_iterator ch_end =
dtGeom->
chambers().end();
167 for (; ch_it != ch_end; ++ch_it) {
207 int nSegsBot=segsBot.second-segsBot.first;
209 if (nSegsBot==0)
continue;
215 int nSegsTop=segsTop.second-segsTop.first;
225 if (TopId.station() == 4 && TopId.sector() == 10) {
228 int nSegsTop14=segsTop14.second-segsTop14.first;
229 nSegsTop+=nSegsTop14;
236 if (!pBestTopSeg)
continue;
240 int nSegsMid=segsMid.second-segsMid.first;
245 if (nSegsMid>0) histos[3]->Fill(1);
255 histos[4]->Fill(posAtMid.
x(),posAtMid.
y());
257 if ((
dtGeom->
chamber(MidId))->surface().bounds().inside(posAtMid)) {
258 histos[0]->Fill(posAtMid.
x(),posAtMid.
y());
263 histos[5]->Fill(posAtMid.
x(),posAtMid.
y());
271 histos[6]->Fill(posAtMid.
x(),posAtMid.
y());
276 if (bestMidSeg.
hasPhi()) {
278 dist = (midSegPos-posAtMid).
mag();
280 dist = fabs((midSegPos-posAtMid).
x());
283 dist = fabs((midSegPos-posAtMid).
y());
286 histos[1]->Fill(posAtMid.
x(),posAtMid.
y());
289 histos[2]->Fill(dist);
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
const std::vector< const DTChamber * > & chambers() const
Return a vector of all Chamber.
LocalPoint localPosition() const override
Local position in Chamber frame.
std::pair< const_iterator, const_iterator > range
iterator range
const DTChamber * chamber(const DTChamberId &id) const
Return a DTChamber given its id.
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
edm::Handle< DTRecSegment4DCollection > segs
LocalPoint interpolate(const DTRecSegment4D &seg1, const DTRecSegment4D &seg3, const DTChamberId &MB2) const
bool hasPhi() const
Does it have the Phi projection?
bool hasZed() const
Does it have the Z projection?
edm::ESHandle< DTGeometry > dtGeom
bool isGoodSegment(const DTRecSegment4D &seg) const
std::map< DTChamberId, std::vector< MonitorElement * > > histosPerCh
const DTRecSegment4D & getBestSegment(const DTRecSegment4DCollection::range &segs) const
int station() const
Return the station number.
int wheel() const
Return the wheel number.