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 | Private Attributes
RPCEfficiency Class Reference

#include <RPCEfficiency.h>

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

Public Member Functions

 RPCEfficiency (const edm::ParameterSet &)
 
 ~RPCEfficiency ()
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 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

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
void bookDetUnitSeg (DQMStore::IBooker &, RPCDetId &detId, int nstrips, std::string folder, std::map< std::string, MonitorElement * > &)
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
- 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

MonitorElementhGlobalResClu1La [6]
 
MonitorElementhGlobalResClu1R2A
 
MonitorElementhGlobalResClu1R2B
 
MonitorElementhGlobalResClu1R2C
 
MonitorElementhGlobalResClu1R3A
 
MonitorElementhGlobalResClu1R3B
 
MonitorElementhGlobalResClu1R3C
 
MonitorElementhGlobalResClu2La [6]
 
MonitorElementhGlobalResClu2R2A
 
MonitorElementhGlobalResClu2R2B
 
MonitorElementhGlobalResClu2R2C
 
MonitorElementhGlobalResClu2R3A
 
MonitorElementhGlobalResClu2R3B
 
MonitorElementhGlobalResClu2R3C
 
MonitorElementhGlobalResClu3La [6]
 
MonitorElementhGlobalResClu3R2A
 
MonitorElementhGlobalResClu3R2B
 
MonitorElementhGlobalResClu3R2C
 
MonitorElementhGlobalResClu3R3A
 
MonitorElementhGlobalResClu3R3B
 
MonitorElementhGlobalResClu3R3C
 
std::map< CSCStationIndex,
std::set< RPCDetId > > 
rollstoreCSC
 
std::map< DTStationIndex,
std::set< RPCDetId > > 
rollstoreDT
 
MonitorElementstatistics
 

Private Attributes

std::vector< std::map
< RPCDetId, int > > 
counter
 
edm::EDGetTokenT
< CSCSegmentCollection
cscSegments
 
bool debug
 
edm::EDGetTokenT
< DTRecSegment4DCollection
dt4DSegments
 
int dupli
 
std::string EffRootFileName
 
bool EffSaveRootFile
 
std::string folderPath
 
bool inclcsc
 
bool incldt
 
bool incldtMB4
 
bool inves
 
double MaxD
 
double MaxDrb4
 
std::map< int, std::map
< std::string, MonitorElement * > > 
meCollection
 
double MinCosAng
 
double rangestrips
 
double rangestripsRB4
 
std::string rollseff
 
edm::EDGetTokenT
< RPCRecHitCollection
RPCRecHitLabel_
 
std::vector< int > totalcounter
 

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

Class for RPC Monitoring using RPCDigi and DT and CSC Segments. author Camilo Carrillo (Uniandes)

Definition at line 95 of file RPCEfficiency.h.

Constructor & Destructor Documentation

RPCEfficiency::RPCEfficiency ( const edm::ParameterSet iConfig)
explicit

Definition at line 33 of file RPCEfficiency.cc.

RPCEfficiency::~RPCEfficiency ( )

Definition at line 218 of file RPCEfficiency.cc.

Member Function Documentation

void RPCEfficiency::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
protectedvirtual

Implements edm::stream::EDAnalyzerBase.

Definition at line 220 of file RPCEfficiency.cc.

void RPCEfficiency::bookDetUnitSeg ( DQMStore::IBooker ibooker,
RPCDetId detId,
int  nstrips,
std::string  folder,
std::map< std::string, MonitorElement * > &  meMap 
)
protected

Definition at line 5 of file RPCEfficiencyBook.cc.

References DQMStore::IBooker::book1D(), hlt_dqm_clientPB-live_cfg::folder, RPCBookFolderStructure::folderStructure(), DetId::rawId(), RPCDetId::region(), DQMStore::IBooker::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.

5  {
6 
7 
9 
10  std::string folder = folderPath + folderStr->folderStructure(detId);
11 
12 
13 
14  ibooker.setCurrentFolder(folder);
15 
16  char meId [128];
17  char meTitle [128];
18  int rawId = detId.rawId();
19 
20  //Begin booking DT
21  if(detId.region()==0) {
22 
23  sprintf(meId,"ExpectedOccupancyFromDT_%d",rawId);
24  sprintf(meTitle,"ExpectedOccupancyFromDT_for_%d",rawId);
25  meMap[meId] = ibooker.book1D(meId, meTitle, nstrips, 0.5, nstrips+0.5);
26 
27  sprintf(meId,"RPCDataOccupancyFromDT_%d",rawId);
28  sprintf(meTitle,"RPCDataOccupancyFromDT_for_%d",rawId);
29  meMap[meId] = ibooker.book1D(meId, meTitle, nstrips, 0.5, nstrips+0.5);
30 
31  }else{ //Begin booking CSC
32 
33  sprintf(meId,"ExpectedOccupancyFromCSC_%d",rawId);
34  sprintf(meTitle,"ExpectedOccupancyFromCSC_for_%d",rawId);
35  meMap[meId] = ibooker.book1D(meId, meTitle, nstrips, 0.5, nstrips+0.5);
36 
37  sprintf(meId,"RPCDataOccupancyFromCSC_%d",rawId);
38  sprintf(meTitle,"RPCDataOccupancyFromCSC_for_%d",rawId);
39  meMap[meId] = ibooker.book1D(meId, meTitle, nstrips, 0.5, nstrips+0.5);
40 
41  }
42 
43  delete folderStr;
44 
45 }
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
std::string folderPath
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:276
std::string folderStructure(RPCDetId detId)
tuple folder
Histograms Source for live online DQM in P5
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
Definition: RPCDetId.h:63
void RPCEfficiency::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  run,
edm::EventSetup const &  iSetup 
)
overrideprotectedvirtual

