CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
DTDCSSummary Class Reference

#include <DTDCSSummary.h>

Inheritance diagram for DTDCSSummary:
DQMEDHarvester edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override
 
void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
 
 DTDCSSummary (const edm::ParameterSet &pset)
 Constructor. More...
 
virtual ~DTDCSSummary ()
 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
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDHarvester (void)
 
virtual void endJob () final
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
virtual void endRun (edm::Run const &, edm::EventSetup const &)
 
- 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 ()
 

Private Attributes

bool bookingdone
 
std::map< int, MonitorElement * > dcsFractions
 
MonitorElementtotalDCSFraction
 

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)
 
- 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)
 

Detailed Description

No description available.

Author
G. Cerminara - INFN Torino

threadsafe version (//-) oct/nov 2014 - WATWanAbdullah ncpp-um-my

Definition at line 23 of file DTDCSSummary.h.

Constructor & Destructor Documentation

DTDCSSummary::DTDCSSummary ( const edm::ParameterSet pset)

Constructor.

Definition at line 28 of file DTDCSSummary.cc.

28  {
29 
30  bookingdone = 0;
31 
32 }
bool bookingdone
Definition: DTDCSSummary.h:46
DTDCSSummary::~DTDCSSummary ( )
virtual

Destructor.

Definition at line 34 of file DTDCSSummary.cc.

34 {}

Member Function Documentation

void DTDCSSummary::dqmEndJob ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)
overridevirtual

Implements DQMEDHarvester.

Definition at line 56 of file DTDCSSummary.cc.

56 {}
void DTDCSSummary::dqmEndLuminosityBlock ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter,
edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  context 
)
virtual

Reimplemented from DQMEDHarvester.

Definition at line 36 of file DTDCSSummary.cc.

References DQMStore::IBooker::bookFloat(), MonitorElement::Fill(), DQMStore::IBooker::setCurrentFolder(), and hcal_dqm_sourceclient-file_cfg::streams.

37  {
38 
39  if (bookingdone) return;
40 
41  ibooker.setCurrentFolder("DT/EventInfo/DCSContents");
42  // global fraction
43  totalDCSFraction = ibooker.bookFloat("DTDCSSummary");
45  // Wheel "fractions" -> will be 0 or 1
46  for(int wheel = -2; wheel != 3; ++wheel) {
47  stringstream streams;
48  streams << "DT_Wheel" << wheel;
49  dcsFractions[wheel] = ibooker.bookFloat(streams.str());
50  dcsFractions[wheel]->Fill(-1);
51  }
52 
53  bookingdone = 1;
54 }
bool bookingdone
Definition: DTDCSSummary.h:46
MonitorElement * totalDCSFraction
Definition: DTDCSSummary.h:43
std::map< int, MonitorElement * > dcsFractions
Definition: DTDCSSummary.h:44
void Fill(long long x)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:273
MonitorElement * bookFloat(Args &&...args)
Definition: DQMStore.h:109

Member Data Documentation

bool DTDCSSummary::bookingdone
private

Definition at line 46 of file DTDCSSummary.h.

std::map<int, MonitorElement*> DTDCSSummary::dcsFractions
private

Definition at line 44 of file DTDCSSummary.h.

MonitorElement* DTDCSSummary::totalDCSFraction
private

Definition at line 43 of file DTDCSSummary.h.