#include <DTLocalTriggerEfficiencyTest.h>
Public Member Functions | |
DTLocalTriggerEfficiencyTest (const edm::ParameterSet &ps) | |
Constructor. More... | |
virtual | ~DTLocalTriggerEfficiencyTest () |
Destructor. More... | |
Public Member Functions inherited from DTLocalTriggerBaseTest | |
DTLocalTriggerBaseTest () | |
Constructor. More... | |
virtual | ~DTLocalTriggerBaseTest () |
Destructor. More... | |
Public Member Functions inherited from DQMEDHarvester | |
virtual void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override final |
DQMEDHarvester (void) | |
virtual void | endJob () override final |
virtual void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override final |
virtual void | produce (edm::Event &, edm::EventSetup const &) override final |
virtual | ~DQMEDHarvester ()=default |
Public Member Functions inherited from edm::one::EDProducer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources, edm::EndLuminosityBlockProducer > | |
EDProducer ()=default | |
Public Member Functions inherited from edm::one::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
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, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
virtual | ~ProducerBase () noexcept(false) |
Public Member Functions inherited from edm::EDConsumerBase | |
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 |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
Protected Member Functions | |
void | beginRun (const edm::Run &r, const edm::EventSetup &c) |
BeginRun. More... | |
void | bookChambHistos (DQMStore::IBooker &, DTChamberId chambId, std::string htype) |
Book the new MEs (for each chamber) More... | |
void | Bookings (DQMStore::IBooker &, DQMStore::IGetter &) |
void | makeEfficiencyME (TH1D *numerator, TH1D *denominator, MonitorElement *result) |
Compute efficiency plots. More... | |
void | makeEfficiencyME2D (TH2F *numerator, TH2F *denominator, MonitorElement *result) |
Compute 2D efficiency plots. More... | |
void | runClientDiagnostic (DQMStore::IBooker &, DQMStore::IGetter &) |
DQM Client Diagnostic. More... | |
Protected Member Functions inherited from DTLocalTriggerBaseTest | |
void | beginRun (edm::Run const &run, edm::EventSetup const &context) |
BeginRun. More... | |
void | bookCmsHistos (DQMStore::IBooker &, std::string hTag, std::string folder="", bool isGlb=false) |
Book the new MEs (CMS summary) More... | |
void | bookSectorHistos (DQMStore::IBooker &, int wheel, int sector, std::string hTag, std::string folder="") |
Book the new MEs (for each sector) More... | |
void | bookWheelHistos (DQMStore::IBooker &, int wheel, std::string hTag, std::string folder="") |
Book the new MEs (for each wheel) More... | |
std::string | category () |
Get message logger name. More... | |
void | dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) |
void | dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) |
Perform client diagnostic in online. More... | |
void | endRun (edm::Run const &run, edm::EventSetup const &context) |
Perform client diagnostic in offline. More... | |
std::string | fullName (std::string htype) |
Create fullname from histo partial name. More... | |
template<class T > | |
T * | getHisto (MonitorElement *me) |
Convert ME to Histogram fo type T. More... | |
std::string | getMEName (std::string histoTag, std::string subfolder, const DTChamberId &chambid) |
Get the ME name (by chamber) More... | |
std::string | getMEName (std::string histoTag, std::string subfolder, int wh) |
Get the ME name (by wheel) More... | |
std::pair< float, float > | phiRange (const DTChamberId &id) |
Calculate phi range for histograms. More... | |
void | setConfig (const edm::ParameterSet &ps, std::string name) |
Set configuration variables. More... | |
std::string & | topFolder (bool isTM) |
Get top folder name. More... | |
Protected Member Functions inherited from edm::EDConsumerBase | |
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 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) |
Protected Attributes | |
const int | wheelArrayShift = 3 |
Protected Attributes inherited from DTLocalTriggerBaseTest | |
std::string | baseFolderDDU |
std::string | baseFolderTM |
std::map< std::string, MonitorElement * > | cmsME |
std::string | hwSource |
std::vector< std::string > | hwSources |
edm::ESHandle< DTGeometry > | muonGeom |
int | nevents |
unsigned int | nLumiSegs |
edm::ParameterSet | parameters |
int | prescaleFactor |
int | run |
bool | runOnline |
std::map< int, std::map< std::string, MonitorElement * > > | secME |
std::string | sourceFolder |
std::string | testName |
std::string | trigSource |
std::vector< std::string > | trigSources |
std::map< int, std::map< std::string, MonitorElement * > > | whME |
Private Attributes | |
bool | bookingdone |
std::map< uint32_t, std::map< std::string, MonitorElement * > > | chambME |
DTTrigGeomUtils * | trigGeomUtils |
Additional Inherited Members | |
Public Types inherited from edm::one::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::one::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
DQM Test Client
threadsafe version (//-) oct/nov 2014 - WATWanAbdullah ncpp-um-my
Definition at line 22 of file DTLocalTriggerEfficiencyTest.h.
DTLocalTriggerEfficiencyTest::DTLocalTriggerEfficiencyTest | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 38 of file DTLocalTriggerEfficiencyTest.cc.
References DTLocalTriggerBaseTest::baseFolderDDU, DTLocalTriggerBaseTest::baseFolderTM, bookingdone, and DTLocalTriggerBaseTest::setConfig().
|
virtual |
Destructor.
Definition at line 49 of file DTLocalTriggerEfficiencyTest.cc.
References trigGeomUtils.
|
protected |
BeginRun.
Definition at line 58 of file DTLocalTriggerEfficiencyTest.cc.
References DTLocalTriggerBaseTest::beginRun(), DTLocalTriggerBaseTest::muonGeom, and trigGeomUtils.
|
protected |
Book the new MEs (for each chamber)
Definition at line 312 of file DTLocalTriggerEfficiencyTest.cc.
References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), DTLocalTriggerBaseTest::category(), chambME, DTLocalTriggerBaseTest::fullName(), DTLocalTriggerBaseTest::hwSource, LogTrace, hpstanc_transforms::max, min(), pileupCalc::nbins, DTTrigGeomUtils::phiRange(), DetId::rawId(), DTChamberId::sector(), DQMStore::IBooker::setCurrentFolder(), DTChamberId::station(), relativeConstraints::station, DTLocalTriggerBaseTest::testName, DTTrigGeomUtils::thetaRange(), DTLocalTriggerBaseTest::topFolder(), trigGeomUtils, DTChamberId::wheel(), and makeMuonMisalignmentScenario::wheel.
Referenced by Bookings(), and runClientDiagnostic().
|
protected |
Definition at line 66 of file DTLocalTriggerEfficiencyTest.cc.
References bookChambHistos(), bookingdone, DTLocalTriggerBaseTest::bookSectorHistos(), DTLocalTriggerBaseTest::bookWheelHistos(), edm::ParameterSet::getUntrackedParameter(), DTLocalTriggerBaseTest::hwSource, DTLocalTriggerBaseTest::hwSources, DTLocalTriggerBaseTest::parameters, trackingPlots::stat, DTLocalTriggerBaseTest::trigSource, and DTLocalTriggerBaseTest::trigSources.
Referenced by runClientDiagnostic().
|
protected |
Compute efficiency plots.
Definition at line 262 of file DTLocalTriggerEfficiencyTest.cc.
References stringResolutionProvider_cfi::bin, PostProcessor_cff::efficiency, relativeConstraints::error, MonitorElement::getTH1F(), pileupCalc::nbins, and mathSSE::sqrt().
Referenced by runClientDiagnostic().
|
protected |
Compute 2D efficiency plots.
Definition at line 286 of file DTLocalTriggerEfficiencyTest.cc.
References PostProcessor_cff::efficiency, relativeConstraints::error, MonitorElement::getTH2F(), and mathSSE::sqrt().
Referenced by runClientDiagnostic().
|
protectedvirtual |
DQM Client Diagnostic.
Implements DTLocalTriggerBaseTest.
Definition at line 117 of file DTLocalTriggerEfficiencyTest.cc.
References bookChambHistos(), bookingdone, Bookings(), DTLocalTriggerBaseTest::bookSectorHistos(), DTLocalTriggerBaseTest::bookWheelHistos(), chambME, end, spr::find(), objects.autophobj::float, DTLocalTriggerBaseTest::fullName(), DQMStore::IGetter::get(), DTLocalTriggerBaseTest::getMEName(), DTLocalTriggerBaseTest::hwSource, DTLocalTriggerBaseTest::hwSources, makeEfficiencyME(), makeEfficiencyME2D(), DetId::rawId(), DTLocalTriggerBaseTest::secME, MonitorElement::setBinContent(), mathSSE::sqrt(), trackingPlots::stat, reco::tau::disc::TrackAngle(), DTLocalTriggerBaseTest::trigSource, DTLocalTriggerBaseTest::trigSources, wheelArrayShift, and DTLocalTriggerBaseTest::whME.
|
private |
Definition at line 59 of file DTLocalTriggerEfficiencyTest.h.
Referenced by Bookings(), DTLocalTriggerEfficiencyTest(), and runClientDiagnostic().
|
private |
Definition at line 56 of file DTLocalTriggerEfficiencyTest.h.
Referenced by bookChambHistos(), and runClientDiagnostic().
|
private |
Definition at line 57 of file DTLocalTriggerEfficiencyTest.h.
Referenced by beginRun(), bookChambHistos(), and ~DTLocalTriggerEfficiencyTest().
|
protected |
Definition at line 52 of file DTLocalTriggerEfficiencyTest.h.
Referenced by runClientDiagnostic().