CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

SiPixelCertification Class Reference

#include <SiPixelCertification.h>

Inheritance diagram for SiPixelCertification:
edm::EDAnalyzer

List of all members.

Public Member Functions

 SiPixelCertification (const edm::ParameterSet &)
 ~SiPixelCertification ()

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_

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.

                                                                    {
  edm::LogInfo( "SiPixelCertification") << "SiPixelCertification::Creating SiPixelCertification ";
  dbe_ = 0;
  dbe_ = Service<DQMStore>().operator->();
}
SiPixelCertification::~SiPixelCertification ( )

Definition at line 29 of file SiPixelCertification.cc.

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

Member Function Documentation

void SiPixelCertification::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
) [private, virtual]

Implements edm::EDAnalyzer.

Definition at line 127 of file SiPixelCertification.cc.

                                                                                     {
  edm::LogInfo( "SiPixelCertification") << "SiPixelCertification::analyze ";
}
void SiPixelCertification::beginJob ( void  ) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 33 of file SiPixelCertification.cc.

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

                                   {
  edm::LogInfo( "SiPixelCertification") << "SiPixelCertification::beginJob ";

  dbe_->setCurrentFolder("Pixel/EventInfo");
  CertificationPixel= dbe_->bookFloat("CertificationSummary");  
  dbe_->setCurrentFolder("Pixel/EventInfo/CertificationContents");
  CertificationBarrel= dbe_->bookFloat("PixelBarrelFraction");  
  CertificationEndcap= dbe_->bookFloat("PixelEndcapFraction");  

  CertificationPixel->Fill(1.);  
  CertificationBarrel->Fill(1.);  
  CertificationEndcap->Fill(1.);  
}
void SiPixelCertification::beginLuminosityBlock ( const edm::LuminosityBlock lumiBlock,
const edm::EventSetup iSetup 
) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 48 of file SiPixelCertification.cc.

                                                                                                          {
  edm::LogInfo( "SiPixelCertification") << "SiPixelCertification::beginLuminosityBlock ";
}
void SiPixelCertification::endJob ( void  ) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 121 of file SiPixelCertification.cc.

                                  {
  edm::LogInfo( "SiPixelCertification") << "SiPixelCertification::endJob ";
}
void SiPixelCertification::endLuminosityBlock ( const edm::LuminosityBlock lumiBlock,
const edm::EventSetup iSetup 
) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 53 of file SiPixelCertification.cc.

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

                                                                                                               {
//cout<<"Entering SiPixelCertification::endLuminosityBlock: "<<endl;
  edm::LogInfo( "SiPixelCertification") << "SiPixelCertification::endLuminosityBlock ";
  // Compute and fill overall certification bits, for now use smallest single value:
  float dcsFrac = (dbe_->get("Pixel/EventInfo/DCSSummary"))->getFloatValue();
  float daqFrac = (dbe_->get("Pixel/EventInfo/DAQSummary"))->getFloatValue();
  float dqmFrac = (dbe_->get("Pixel/EventInfo/reportSummary"))->getFloatValue();
  float pixel_all = std::min(dcsFrac,daqFrac);
  pixel_all = std::min(pixel_all,dqmFrac);
//std::cout<<"Pixel numbers: "<<dcsFrac<<" , "<<daqFrac<<" , "<<dqmFrac<<" , "<<pixel_all<<std::endl;
  CertificationPixel = dbe_->get("Pixel/EventInfo/CertificationSummary");
  if(CertificationPixel) CertificationPixel->Fill(pixel_all);

  dcsFrac = (dbe_->get("Pixel/EventInfo/DCSContents/PixelBarrelFraction"))->getFloatValue();
  daqFrac = (dbe_->get("Pixel/EventInfo/DAQContents/PixelBarrelFraction"))->getFloatValue();
  dqmFrac = (dbe_->get("Pixel/EventInfo/reportSummaryContents/PixelBarrelFraction"))->getFloatValue();
  float pixel_barrel = std::min(dcsFrac,daqFrac);
  pixel_barrel = std::min(pixel_barrel,dqmFrac);
//std::cout<<"Barrel numbers: "<<dcsFrac<<" , "<<daqFrac<<" , "<<dqmFrac<<" , "<<pixel_barrel<<std::endl;
  CertificationBarrel = dbe_->get("Pixel/EventInfo/CertificationContents/PixelBarrelFraction");
  if(CertificationBarrel) CertificationBarrel->Fill(pixel_barrel);

  dcsFrac = (dbe_->get("Pixel/EventInfo/DCSContents/PixelEndcapFraction"))->getFloatValue();
  daqFrac = (dbe_->get("Pixel/EventInfo/DAQContents/PixelEndcapFraction"))->getFloatValue();
  dqmFrac = (dbe_->get("Pixel/EventInfo/reportSummaryContents/PixelEndcapFraction"))->getFloatValue();
  float pixel_endcap = std::min(dcsFrac,daqFrac);
  pixel_endcap = std::min(pixel_endcap,dqmFrac);
//std::cout<<"Endcap numbers: "<<dcsFrac<<" , "<<daqFrac<<" , "<<dqmFrac<<" , "<<pixel_endcap<<std::endl;
  CertificationEndcap = dbe_->get("Pixel/EventInfo/CertificationContents/PixelEndcapFraction");
  if(CertificationEndcap) CertificationEndcap->Fill(pixel_endcap);

}
void SiPixelCertification::endRun ( const edm::Run r,
const edm::EventSetup iSetup 
) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 87 of file SiPixelCertification.cc.

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

                                                                              {
//cout<<"Entering SiPixelCertification::endRun: "<<endl;
  edm::LogInfo( "SiPixelCertification") << "SiPixelCertification::endRun ";
  // Compute and fill overall certification bits, for now use smallest single value:
  float dcsFrac = (dbe_->get("Pixel/EventInfo/DCSSummary"))->getFloatValue();
  float daqFrac = (dbe_->get("Pixel/EventInfo/DAQSummary"))->getFloatValue();
  float dqmFrac = (dbe_->get("Pixel/EventInfo/reportSummary"))->getFloatValue();
  float pixel_all = std::min(dcsFrac,daqFrac);
  pixel_all = std::min(pixel_all,dqmFrac);
//std::cout<<"Pixel numbers: "<<dcsFrac<<" , "<<daqFrac<<" , "<<dqmFrac<<" , "<<pixel_all<<std::endl;
  CertificationPixel = dbe_->get("Pixel/EventInfo/CertificationSummary");
  if(CertificationPixel) CertificationPixel->Fill(pixel_all);

  dcsFrac = (dbe_->get("Pixel/EventInfo/DCSContents/PixelBarrelFraction"))->getFloatValue();
  daqFrac = (dbe_->get("Pixel/EventInfo/DAQContents/PixelBarrelFraction"))->getFloatValue();
  dqmFrac = (dbe_->get("Pixel/EventInfo/reportSummaryContents/PixelBarrelFraction"))->getFloatValue();
  float pixel_barrel = std::min(dcsFrac,daqFrac);
  pixel_barrel = std::min(pixel_barrel,dqmFrac);
//std::cout<<"Barrel numbers: "<<dcsFrac<<" , "<<daqFrac<<" , "<<dqmFrac<<" , "<<pixel_barrel<<std::endl;
  CertificationBarrel = dbe_->get("Pixel/EventInfo/CertificationContents/PixelBarrelFraction");
  if(CertificationBarrel) CertificationBarrel->Fill(pixel_barrel);

  dcsFrac = (dbe_->get("Pixel/EventInfo/DCSContents/PixelEndcapFraction"))->getFloatValue();
  daqFrac = (dbe_->get("Pixel/EventInfo/DAQContents/PixelEndcapFraction"))->getFloatValue();
  dqmFrac = (dbe_->get("Pixel/EventInfo/reportSummaryContents/PixelEndcapFraction"))->getFloatValue();
  float pixel_endcap = std::min(dcsFrac,daqFrac);
  pixel_endcap = std::min(pixel_endcap,dqmFrac);
//std::cout<<"Endcap numbers: "<<dcsFrac<<" , "<<daqFrac<<" , "<<dqmFrac<<" , "<<pixel_endcap<<std::endl;
  CertificationEndcap = dbe_->get("Pixel/EventInfo/CertificationContents/PixelEndcapFraction");
  if(CertificationEndcap) CertificationEndcap->Fill(pixel_endcap);

}

Member Data Documentation

Definition at line 42 of file SiPixelCertification.h.

Definition at line 43 of file SiPixelCertification.h.

Definition at line 41 of file SiPixelCertification.h.

Definition at line 39 of file SiPixelCertification.h.