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 | Private Member Functions | Private Attributes | Friends
DTLocalTriggerBaseTask Class Reference

#include <DTLocalTriggerBaseTask.h>

Inheritance diagram for DTLocalTriggerBaseTask:
DQMEDAnalyzer edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 DTLocalTriggerBaseTask (const edm::ParameterSet &ps)
 Constructor. More...
 
virtual ~DTLocalTriggerBaseTask ()
 Destructor. More...
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::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 analyze (const edm::Event &e, const edm::EventSetup &c)
 Analyze. More...
 
void beginLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
 To reset the MEs. More...
 
void dqmBeginRun (const edm::Run &, const edm::EventSetup &)
 Beginrun. More...
 
void endLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
 Perform trend plot operations. 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)
 

Private Member Functions

void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void bookHistos (DQMStore::IBooker &, const DTChamberId &chamb)
 Book the histograms. More...
 
void bookHistos (DQMStore::IBooker &, int wh)
 Book the histograms. More...
 
void runDDUAnalysis (edm::Handle< DTLocalTriggerCollection > &trigsDDU)
 Run analysis on ROS data. More...
 
void runDDUvsTMAnalysis ()
 Run analysis on ROS data. More...
 
void runTMAnalysis (std::vector< L1MuDTChambPhDigi > const *phInTrigs, std::vector< L1MuDTChambPhDigi > const *phOutTrigs, std::vector< L1MuDTChambThDigi > const *thTrigs)
 Run analysis on TM data. More...
 
void setQLabels (MonitorElement *me, short int iaxis)
 Set Quality labels. More...
 
void setQLabelsTheta (MonitorElement *me, short int iaxis)
 
std::string & topFolder (std::string const &type)
 Get the Top folder (different between Physics and TP and TM/DDU) More...
 

Private Attributes

std::string baseFolder [2]
 
int bestAccRange
 
std::map< uint32_t, std::map
< std::string, MonitorElement * > > 
chamberHistos
 
bool detailedAnalysis
 
MonitorElementnEventMonitor
 
int nEvents
 
int nEventsInLS
 
int nLumis
 
bool processDDU
 
bool processTM
 
int targetBXDDU
 
int targetBXTM
 
std::map< uint32_t,
DTTPGCompareUnit
theCompMapIn
 
std::map< uint32_t,
DTTPGCompareUnit
theCompMapOut
 
edm::ParameterSet theParams
 
DTTrigGeomUtilstheTrigGeomUtils
 
std::vector< std::string > theTypes
 
edm::EDGetTokenT
< L1MuDTChambPhContainer
tm_phiIn_Token_
 
edm::EDGetTokenT
< L1MuDTChambPhContainer
tm_phiOut_Token_
 
edm::EDGetTokenT
< L1MuDTChambThContainer
tm_theta_Token_
 
bool tpMode
 
std::map< uint32_t,
DTTimeEvolutionHisto * > 
trendHistos
 
edm::EDGetTokenT
< DTLocalTriggerCollection
trig_Token_
 
std::map< int, std::map
< std::string, MonitorElement * > > 
wheelHistos
 

Friends

class DTMonitorModule
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr
< dqmDetails::NoCache
globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr
< dqmDetails::NoCache
globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Detailed Description

Definition at line 45 of file DTLocalTriggerBaseTask.h.

Constructor & Destructor Documentation

DTLocalTriggerBaseTask::DTLocalTriggerBaseTask ( const edm::ParameterSet ps)

Constructor.

Definition at line 63 of file DTLocalTriggerBaseTask.cc.

DTLocalTriggerBaseTask::~DTLocalTriggerBaseTask ( )
virtual

Destructor.

Definition at line 104 of file DTLocalTriggerBaseTask.cc.

Member Function Documentation

void DTLocalTriggerBaseTask::analyze ( const edm::Event e,
const edm::EventSetup c 
)
protectedvirtual

Analyze.

Implements edm::stream::EDAnalyzerBase.

Definition at line 176 of file DTLocalTriggerBaseTask.cc.

void DTLocalTriggerBaseTask::beginLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup context 
)
protectedvirtual

To reset the MEs.

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 127 of file DTLocalTriggerBaseTask.cc.

void DTLocalTriggerBaseTask::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  iRun,
edm::EventSetup const &  context 
)
overrideprivatevirtual

Implements DQMEDAnalyzer.

Definition at line 112 of file DTLocalTriggerBaseTask.cc.

void DTLocalTriggerBaseTask::bookHistos ( DQMStore::IBooker ibooker,
const DTChamberId chamb 
)
private

Book the histograms.

Definition at line 227 of file DTLocalTriggerBaseTask.cc.

void DTLocalTriggerBaseTask::bookHistos ( DQMStore::IBooker ibooker,
int  wh 
)
private

Book the histograms.

Definition at line 369 of file DTLocalTriggerBaseTask.cc.

void DTLocalTriggerBaseTask::dqmBeginRun ( const edm::Run run,
const edm::EventSetup context 
)
protectedvirtual

Beginrun.

Reimplemented from DQMEDAnalyzer.

Definition at line 164 of file DTLocalTriggerBaseTask.cc.

void DTLocalTriggerBaseTask::endLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup context 
)
protectedvirtual

Perform trend plot operations.

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 150 of file DTLocalTriggerBaseTask.cc.

void DTLocalTriggerBaseTask::runDDUAnalysis ( edm::Handle< DTLocalTriggerCollection > &  trigsDDU)
private

