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
SiPixelDcsInfo Class Reference

#include <SiPixelDcsInfo.h>

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

Public Member Functions

 SiPixelDcsInfo (const edm::ParameterSet &)
 
 ~SiPixelDcsInfo ()
 
- 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 (const std::string &iProcessName, std::vector< const char * > &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 Member Functions

virtual void dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override
 
virtual void dqmEndLuminosityBlock (DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, const edm::LuminosityBlock &, const edm::EventSetup &) override
 

Private Attributes

bool firstRun
 
MonitorElementFraction_
 
MonitorElementFractionBarrel_
 
MonitorElementFractionEndcap_
 

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

Definition at line 26 of file SiPixelDcsInfo.h.

Constructor & Destructor Documentation

SiPixelDcsInfo::SiPixelDcsInfo ( const edm::ParameterSet ps)
explicit

Definition at line 9 of file SiPixelDcsInfo.cc.

References dataset::firstRun.

9  {
10 
11  firstRun = true;
12 }
SiPixelDcsInfo::~SiPixelDcsInfo ( )

Definition at line 14 of file SiPixelDcsInfo.cc.

14 {}

Member Function Documentation

void SiPixelDcsInfo::dqmEndJob ( DQMStore::IBooker iBooker,
DQMStore::IGetter iGetter 
)
overrideprivatevirtual

Implements DQMEDHarvester.

Definition at line 38 of file SiPixelDcsInfo.cc.

38  {
39  //Nothing actually happened in the old endJob/endRun, so this is left empty.
40 }
void SiPixelDcsInfo::dqmEndLuminosityBlock ( DQMStore::IBooker iBooker,
DQMStore::IGetter iGetter,
const edm::LuminosityBlock lumiBlock,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Reimplemented from DQMEDHarvester.

Definition at line 16 of file SiPixelDcsInfo.cc.

References DQMStore::IBooker::bookFloat(), edm::EventSetup::find(), edm::eventsetup::heterocontainer::HCTypeTag::findType(), dataset::firstRun, and DQMStore::IBooker::setCurrentFolder().

16  {
17 
18  if (firstRun){
19  iBooker.setCurrentFolder("Pixel/EventInfo");
20  Fraction_= iBooker.bookFloat("DCSSummary");
21  iBooker.setCurrentFolder("Pixel/EventInfo/DCSContents");
22  FractionBarrel_= iBooker.bookFloat("PixelBarrelFraction");
23  FractionEndcap_= iBooker.bookFloat("PixelEndcapFraction");
24  }
25 
27  if(0 != iSetup.find( recordKey ) ) {
28  //all Pixel:
29  Fraction_->Fill(1.);
30  //Barrel:
31  FractionBarrel_->Fill(1.);
32  //Endcap:
33  FractionEndcap_->Fill(1.);
34  return;
35  }
36 }
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
Definition: EventSetup.cc:90
void Fill(long long x)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
MonitorElement * Fraction_
MonitorElement * FractionEndcap_
MonitorElement * bookFloat(Args &&...args)
Definition: DQMStore.h:109
MonitorElement * FractionBarrel_
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
Definition: HCTypeTag.cc:125

Member Data Documentation

bool SiPixelDcsInfo::firstRun
private

Definition at line 40 of file SiPixelDcsInfo.h.

MonitorElement* SiPixelDcsInfo::Fraction_
private

Definition at line 36 of file SiPixelDcsInfo.h.

MonitorElement* SiPixelDcsInfo::FractionBarrel_
private

Definition at line 37 of file SiPixelDcsInfo.h.

MonitorElement* SiPixelDcsInfo::FractionEndcap_
private

Definition at line 38 of file SiPixelDcsInfo.h.