78 cout <<
"[DTVDriftWriter]Analyzer called!" << endl;
89 const vector<DTSuperLayer*> superLayers = dtGeom->superLayers();
92 for(vector<DTSuperLayer*>::const_iterator slCell = superLayers.begin();
93 slCell != superLayers.end(); slCell++) {
98 vector<float> newConstants;
99 TString
N=(((((TString)
"TMax"+(
long) wireId.wheel()) +(
long) wireId.station())
100 +(
long) wireId.sector())+(
long) wireId.superLayer());
104 if(vDriftAndReso.front() == -1)
109 if(oldConstants != 0) {
110 newConstants.push_back((*oldConstants)[0]);
111 newConstants.push_back((*oldConstants)[1]);
112 newConstants.push_back((*oldConstants)[2]);
114 newConstants.push_back(-1);
115 newConstants.push_back(-1);
116 newConstants.push_back(-1);
118 for(
int ivd=0; ivd<=5;ivd++) {
121 newConstants.push_back(vDriftAndReso[ivd]);
123 calibValuesFile.addCell(calibValuesFile.getKey(wireId), newConstants);
131 cout <<
" SL: " << slId
132 <<
" vDrift = " << vDriftAndReso[0]
133 <<
" reso = " << vDriftAndReso[1] << endl;
DTMeanTimerFitter * theFitter
std::string theGranularity
int set(int wheelId, int stationId, int sectorId, int slId, float mTime, float mTrms, DTTimeUnits::type unit)
edm::ParameterSet theCalibFilePar
std::vector< float > evaluateVDriftAndReso(TString N)
Fit the TMax histos and evaluate VDrift and resolution.
std::vector< float > CalibConsts
std::string theVDriftOutputFile