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

#include <SiPixelCertification.h>

Inheritance diagram for SiPixelCertification:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 SiPixelCertification (const edm::ParameterSet &)
 
 ~SiPixelCertification ()
 
- 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 &, const edm::EventSetup &)
 
virtual void beginJob ()
 
virtual void beginLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 
virtual void endJob ()
 
virtual void endLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 
virtual void endRun (const edm::Run &, const edm::EventSetup &)
 

Private Attributes

MonitorElementCertificationBarrel
 
MonitorElementCertificationEndcap
 
MonitorElementCertificationPixel
 
DQMStoredbe_
 

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

Definition at line 25 of file SiPixelCertification.h.

Constructor & Destructor Documentation

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

Definition at line 23 of file SiPixelCertification.cc.

References dbe_, and cppFunctionSkipper::operator.

23  {
24  edm::LogInfo( "SiPixelCertification") << "SiPixelCertification::Creating SiPixelCertification ";
25  dbe_ = 0;
27 }
SiPixelCertification::~SiPixelCertification ( )

Definition at line 29 of file SiPixelCertification.cc.

29  {
30  edm::LogInfo( "SiPixelCertification") << "SiPixelCertification::Deleting SiPixelCertification ";
31 }

Member Function Documentation

void SiPixelCertification::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
privatevirtual

Implements edm::EDAnalyzer.

Definition at line 127 of file SiPixelCertification.cc.

127  {
128  edm::LogInfo( "SiPixelCertification") << "SiPixelCertification::analyze ";
129 }
void SiPixelCertification::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 33 of file SiPixelCertification.cc.

References DQMStore::bookFloat(), dbe_, MonitorElement::Fill(), and DQMStore::setCurrentFolder().

