CMS 3D CMS Logo

Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes

DTVDriftSegmentCalibration Class Reference

#include <DTVDriftSegmentCalibration.h>

Inheritance diagram for DTVDriftSegmentCalibration:
edm::EDAnalyzer

List of all members.

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_

Detailed Description

Produces histograms from v-drift computation in segment fit to be used for v-drift calibration

Date:
2010/11/19 14:02:08
Revision:
1.2
Author:
A. Vilela Pereira

Definition at line 24 of file DTVDriftSegmentCalibration.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

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!";
}

Member Function Documentation

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.


Member Data Documentation

Definition at line 47 of file DTVDriftSegmentCalibration.h.

Referenced by DTVDriftSegmentCalibration().

Definition at line 41 of file DTVDriftSegmentCalibration.h.

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.