|
|
Go to the documentation of this file.
37 : nSigmas_(
pset.getUntrackedParameter<unsigned
int>(
"nSigmasFitRange", 1)),
43 bool debug =
pset.getUntrackedParameter<
bool>(
"debug",
false);
68 throw cms::Exception(
"Configuration") <<
"only version 1 is presently supported for VDriftDB";
81 throw cms::Exception(
"DTCalibration") <<
"Could not find vDrift entry in DB for" << slId << endl;
88 LogTrace(
"Calibration") <<
"[DTVDriftSegment]: RZ superlayer\n"
89 <<
" Will use original vDrift and resolution.";
92 TH1F* vDriftCorrHisto =
getHisto(slId);
94 if (vDriftCorrHisto->GetEntries() == 0) {
95 LogError(
"Calibration") <<
"[DTVDriftSegment]: Histogram " << vDriftCorrHisto->GetName() <<
" is empty.\n"
96 <<
" Will use original vDrift and resolution.";
100 LogTrace(
"Calibration") <<
"[DTVDriftSegment]: Fitting histogram " << vDriftCorrHisto->GetName();
102 LogTrace(
"Calibration") <<
"[DTVDriftSegment]: \n"
106 float vDriftCorr = fitResult.
fitMean;
107 float vDriftNew = vDrift * (1. - vDriftCorr);
129 string chHistoName =
"_W" +
wheel +
"_St" +
station +
"_Sec" + sector;
131 return (slId.
superLayer() != 2) ? (
"hRPhiVDriftCorr" + chHistoName) : (
"hRZVDriftCorr" + chHistoName);
DTVDriftData compute(const DTSuperLayerId &) override
DTResidualFitResult fitResiduals(TH1F &histo, int nSigmas=1)
int superLayer() const
Return the superlayer number.
const DTRecoConditions * vDriftMap_
float get(const DTWireId &wireid, double *x=nullptr) const
Get the value correspoding to the given WireId, / using x[] as parameters of the parametrization when...
int version() const
Version numer specifying the structure of the payload. See .cc file for details.
const DTMtime * mTimeMap_
std::string getHistoName(const DTSuperLayerId &)
DTChamberId chamberId() const
Return the corresponding ChamberId.
~DTVDriftSegment() override
DTResidualFitter * fitter_
Log< level::Error, false > LogError
void setES(const edm::EventSetup &setup) override
constexpr uint32_t rawId() const
get the raw id
TH1F * getHisto(const DTSuperLayerId &)
int get(int wheelId, int stationId, int sectorId, int slId, float &mTime, float &mTrms, DTTimeUnits::type unit) const
int wheel() const
Return the wheel number.
int station() const
Return the station number.