#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 edm::EDAnalyzer | |
EDAnalyzer () | |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Protected Member Functions | |
void | beginRun (const edm::Run &r, const edm::EventSetup &c) |
BeginRun. More... | |
void | bookChambHistos (DTChamberId chambId, std::string htype) |
Book the new MEs (for each chamber) More... | |
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 () |
DQM Client Diagnostic. More... | |
Protected Member Functions inherited from DTLocalTriggerBaseTest | |
void | analyze (const edm::Event &e, const edm::EventSetup &c) |
Analyze. More... | |
void | beginJob () |
BeginJob. More... | |
void | beginLuminosityBlock (edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) |
Perform begin lumiblock operations. More... | |
void | bookCmsHistos (std::string hTag, std::string folder="", bool isGlb=false) |
Book the new MEs (CMS summary) More... | |
void | bookSectorHistos (int wheel, int sector, std::string hTag, std::string folder="") |
Book the new MEs (for each sector) More... | |
void | bookWheelHistos (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 | endJob () |
EndJob. More... | |
void | endLuminosityBlock (edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) |
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 isDCC) |
Get top folder name. More... | |
Protected Member Functions inherited from edm::EDAnalyzer | |
CurrentProcessingContext const * | currentContext () const |
Private Attributes | |
std::map< uint32_t, std::map < std::string, MonitorElement * > > | chambME |
DTTrigGeomUtils * | trigGeomUtils |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
typedef WorkerT< EDAnalyzer > | WorkerType |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Attributes inherited from DTLocalTriggerBaseTest | |
std::string | baseFolderDCC |
std::string | baseFolderDDU |
std::map< std::string, MonitorElement * > | cmsME |
DQMStore * | dbe |
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 |
DQM Test Client
Definition at line 21 of file DTLocalTriggerEfficiencyTest.h.
DTLocalTriggerEfficiencyTest::DTLocalTriggerEfficiencyTest | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 37 of file DTLocalTriggerEfficiencyTest.cc.
References DTLocalTriggerBaseTest::baseFolderDCC, DTLocalTriggerBaseTest::baseFolderDDU, and DTLocalTriggerBaseTest::setConfig().
|
virtual |
Destructor.
Definition at line 46 of file DTLocalTriggerEfficiencyTest.cc.
References trigGeomUtils.
|
protectedvirtual |
BeginRun.
Reimplemented from DTLocalTriggerBaseTest.
Definition at line 55 of file DTLocalTriggerEfficiencyTest.cc.
References DTLocalTriggerBaseTest::beginRun(), bookChambHistos(), DTLocalTriggerBaseTest::bookSectorHistos(), DTLocalTriggerBaseTest::bookWheelHistos(), edm::ParameterSet::getUntrackedParameter(), DTLocalTriggerBaseTest::hwSource, DTLocalTriggerBaseTest::hwSources, DTLocalTriggerBaseTest::muonGeom, DTLocalTriggerBaseTest::parameters, trigGeomUtils, DTLocalTriggerBaseTest::trigSource, and DTLocalTriggerBaseTest::trigSources.
|
protected |
Book the new MEs (for each chamber)
Definition at line 296 of file DTLocalTriggerEfficiencyTest.cc.
References DQMStore::book1D(), DQMStore::book2D(), DTLocalTriggerBaseTest::category(), chambME, DTLocalTriggerBaseTest::dbe, DTLocalTriggerBaseTest::fullName(), DTLocalTriggerBaseTest::hwSource, LogTrace, max(), min, pileupCalc::nbins, DTTrigGeomUtils::phiRange(), DetId::rawId(), DTChamberId::sector(), DQMStore::setCurrentFolder(), DTChamberId::station(), relativeConstraints::station, DTLocalTriggerBaseTest::testName, DTTrigGeomUtils::thetaRange(), DTLocalTriggerBaseTest::topFolder(), trigGeomUtils, and DTChamberId::wheel().
Referenced by beginRun(), and runClientDiagnostic().
|
protected |
Compute efficiency plots.
Definition at line 245 of file DTLocalTriggerEfficiencyTest.cc.
References newFWLiteAna::bin, postValidation_cfi::efficiency, error, MonitorElement::getTH1F(), pileupCalc::nbins, and mathSSE::sqrt().
Referenced by runClientDiagnostic().
|
protected |
Compute 2D efficiency plots.
Definition at line 269 of file DTLocalTriggerEfficiencyTest.cc.
References postValidation_cfi::efficiency, error, MonitorElement::getTH2F(), and mathSSE::sqrt().
Referenced by runClientDiagnostic().
|
protectedvirtual |
DQM Client Diagnostic.
Implements DTLocalTriggerBaseTest.
Definition at line 107 of file DTLocalTriggerEfficiencyTest.cc.
References bookChambHistos(), DTLocalTriggerBaseTest::bookSectorHistos(), DTLocalTriggerBaseTest::bookWheelHistos(), chambME, DTLocalTriggerBaseTest::dbe, end, spr::find(), DTLocalTriggerBaseTest::fullName(), DQMStore::get(), DTLocalTriggerBaseTest::getMEName(), DTLocalTriggerBaseTest::hwSource, DTLocalTriggerBaseTest::hwSources, makeEfficiencyME(), makeEfficiencyME2D(), DetId::rawId(), DTLocalTriggerBaseTest::secME, MonitorElement::setBinContent(), mathSSE::sqrt(), reco::tau::disc::TrackAngle(), DTLocalTriggerBaseTest::trigSource, DTLocalTriggerBaseTest::trigSources, and DTLocalTriggerBaseTest::whME.
|
private |
Definition at line 52 of file DTLocalTriggerEfficiencyTest.h.
Referenced by bookChambHistos(), and runClientDiagnostic().
|
private |
Definition at line 53 of file DTLocalTriggerEfficiencyTest.h.
Referenced by beginRun(), bookChambHistos(), and ~DTLocalTriggerEfficiencyTest().