27 string t0SegRootFile = pset.
getParameter<
string>(
"t0SegRootFile");
28 rootFile_ =
new TFile(t0SegRootFile.c_str(),
"READ");
32 DTTTrigT0SegCorrection::~DTTTrigT0SegCorrection() {
44 float tTrigMean,tTrigSigma,
kFactor;
46 if(status != 0)
throw cms::Exception(
"[DTTTrigT0SegCorrection]") <<
"Could not find tTrig entry in DB for" 49 const TH1F* t0SegHisto = getHisto(slId);
50 double corrMean = tTrigMean;
51 double corrSigma = tTrigSigma;
53 double corrKFact = (kFactor*tTrigSigma + t0SegHisto->GetMean())/tTrigSigma;
59 TH1F*
histo =
static_cast<TH1F*
>(rootFile_->Get(histoName.c_str()));
60 if(!histo)
throw cms::Exception(
"[DTTTrigT0SegCorrection]") <<
"t0-seg histogram not found:" 78 return (slId.
superLayer() != 2)?(
"hRPhiSegT0"+chHistoName):(
"hRZSegT0"+chHistoName);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
DTChamberId chamberId() const
Return the corresponding ChamberId.
def setup(process, global_tag, zero_tesla=False)
def getHistoName(wheel, station, sector)
int superLayer() const
Return the superlayer number.
int station() const
Return the station number.
int wheel() const
Return the wheel number.