Implements DQMEDAnalyzer.

Definition at line 59 of file RPCEfficiency.cc.

Member Data Documentation

std::vector<std::map<RPCDetId, int> > RPCEfficiency::counter
private

Definition at line 139 of file RPCEfficiency.h.

Referenced by counter.Counters::__getitem__().

edm::EDGetTokenT<CSCSegmentCollection> RPCEfficiency::cscSegments
private

Definition at line 155 of file RPCEfficiency.h.

bool RPCEfficiency::debug
private

Definition at line 145 of file RPCEfficiency.h.

edm::EDGetTokenT<DTRecSegment4DCollection> RPCEfficiency::dt4DSegments
private

Definition at line 156 of file RPCEfficiency.h.

int RPCEfficiency::dupli
private

Definition at line 153 of file RPCEfficiency.h.

std::string RPCEfficiency::EffRootFileName
private

Definition at line 165 of file RPCEfficiency.h.

bool RPCEfficiency::EffSaveRootFile
private

Definition at line 164 of file RPCEfficiency.h.

std::string RPCEfficiency::folderPath
private

Definition at line 159 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu1La[6]
protected

Definition at line 112 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu1R2A
protected

Definition at line 122 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu1R2B
protected

Definition at line 121 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu1R2C
protected

Definition at line 120 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu1R3A
protected

Definition at line 119 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu1R3B
protected

Definition at line 118 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu1R3C
protected

Definition at line 117 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu2La[6]
protected

Definition at line 113 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu2R2A
protected

Definition at line 129 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu2R2B
protected

Definition at line 128 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu2R2C
protected

Definition at line 127 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu2R3A
protected

Definition at line 126 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu2R3B
protected

Definition at line 125 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu2R3C
protected

Definition at line 124 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu3La[6]
protected

Definition at line 114 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu3R2A
protected

Definition at line 136 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu3R2B
protected

Definition at line 135 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu3R2C
protected

Definition at line 134 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu3R3A
protected

Definition at line 133 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu3R3B
protected

Definition at line 132 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::hGlobalResClu3R3C
protected

Definition at line 131 of file RPCEfficiency.h.

bool RPCEfficiency::inclcsc
private

Definition at line 144 of file RPCEfficiency.h.

bool RPCEfficiency::incldt
private

Definition at line 142 of file RPCEfficiency.h.

bool RPCEfficiency::incldtMB4
private

Definition at line 143 of file RPCEfficiency.h.

bool RPCEfficiency::inves
private

Definition at line 147 of file RPCEfficiency.h.

double RPCEfficiency::MaxD
private

Definition at line 151 of file RPCEfficiency.h.

double RPCEfficiency::MaxDrb4
private

Definition at line 152 of file RPCEfficiency.h.

std::map<int, std::map<std::string, MonitorElement*> > RPCEfficiency::meCollection
private

Definition at line 162 of file RPCEfficiency.h.

double RPCEfficiency::MinCosAng
private

Definition at line 150 of file RPCEfficiency.h.

double RPCEfficiency::rangestrips
private

Definition at line 148 of file RPCEfficiency.h.

double RPCEfficiency::rangestripsRB4
private

Definition at line 149 of file RPCEfficiency.h.

std::string RPCEfficiency::rollseff
private

Definition at line 160 of file RPCEfficiency.h.

std::map<CSCStationIndex,std::set<RPCDetId> > RPCEfficiency::rollstoreCSC
protected

Definition at line 107 of file RPCEfficiency.h.

std::map<DTStationIndex,std::set<RPCDetId> > RPCEfficiency::rollstoreDT
protected

Definition at line 106 of file RPCEfficiency.h.

edm::EDGetTokenT<RPCRecHitCollection> RPCEfficiency::RPCRecHitLabel_
private

Definition at line 157 of file RPCEfficiency.h.

MonitorElement* RPCEfficiency::statistics
protected

Definition at line 109 of file RPCEfficiency.h.

std::vector<int> RPCEfficiency::totalcounter
private

Definition at line 140 of file RPCEfficiency.h.