#include <DTNoiseCalibration.h>
Definition at line 33 of file DTNoiseCalibration.h.
DTNoiseCalibration::DTNoiseCalibration | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 44 of file DTNoiseCalibration.cc.
References defaultTtrig_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), readDB_, rootFile_, dtT0Analyzer_cfg::rootFileName, relativeConstraints::station, createXMLFile::wire, and wireIdWithHisto_.
: digiLabel_( pset.getParameter<InputTag>("digiLabel") ), useTimeWindow_( pset.getParameter<bool>("useTimeWindow") ), triggerWidth_( pset.getParameter<double>("triggerWidth") ), timeWindowOffset_( pset.getParameter<int>("timeWindowOffset") ), maximumNoiseRate_( pset.getParameter<double>("maximumNoiseRate") ), useAbsoluteRate_( pset.getParameter<bool>("useAbsoluteRate") ), readDB_(true), defaultTtrig_(0), dbLabel_( pset.getUntrackedParameter<string>("dbLabel", "") ), //fastAnalysis_( pset.getParameter<bool>("fastAnalysis", true) ), wireIdWithHisto_( std::vector<DTWireId>() ), lumiMax_(3000) { // Get the debug parameter for verbose output //debug = ps.getUntrackedParameter<bool>("debug"); /*// The analysis type // The wheel & sector interested for the time-dependent analysis wh = ps.getUntrackedParameter<int>("wheel", 0); sect = ps.getUntrackedParameter<int>("sector", 6);*/ if( pset.exists("defaultTtrig") ){ readDB_ = false; defaultTtrig_ = pset.getParameter<int>("defaultTtrig"); } if( pset.exists("cellsWithHisto") ){ vector<string> cellsWithHisto = pset.getParameter<vector<string> >("cellsWithHisto"); for(vector<string>::const_iterator cell = cellsWithHisto.begin(); cell != cellsWithHisto.end(); ++cell){ //FIXME: Use regex to check whether format is right if( (*cell) != "" && (*cell) != "None"){ stringstream linestr; int wheel,station,sector,sl,layer,wire; linestr << (*cell); linestr >> wheel >> station >> sector >> sl >> layer >> wire; wireIdWithHisto_.push_back(DTWireId(wheel,station,sector,sl,layer,wire)); } } } // The root file which will contain the histos string rootFileName = pset.getUntrackedParameter<string>("rootFileName","noise.root"); rootFile_ = new TFile(rootFileName.c_str(), "RECREATE"); rootFile_->cd(); }
DTNoiseCalibration::~DTNoiseCalibration | ( | ) | [virtual] |
void DTNoiseCalibration::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | c | ||
) | [virtual] |
Implements edm::EDAnalyzer.
void DTNoiseCalibration::beginJob | ( | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
void DTNoiseCalibration::beginRun | ( | const edm::Run & | run, |
const edm::EventSetup & | setup | ||
) | [virtual] |
Reimplemented from edm::EDAnalyzer.
void DTNoiseCalibration::endJob | ( | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
std::string DTNoiseCalibration::getChamberName | ( | const DTChamberId & | ) | const [private] |
string DTNoiseCalibration::getChannelName | ( | const DTWireId & | wId | ) | const [private] |
Definition at line 422 of file DTNoiseCalibration.cc.
References DTLayerId::layer(), DTChamberId::sector(), DTChamberId::station(), DTSuperLayerId::superlayer(), DTChamberId::wheel(), and DTWireId::wire().
std::string DTNoiseCalibration::getLayerName | ( | const DTLayerId & | ) | const [private] |
std::string DTNoiseCalibration::getSuperLayerName | ( | const DTSuperLayerId & | ) | const [private] |
std::map<DTChamberId, TH1F*> DTNoiseCalibration::chamberOccupancyVsLumiMap_ [private] |
Definition at line 91 of file DTNoiseCalibration.h.
std::map<DTChamberId, TH1F*> DTNoiseCalibration::chamberOccupancyVsTimeMap_ [private] |
Definition at line 93 of file DTNoiseCalibration.h.
std::string DTNoiseCalibration::dbLabel_ [private] |
Definition at line 68 of file DTNoiseCalibration.h.
int DTNoiseCalibration::defaultTtrig_ [private] |
Definition at line 67 of file DTNoiseCalibration.h.
Referenced by DTNoiseCalibration().
edm::InputTag DTNoiseCalibration::digiLabel_ [private] |
Definition at line 55 of file DTNoiseCalibration.h.
edm::ESHandle<DTGeometry> DTNoiseCalibration::dtGeom_ [private] |
Definition at line 79 of file DTNoiseCalibration.h.
TH1F* DTNoiseCalibration::hTDCTriggerWidth_ [private] |
Definition at line 85 of file DTNoiseCalibration.h.
unsigned int DTNoiseCalibration::lumiMax_ [private] |
Definition at line 71 of file DTNoiseCalibration.h.
double DTNoiseCalibration::maximumNoiseRate_ [private] |
Definition at line 59 of file DTNoiseCalibration.h.
int DTNoiseCalibration::nevents_ [private] |
Definition at line 73 of file DTNoiseCalibration.h.
bool DTNoiseCalibration::readDB_ [private] |
Definition at line 66 of file DTNoiseCalibration.h.
Referenced by DTNoiseCalibration().
TFile* DTNoiseCalibration::rootFile_ [private] |
Definition at line 83 of file DTNoiseCalibration.h.
Referenced by DTNoiseCalibration().
time_t DTNoiseCalibration::runBeginTime_ [private] |
Definition at line 75 of file DTNoiseCalibration.h.
time_t DTNoiseCalibration::runEndTime_ [private] |
Definition at line 76 of file DTNoiseCalibration.h.
std::map<DTLayerId, TH1F*> DTNoiseCalibration::theHistoOccupancyMap_ [private] |
Definition at line 87 of file DTNoiseCalibration.h.
std::map<DTWireId, TH1F*> DTNoiseCalibration::theHistoOccupancyVsLumiMap_ [private] |
Definition at line 89 of file DTNoiseCalibration.h.
int DTNoiseCalibration::timeWindowOffset_ [private] |
Definition at line 58 of file DTNoiseCalibration.h.
double DTNoiseCalibration::triggerWidth_ [private] |
Definition at line 57 of file DTNoiseCalibration.h.
edm::ESHandle<DTTtrig> DTNoiseCalibration::tTrigMap_ [private] |
Definition at line 81 of file DTNoiseCalibration.h.
bool DTNoiseCalibration::useAbsoluteRate_ [private] |
Definition at line 60 of file DTNoiseCalibration.h.
bool DTNoiseCalibration::useTimeWindow_ [private] |
Definition at line 56 of file DTNoiseCalibration.h.
std::vector<DTWireId> DTNoiseCalibration::wireIdWithHisto_ [private] |
Definition at line 70 of file DTNoiseCalibration.h.
Referenced by DTNoiseCalibration().