#include <DTVDriftSegmentCalibration.h>
Classes | |
class | DTVDriftSegmentCalibration |
Public Member Functions | |
void | analyze (const edm::Event &event, const edm::EventSetup &eventSetup) |
void | beginJob () |
void | beginRun (const edm::Run &run, const edm::EventSetup &setup) |
DTVDriftSegmentCalibration (const edm::ParameterSet &pset) | |
void | endJob () |
virtual | ~DTVDriftSegmentCalibration () |
Private Types | |
typedef std::map< DTChamberId, std::vector< TH1F * > > | ChamberHistosMapTH1F |
typedef std::map< DTChamberId, std::vector< TH2F * > > | ChamberHistosMapTH2F |
Private Member Functions | |
void | bookHistos (DTChamberId) |
Private Attributes | |
TFile * | rootFile_ |
DTSegmentSelector | select_ |
std::string | theCalibChamber_ |
edm::InputTag | theRecHits4DLabel_ |
ChamberHistosMapTH1F | theVDriftHistoMapTH1F_ |
ChamberHistosMapTH2F | theVDriftHistoMapTH2F_ |
Produces histograms from v-drift computation in segment fit to be used for v-drift calibration
Definition at line 24 of file DTVDriftSegmentCalibration.h.
typedef std::map<DTChamberId, std::vector<TH1F*> > DTVDriftSegmentCalibration::ChamberHistosMapTH1F [private] |
Definition at line 37 of file DTVDriftSegmentCalibration.h.
typedef std::map<DTChamberId, std::vector<TH2F*> > DTVDriftSegmentCalibration::ChamberHistosMapTH2F [private] |
Definition at line 38 of file DTVDriftSegmentCalibration.h.
Definition at line 36 of file DTVDriftSegmentCalibration.cc.
References edm::ParameterSet::getUntrackedParameter(), rootFile_, and dtTPAnalyzer_cfg::rootFileName.
: select_(pset), theRecHits4DLabel_(pset.getParameter<InputTag>("recHits4DLabel")), //writeVDriftDB_(pset.getUntrackedParameter<bool>("writeVDriftDB", false)), theCalibChamber_(pset.getUntrackedParameter<string>("calibChamber", "All")) { LogVerbatim("Calibration") << "[DTVDriftSegmentCalibration] Constructor called!"; // the root file which will contain the histos string rootFileName = pset.getUntrackedParameter<string>("rootFileName","DTVDriftHistos.root"); rootFile_ = new TFile(rootFileName.c_str(), "RECREATE"); rootFile_->cd(); }
DTVDriftSegmentCalibration::~DTVDriftSegmentCalibration | ( | ) | [virtual] |
Definition at line 56 of file DTVDriftSegmentCalibration.cc.
{ rootFile_->Close(); LogVerbatim("Calibration") << "[DTVDriftSegmentCalibration] Destructor called!"; }
void DTVDriftSegmentCalibration::analyze | ( | const edm::Event & | event, |
const edm::EventSetup & | eventSetup | ||
) | [virtual] |
Implements edm::EDAnalyzer.
void DTVDriftSegmentCalibration::beginJob | ( | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
void DTVDriftSegmentCalibration::beginRun | ( | const edm::Run & | run, |
const edm::EventSetup & | setup | ||
) | [virtual] |
Reimplemented from edm::EDAnalyzer.
void DTVDriftSegmentCalibration::bookHistos | ( | DTChamberId | ) | [private] |
void DTVDriftSegmentCalibration::endJob | ( | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
TFile* DTVDriftSegmentCalibration::rootFile_ [private] |
Definition at line 47 of file DTVDriftSegmentCalibration.h.
Referenced by DTVDriftSegmentCalibration().
Definition at line 41 of file DTVDriftSegmentCalibration.h.
std::string DTVDriftSegmentCalibration::theCalibChamber_ [private] |
Definition at line 45 of file DTVDriftSegmentCalibration.h.
Definition at line 43 of file DTVDriftSegmentCalibration.h.
Definition at line 48 of file DTVDriftSegmentCalibration.h.
Definition at line 49 of file DTVDriftSegmentCalibration.h.