CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Private Attributes

BeamConditionsMonitor Class Reference

#include <BeamConditionsMonitor.h>

Inheritance diagram for BeamConditionsMonitor:
edm::EDAnalyzer

List of all members.

Public Member Functions

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

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
void beginJob ()
void beginLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
void beginRun (const edm::Run &r, const edm::EventSetup &c)
void endJob ()
void endLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
void endRun (const edm::Run &r, const edm::EventSetup &c)

Private Attributes

edm::InputTag bsSrc_
BeamSpotObjects condBeamSpot
int countEvt_
int countLumi_
DQMStoredbe_
bool debug_
MonitorElementh_x0_lumi
MonitorElementh_y0_lumi
std::string monitorName_
edm::ParameterSet parameters_

Detailed Description

*

Date:
2010/05/11 23:56:07
Revision:
1.1
Author:
Geng-yuan Jeng/UC Riverside Francisco Yumiceva/FNAL

Definition at line 28 of file BeamConditionsMonitor.h.


Constructor & Destructor Documentation

BeamConditionsMonitor::BeamConditionsMonitor ( const edm::ParameterSet ps)
BeamConditionsMonitor::~BeamConditionsMonitor ( )

Definition at line 43 of file BeamConditionsMonitor.cc.

                                              {
}

Member Function Documentation

void BeamConditionsMonitor::analyze ( const edm::Event e,
const edm::EventSetup c 
) [protected, virtual]

Implements edm::EDAnalyzer.

Definition at line 77 of file BeamConditionsMonitor.cc.

References condBeamSpot, countEvt_, and edm::EventSetup::get().

                                                                                  {

  countEvt_++;  
  ESHandle< BeamSpotObjects > beamhandle;
  iSetup.get<BeamSpotObjectsRcd>().get(beamhandle);
  condBeamSpot = *beamhandle;

}
void BeamConditionsMonitor::beginJob ( void  ) [protected, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 48 of file BeamConditionsMonitor.cc.

References DQMStore::book1D(), dbe_, MonitorElement::getTH1(), h_x0_lumi, h_y0_lumi, monitorName_, MonitorElement::setAxisTitle(), and DQMStore::setCurrentFolder().

                                     {
  
  // book some histograms here
  // create and cd into new folder
  dbe_->setCurrentFolder(monitorName_+"Conditions");
  
  h_x0_lumi = dbe_->book1D("x0_lumi_cond","x coordinate of beam spot vs lumi (Cond)",10,0,10);
  h_x0_lumi->setAxisTitle("Lumisection",1);
  h_x0_lumi->setAxisTitle("x_{0} (cm)",2);
  h_x0_lumi->getTH1()->SetOption("E1");

  h_y0_lumi = dbe_->book1D("y0_lumi_cond","y coordinate of beam spot vs lumi (Cond)",10,0,10);
  h_y0_lumi->setAxisTitle("Lumisection",1);
  h_y0_lumi->setAxisTitle("y_{0} (cm)",2);
  h_y0_lumi->getTH1()->SetOption("E1");
  
}
void BeamConditionsMonitor::beginLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup context 
) [protected, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 71 of file BeamConditionsMonitor.cc.

References countLumi_.

                                                                            {
  countLumi_++;
}
void BeamConditionsMonitor::beginRun ( const edm::Run r,
const edm::EventSetup c 
) [protected, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 67 of file BeamConditionsMonitor.cc.

                                                                               {
}
void BeamConditionsMonitor::endJob ( void  ) [protected, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 100 of file BeamConditionsMonitor.cc.

                                   {
}
void BeamConditionsMonitor::endLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup c 
) [protected, virtual]
void BeamConditionsMonitor::endRun ( const edm::Run r,
const edm::EventSetup c 
) [protected, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 97 of file BeamConditionsMonitor.cc.

                                                                          {  
}

Member Data Documentation

Definition at line 61 of file BeamConditionsMonitor.h.

Referenced by BeamConditionsMonitor().

Definition at line 70 of file BeamConditionsMonitor.h.

Referenced by analyze(), and endLuminosityBlock().

Definition at line 66 of file BeamConditionsMonitor.h.

Referenced by analyze().

Definition at line 67 of file BeamConditionsMonitor.h.

Referenced by beginLuminosityBlock().

Definition at line 64 of file BeamConditionsMonitor.h.

Referenced by BeamConditionsMonitor(), and beginJob().

Definition at line 62 of file BeamConditionsMonitor.h.

Referenced by BeamConditionsMonitor().

Definition at line 73 of file BeamConditionsMonitor.h.

Referenced by beginJob(), and endLuminosityBlock().

Definition at line 74 of file BeamConditionsMonitor.h.

Referenced by beginJob(), and endLuminosityBlock().

std::string BeamConditionsMonitor::monitorName_ [private]

Definition at line 60 of file BeamConditionsMonitor.h.

Referenced by BeamConditionsMonitor(), and beginJob().

Definition at line 59 of file BeamConditionsMonitor.h.

Referenced by BeamConditionsMonitor().