Run analysis on ROS data.

Definition at line 522 of file DTLocalTriggerBaseTask.cc.

void DTLocalTriggerBaseTask::runDDUvsTMAnalysis ( )
private

Run analysis on ROS data.

Definition at line 580 of file DTLocalTriggerBaseTask.cc.

void DTLocalTriggerBaseTask::runTMAnalysis ( std::vector< L1MuDTChambPhDigi > const *  phInTrigs,
std::vector< L1MuDTChambPhDigi > const *  phOutTrigs,
std::vector< L1MuDTChambThDigi > const *  thTrigs 
)
private

Run analysis on TM data.

Definition at line 389 of file DTLocalTriggerBaseTask.cc.

void DTLocalTriggerBaseTask::setQLabels ( MonitorElement me,
short int  iaxis 
)
private

Set Quality labels.

Definition at line 606 of file DTLocalTriggerBaseTask.cc.

void DTLocalTriggerBaseTask::setQLabelsTheta ( MonitorElement me,
short int  iaxis 
)
private

Definition at line 628 of file DTLocalTriggerBaseTask.cc.

std::string& DTLocalTriggerBaseTask::topFolder ( std::string const &  type)
inlineprivate

Get the Top folder (different between Physics and TP and TM/DDU)

Definition at line 83 of file DTLocalTriggerBaseTask.h.

References baseFolder.

83 { return baseFolder[type == "TM"]; }
type
Definition: HCALResponse.h:21

Friends And Related Function Documentation

friend class DTMonitorModule
friend

Definition at line 47 of file DTLocalTriggerBaseTask.h.

Member Data Documentation

std::string DTLocalTriggerBaseTask::baseFolder[2]
private

Definition at line 101 of file DTLocalTriggerBaseTask.h.

Referenced by topFolder().

int DTLocalTriggerBaseTask::bestAccRange
private

Definition at line 109 of file DTLocalTriggerBaseTask.h.

std::map<uint32_t,std::map<std::string,MonitorElement*> > DTLocalTriggerBaseTask::chamberHistos
private

Definition at line 118 of file DTLocalTriggerBaseTask.h.

bool DTLocalTriggerBaseTask::detailedAnalysis
private

Definition at line 103 of file DTLocalTriggerBaseTask.h.

MonitorElement* DTLocalTriggerBaseTask::nEventMonitor
private

Definition at line 120 of file DTLocalTriggerBaseTask.h.

int DTLocalTriggerBaseTask::nEvents
private

Definition at line 97 of file DTLocalTriggerBaseTask.h.

int DTLocalTriggerBaseTask::nEventsInLS
private

Definition at line 98 of file DTLocalTriggerBaseTask.h.

int DTLocalTriggerBaseTask::nLumis
private

Definition at line 99 of file DTLocalTriggerBaseTask.h.

bool DTLocalTriggerBaseTask::processDDU
private

Definition at line 105 of file DTLocalTriggerBaseTask.h.

bool DTLocalTriggerBaseTask::processTM
private

Definition at line 104 of file DTLocalTriggerBaseTask.h.

int DTLocalTriggerBaseTask::targetBXDDU
private

Definition at line 107 of file DTLocalTriggerBaseTask.h.

int DTLocalTriggerBaseTask::targetBXTM
private

Definition at line 108 of file DTLocalTriggerBaseTask.h.

std::map<uint32_t,DTTPGCompareUnit> DTLocalTriggerBaseTask::theCompMapIn
private

Definition at line 115 of file DTLocalTriggerBaseTask.h.

std::map<uint32_t,DTTPGCompareUnit> DTLocalTriggerBaseTask::theCompMapOut
private

Definition at line 116 of file DTLocalTriggerBaseTask.h.

edm::ParameterSet DTLocalTriggerBaseTask::theParams
private

Definition at line 111 of file DTLocalTriggerBaseTask.h.

DTTrigGeomUtils* DTLocalTriggerBaseTask::theTrigGeomUtils
private

Definition at line 112 of file DTLocalTriggerBaseTask.h.

std::vector<std::string> DTLocalTriggerBaseTask::theTypes
private

Definition at line 113 of file DTLocalTriggerBaseTask.h.

edm::EDGetTokenT<L1MuDTChambPhContainer> DTLocalTriggerBaseTask::tm_phiIn_Token_
private

Definition at line 122 of file DTLocalTriggerBaseTask.h.

edm::EDGetTokenT<L1MuDTChambPhContainer> DTLocalTriggerBaseTask::tm_phiOut_Token_
private

Definition at line 123 of file DTLocalTriggerBaseTask.h.

edm::EDGetTokenT<L1MuDTChambThContainer> DTLocalTriggerBaseTask::tm_theta_Token_
private

Definition at line 124 of file DTLocalTriggerBaseTask.h.

bool DTLocalTriggerBaseTask::tpMode
private

Definition at line 102 of file DTLocalTriggerBaseTask.h.

std::map<uint32_t,DTTimeEvolutionHisto* > DTLocalTriggerBaseTask::trendHistos
private

Definition at line 119 of file DTLocalTriggerBaseTask.h.

edm::EDGetTokenT<DTLocalTriggerCollection> DTLocalTriggerBaseTask::trig_Token_
private

Definition at line 125 of file DTLocalTriggerBaseTask.h.

std::map<int,std::map<std::string,MonitorElement*> > DTLocalTriggerBaseTask::wheelHistos
private

Definition at line 117 of file DTLocalTriggerBaseTask.h.