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

#include <DTDCSSummary.h>

Inheritance diagram for DTDCSSummary:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 DTDCSSummary (const edm::ParameterSet &pset)
 Constructor. More...
 
virtual ~DTDCSSummary ()
 Destructor. More...
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 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 (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

virtual void analyze (const edm::Event &event, const edm::EventSetup &setup)
 
virtual void beginJob ()
 
virtual void beginLuminosityBlock (const edm::LuminosityBlock &lumi, const edm::EventSetup &setup)
 
virtual void endJob ()
 
virtual void endLuminosityBlock (const edm::LuminosityBlock &lumi, const edm::EventSetup &setup)
 

Private Attributes

std::map< int, MonitorElement * > dcsFractions
 
DQMStoretheDbe
 
MonitorElementtotalDCSFraction
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- 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

Definition at line 18 of file DTDCSSummary.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 25 of file DTDCSSummary.cc.

25 {}
DTDCSSummary::~DTDCSSummary ( )
virtual

Destructor.

Definition at line 30 of file DTDCSSummary.cc.

30 {}

Member Function Documentation

void DTDCSSummary::analyze ( const edm::Event event,
const edm::EventSetup setup 
)
privatevirtual

Implements edm::EDAnalyzer.

Definition at line 69 of file DTDCSSummary.cc.

69 {}
void DTDCSSummary::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 34 of file DTDCSSummary.cc.

References cppFunctionSkipper::operator, and hcal_dqm_sourceclient-file_cfg::streams.

34  {
35  // get the DQMStore
37 
38  // book the ME
39  theDbe->setCurrentFolder("DT/EventInfo/DCSContents");
40  // global fraction
41  totalDCSFraction = theDbe->bookFloat("DTDCSSummary");
43  // Wheel "fractions" -> will be 0 or 1
44  for(int wheel = -2; wheel != 3; ++wheel) {
45  stringstream streams;
46  streams << "DT_Wheel" << wheel;
47  dcsFractions[wheel] = theDbe->bookFloat(streams.str());
48  dcsFractions[wheel]->Fill(-1);
49  }
50 
51 }
MonitorElement * totalDCSFraction
Definition: DTDCSSummary.h:39
std::map< int, MonitorElement * > dcsFractions
Definition: DTDCSSummary.h:40
MonitorElement * bookFloat(const char *name)
Book float.
Definition: DQMStore.cc:865
void Fill(long long x)
DQMStore * theDbe
Definition: DTDCSSummary.h:37
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:639
void DTDCSSummary::beginLuminosityBlock ( const edm::LuminosityBlock lumi,
const edm::EventSetup setup 
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 55 of file DTDCSSummary.cc.

55  {
56 }
void DTDCSSummary::endJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 65 of file DTDCSSummary.cc.

65 {}
void DTDCSSummary::endLuminosityBlock ( const edm::LuminosityBlock lumi,
const edm::EventSetup setup 
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 61 of file DTDCSSummary.cc.

61 {}

Member Data Documentation

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

Definition at line 40 of file DTDCSSummary.h.

DQMStore* DTDCSSummary::theDbe
private

Definition at line 37 of file DTDCSSummary.h.

MonitorElement* DTDCSSummary::totalDCSFraction
private

Definition at line 39 of file DTDCSSummary.h.