CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DTLocalTriggerBaseTest Class Referenceabstract

#include <DTLocalTriggerBaseTest.h>

Inheritance diagram for DTLocalTriggerBaseTest:
DQMEDHarvester edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase DTLocalTriggerEfficiencyTest DTLocalTriggerLutTest DTLocalTriggerSynchTest DTLocalTriggerTest DTLocalTriggerTPTest DTTriggerEfficiencyTest DTTriggerLutTest

Public Member Functions

 DTLocalTriggerBaseTest ()
 Constructor. More...
 
virtual ~DTLocalTriggerBaseTest ()
 Destructor. More...
 
- Public Member Functions inherited from DQMEDHarvester
virtual void analyze (edm::Event const &, edm::EventSetup const &) final
 
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
 DQMEDHarvester (void)
 
virtual void endJob () final
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Protected Member Functions

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 >
TgetHisto (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...
 
virtual void runClientDiagnostic (DQMStore::IBooker &, DQMStore::IGetter &)=0
 Perform client analysis. 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

std::string baseFolderDDU
 
std::string baseFolderTM
 
std::map< std::string,
MonitorElement * > 
cmsME
 
std::string hwSource
 
std::vector< std::string > hwSources
 
edm::ESHandle< DTGeometrymuonGeom
 
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
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Detailed Description

Definition at line 42 of file DTLocalTriggerBaseTest.h.

Constructor & Destructor Documentation

DTLocalTriggerBaseTest::DTLocalTriggerBaseTest ( )
inline

Constructor.

Definition at line 47 of file DTLocalTriggerBaseTest.h.

47 {};
DTLocalTriggerBaseTest::~DTLocalTriggerBaseTest ( )
virtual

Destructor.

Definition at line 37 of file DTLocalTriggerBaseTest.cc.

Member Function Documentation

void DTLocalTriggerBaseTest::beginRun ( edm::Run const &  run,
edm::EventSetup const &  context 
)
protectedvirtual
void DTLocalTriggerBaseTest::bookCmsHistos ( DQMStore::IBooker ,
std::string  hTag,
std::string  folder = "",
bool  isGlb = false 
)
protected

Book the new MEs (CMS summary)

Definition at line 223 of file DTLocalTriggerBaseTest.cc.

void DTLocalTriggerBaseTest::bookSectorHistos ( DQMStore::IBooker ,
int  wheel,
int  sector,
std::string  hTag,
std::string  folder = "" 
)
protected

Book the new MEs (for each sector)

Definition at line 158 of file DTLocalTriggerBaseTest.cc.

void DTLocalTriggerBaseTest::bookWheelHistos ( DQMStore::IBooker ,
int  wheel,
std::string  hTag,
std::string  folder = "" 
)
protected

Book the new MEs (for each wheel)

Definition at line 244 of file DTLocalTriggerBaseTest.cc.

std::string DTLocalTriggerBaseTest::category ( void  )
inlineprotected

Get message logger name.

Definition at line 100 of file DTLocalTriggerBaseTest.h.

100 { return "DTDQM|DTMonitorClient|" + testName + "Test"; } ;
void DTLocalTriggerBaseTest::dqmEndJob ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)
protectedvirtual

Implements DQMEDHarvester.

Reimplemented in DTLocalTriggerSynchTest.

Definition at line 73 of file DTLocalTriggerBaseTest.cc.

void DTLocalTriggerBaseTest::dqmEndLuminosityBlock ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter,
edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  context 
)
protectedvirtual

Perform client diagnostic in online.

Reimplemented from DQMEDHarvester.

Reimplemented in DTLocalTriggerSynchTest.

Definition at line 55 of file DTLocalTriggerBaseTest.cc.

void DTLocalTriggerBaseTest::endRun ( edm::Run const &  run,
edm::EventSetup const &  context 
)
protectedvirtual

Perform client diagnostic in offline.

Reimplemented from DQMEDHarvester.

Definition at line 86 of file DTLocalTriggerBaseTest.cc.

string DTLocalTriggerBaseTest::fullName ( std::string  htype)
protected

Create fullname from histo partial name.

Definition at line 118 of file DTLocalTriggerBaseTest.cc.

template<class T >
T * DTLocalTriggerBaseTest::getHisto ( MonitorElement me)
protected

