47 theFile =
new TFile(theRootInputFile.c_str(),
"READ");
51 theFitter->setVerbosity(1);
54 theFitter->setFitSigma(sigmaFit);
63 cout <<
"[DTTTrigWriter]Constructor called!" << endl;
71 cout <<
"[DTTTrigWriter]Destructor called!" << endl;
81 cout <<
"[DTTTrigWriter]Analyzer called!" << endl;
88 const vector<DTSuperLayer*> superLayers = dtGeom->superLayers();
91 for(vector<DTSuperLayer*>::const_iterator sl = superLayers.begin();
92 sl != superLayers.end(); sl++) {
96 TH1F*
histo = (TH1F*)
theFile->Get((getTBoxName(slId)).c_str());
99 pair<double, double> meanAndSigma = theFitter->fitTimeBox(histo);
108 cout <<
" SL: " << slId
109 <<
" mean = " << meanAndSigma.first
110 <<
" sigma = " << meanAndSigma.second << endl;
121 cout <<
"[DTTTrigWriter]Writing ttrig object to DB!" << endl;
124 string tTrigRecord =
"DTTtrigRcd";
136 stringstream theStream;
139 theStream >> histoName;
T getUntrackedParameter(std::string const &, T const &) const
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup)
Compute the ttrig by fiting the TB rising edge.
void endJob()
Write ttrig in the DB.
DTTTrigWriter(const edm::ParameterSet &pset)
Constructor.
std::string getTBoxName(const DTSuperLayerId &slId) const
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
int superlayer() const
Return the superlayer number (deprecated method name)
int station() const
Return the station number.
int wheel() const
Return the wheel number.
static void writeToDB(std::string record, T *payload)
virtual ~DTTTrigWriter()
Destructor.