33  {
34  edm::LogInfo( "SiPixelCertification") << "SiPixelCertification::beginJob ";
35 
36  dbe_->setCurrentFolder("Pixel/EventInfo");
37  CertificationPixel= dbe_->bookFloat("CertificationSummary");
38  dbe_->setCurrentFolder("Pixel/EventInfo/CertificationContents");
39  CertificationBarrel= dbe_->bookFloat("PixelBarrelFraction");
40  CertificationEndcap= dbe_->bookFloat("PixelEndcapFraction");
41 
45 }
MonitorElement * CertificationPixel
MonitorElement * bookFloat(const char *name)
Book float.
Definition: DQMStore.cc:891
void Fill(long long x)
MonitorElement * CertificationBarrel
MonitorElement * CertificationEndcap
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:667
void SiPixelCertification::beginLuminosityBlock ( const edm::LuminosityBlock lumiBlock,
const edm::EventSetup iSetup 
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 48 of file SiPixelCertification.cc.

48  {
49  edm::LogInfo( "SiPixelCertification") << "SiPixelCertification::beginLuminosityBlock ";
50 }
void SiPixelCertification::endJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 121 of file SiPixelCertification.cc.

121  {
122  edm::LogInfo( "SiPixelCertification") << "SiPixelCertification::endJob ";
123 }
void SiPixelCertification::endLuminosityBlock ( const edm::LuminosityBlock lumiBlock,
const edm::EventSetup iSetup 
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 53 of file SiPixelCertification.cc.

References dbe_, MonitorElement::Fill(), DQMStore::get(), and min().

53  {
54 //cout<<"Entering SiPixelCertification::endLuminosityBlock: "<<endl;
55  edm::LogInfo( "SiPixelCertification") << "SiPixelCertification::endLuminosityBlock ";
56  // Compute and fill overall certification bits, for now use smallest single value:
57  float dcsFrac = (dbe_->get("Pixel/EventInfo/DCSSummary"))->getFloatValue();
58  float daqFrac = (dbe_->get("Pixel/EventInfo/DAQSummary"))->getFloatValue();
59  float dqmFrac = (dbe_->get("Pixel/EventInfo/reportSummary"))->getFloatValue();
60  float pixel_all = std::min(dcsFrac,daqFrac);
61  pixel_all = std::min(pixel_all,dqmFrac);
62 //std::cout<<"Pixel numbers: "<<dcsFrac<<" , "<<daqFrac<<" , "<<dqmFrac<<" , "<<pixel_all<<std::endl;
63  CertificationPixel = dbe_->get("Pixel/EventInfo/CertificationSummary");
65 
66  dcsFrac = (dbe_->get("Pixel/EventInfo/DCSContents/PixelBarrelFraction"))->getFloatValue();
67  daqFrac = (dbe_->get("Pixel/EventInfo/DAQContents/PixelBarrelFraction"))->getFloatValue();
68  dqmFrac = (dbe_->get("Pixel/EventInfo/reportSummaryContents/PixelBarrelFraction"))->getFloatValue();
69  float pixel_barrel = std::min(dcsFrac,daqFrac);
70  pixel_barrel = std::min(pixel_barrel,dqmFrac);
71 //std::cout<<"Barrel numbers: "<<dcsFrac<<" , "<<daqFrac<<" , "<<dqmFrac<<" , "<<pixel_barrel<<std::endl;
72  CertificationBarrel = dbe_->get("Pixel/EventInfo/CertificationContents/PixelBarrelFraction");
73  if(CertificationBarrel) CertificationBarrel->Fill(pixel_barrel);
74 
75  dcsFrac = (dbe_->get("Pixel/EventInfo/DCSContents/PixelEndcapFraction"))->getFloatValue();
76  daqFrac = (dbe_->get("Pixel/EventInfo/DAQContents/PixelEndcapFraction"))->getFloatValue();
77  dqmFrac = (dbe_->get("Pixel/EventInfo/reportSummaryContents/PixelEndcapFraction"))->getFloatValue();
78  float pixel_endcap = std::min(dcsFrac,daqFrac);
79  pixel_endcap = std::min(pixel_endcap,dqmFrac);
80 //std::cout<<"Endcap numbers: "<<dcsFrac<<" , "<<daqFrac<<" , "<<dqmFrac<<" , "<<pixel_endcap<<std::endl;
81  CertificationEndcap = dbe_->get("Pixel/EventInfo/CertificationContents/PixelEndcapFraction");
82  if(CertificationEndcap) CertificationEndcap->Fill(pixel_endcap);
83 
84 }
MonitorElement * CertificationPixel
void Fill(long long x)
MonitorElement * CertificationBarrel
T min(T a, T b)
Definition: MathUtil.h:58
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. &quot;my/long/dir/my_histo&quot;)
Definition: DQMStore.cc:1708
MonitorElement * CertificationEndcap
void SiPixelCertification::endRun ( const edm::Run r,
const edm::EventSetup iSetup 
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 87 of file SiPixelCertification.cc.

References dbe_, MonitorElement::Fill(), DQMStore::get(), and min().

87  {
88 //cout<<"Entering SiPixelCertification::endRun: "<<endl;
89  edm::LogInfo( "SiPixelCertification") << "SiPixelCertification::endRun ";
90  // Compute and fill overall certification bits, for now use smallest single value:
91  float dcsFrac = (dbe_->get("Pixel/EventInfo/DCSSummary"))->getFloatValue();
92  float daqFrac = (dbe_->get("Pixel/EventInfo/DAQSummary"))->getFloatValue();
93  float dqmFrac = (dbe_->get("Pixel/EventInfo/reportSummary"))->getFloatValue();
94  float pixel_all = std::min(dcsFrac,daqFrac);
95  pixel_all = std::min(pixel_all,dqmFrac);
96 //std::cout<<"Pixel numbers: "<<dcsFrac<<" , "<<daqFrac<<" , "<<dqmFrac<<" , "<<pixel_all<<std::endl;
97  CertificationPixel = dbe_->get("Pixel/EventInfo/CertificationSummary");
99 
100  dcsFrac = (dbe_->get("Pixel/EventInfo/DCSContents/PixelBarrelFraction"))->getFloatValue();
101  daqFrac = (dbe_->get("Pixel/EventInfo/DAQContents/PixelBarrelFraction"))->getFloatValue();
102  dqmFrac = (dbe_->get("Pixel/EventInfo/reportSummaryContents/PixelBarrelFraction"))->getFloatValue();
103  float pixel_barrel = std::min(dcsFrac,daqFrac);
104  pixel_barrel = std::min(pixel_barrel,dqmFrac);
105 //std::cout<<"Barrel numbers: "<<dcsFrac<<" , "<<daqFrac<<" , "<<dqmFrac<<" , "<<pixel_barrel<<std::endl;
106  CertificationBarrel = dbe_->get("Pixel/EventInfo/CertificationContents/PixelBarrelFraction");
107  if(CertificationBarrel) CertificationBarrel->Fill(pixel_barrel);
108 
109  dcsFrac = (dbe_->get("Pixel/EventInfo/DCSContents/PixelEndcapFraction"))->getFloatValue();
110  daqFrac = (dbe_->get("Pixel/EventInfo/DAQContents/PixelEndcapFraction"))->getFloatValue();
111  dqmFrac = (dbe_->get("Pixel/EventInfo/reportSummaryContents/PixelEndcapFraction"))->getFloatValue();
112  float pixel_endcap = std::min(dcsFrac,daqFrac);
113  pixel_endcap = std::min(pixel_endcap,dqmFrac);
114 //std::cout<<"Endcap numbers: "<<dcsFrac<<" , "<<daqFrac<<" , "<<dqmFrac<<" , "<<pixel_endcap<<std::endl;
115  CertificationEndcap = dbe_->get("Pixel/EventInfo/CertificationContents/PixelEndcapFraction");
116  if(CertificationEndcap) CertificationEndcap->Fill(pixel_endcap);
117 
118 }
MonitorElement * CertificationPixel
void Fill(long long x)
MonitorElement * CertificationBarrel
T min(T a, T b)
Definition: MathUtil.h:58
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. &quot;my/long/dir/my_histo&quot;)
Definition: DQMStore.cc:1708
MonitorElement * CertificationEndcap

Member Data Documentation

MonitorElement* SiPixelCertification::CertificationBarrel
private

Definition at line 42 of file SiPixelCertification.h.

MonitorElement* SiPixelCertification::CertificationEndcap
private

Definition at line 43 of file SiPixelCertification.h.

MonitorElement* SiPixelCertification::CertificationPixel
private

Definition at line 41 of file SiPixelCertification.h.

DQMStore* SiPixelCertification::dbe_
private

Definition at line 39 of file SiPixelCertification.h.