Convert ME to Histogram fo type T.

Definition at line 128 of file DTLocalTriggerBaseTest.h.

References MonitorElement::getRootObject().

128  {
129  return me ? dynamic_cast<T*>(me->getRootObject()) : 0;
130 }
TObject * getRootObject(void) const
long double T
std::string DTLocalTriggerBaseTest::getMEName ( std::string  histoTag,
std::string  subfolder,
const DTChamberId chambid 
)
protected

Get the ME name (by chamber)

std::string DTLocalTriggerBaseTest::getMEName ( std::string  histoTag,
std::string  subfolder,
int  wh 
)
protected

Get the ME name (by wheel)

pair< float, float > DTLocalTriggerBaseTest::phiRange ( const DTChamberId id)
protected

Calculate phi range for histograms.

Definition at line 297 of file DTLocalTriggerBaseTest.cc.

virtual void DTLocalTriggerBaseTest::runClientDiagnostic ( DQMStore::IBooker ,
DQMStore::IGetter  
)
protectedpure virtual
void DTLocalTriggerBaseTest::setConfig ( const edm::ParameterSet ps,
std::string  name 
)
protected

Set configuration variables.

Definition at line 93 of file DTLocalTriggerBaseTest.cc.

std::string& DTLocalTriggerBaseTest::topFolder ( bool  isTM)
inlineprotected

Get top folder name.

Definition at line 97 of file DTLocalTriggerBaseTest.h.

References baseFolderDDU, and baseFolderTM.

97 { return isTM ? baseFolderTM : baseFolderDDU; } ;

Member Data Documentation

std::string DTLocalTriggerBaseTest::baseFolderDDU
protected

Definition at line 116 of file DTLocalTriggerBaseTest.h.

Referenced by topFolder().

std::string DTLocalTriggerBaseTest::baseFolderTM
protected

Definition at line 115 of file DTLocalTriggerBaseTest.h.

Referenced by topFolder().

std::map<std::string,MonitorElement*> DTLocalTriggerBaseTest::cmsME
protected

Definition at line 122 of file DTLocalTriggerBaseTest.h.

std::string DTLocalTriggerBaseTest::hwSource
protected

Definition at line 118 of file DTLocalTriggerBaseTest.h.

std::vector<std::string> DTLocalTriggerBaseTest::hwSources
protected

Definition at line 110 of file DTLocalTriggerBaseTest.h.

edm::ESHandle<DTGeometry> DTLocalTriggerBaseTest::muonGeom
protected

Definition at line 119 of file DTLocalTriggerBaseTest.h.

int DTLocalTriggerBaseTest::nevents
protected

Definition at line 100 of file DTLocalTriggerBaseTest.h.

unsigned int DTLocalTriggerBaseTest::nLumiSegs
protected

Definition at line 105 of file DTLocalTriggerBaseTest.h.

edm::ParameterSet DTLocalTriggerBaseTest::parameters
protected

Definition at line 113 of file DTLocalTriggerBaseTest.h.

int DTLocalTriggerBaseTest::prescaleFactor
protected

Definition at line 106 of file DTLocalTriggerBaseTest.h.

int DTLocalTriggerBaseTest::run
protected

Definition at line 107 of file DTLocalTriggerBaseTest.h.

bool DTLocalTriggerBaseTest::runOnline
protected

Definition at line 114 of file DTLocalTriggerBaseTest.h.

std::map<int,std::map<std::string,MonitorElement*> > DTLocalTriggerBaseTest::secME
protected

Definition at line 120 of file DTLocalTriggerBaseTest.h.

std::string DTLocalTriggerBaseTest::sourceFolder
protected

Definition at line 112 of file DTLocalTriggerBaseTest.h.

std::string DTLocalTriggerBaseTest::testName
protected

Definition at line 108 of file DTLocalTriggerBaseTest.h.

std::string DTLocalTriggerBaseTest::trigSource
protected

Definition at line 117 of file DTLocalTriggerBaseTest.h.

std::vector<std::string> DTLocalTriggerBaseTest::trigSources
protected

Definition at line 109 of file DTLocalTriggerBaseTest.h.

std::map<int,std::map<std::string,MonitorElement*> > DTLocalTriggerBaseTest::whME
protected

Definition at line 121 of file DTLocalTriggerBaseTest.h.