29 namespace dtCalibration {
31 DTT0FEBPathCorrection::DTT0FEBPathCorrection(
const ParameterSet& pset):
32 calibChamber_( pset.getParameter<
string>(
"calibChamber") ) {
37 int selWheel, selStation, selSector;
39 linestr >> selWheel >> selStation >> selSector;
54 LogVerbatim(
"Calibration") <<
"[DTT0FEBPathCorrection] T0 version: " << t0H->version();
69 throw cms::Exception(
"[DTT0FEBPathCorrection]") <<
"Could not find t0 entry in DB for"
71 int wheel = chamberId.
wheel();
73 int sector = chamberId.
sector();
76 int wire = wireId.
wire();
78 float t0RMSNew = t0RMS;
90 throw cms::Exception(
"[DTT0FEBPathCorrection]") <<
"Could not find t0 entry in DB for"
146 if( (st==1 && ((sl!=2 && w ==49) || (sl==2 && w ==57))) ||
147 ((st==2||st==3)&& (sl==2 && w ==57)) )
return 0.;
188 if ((st==2 && sl!=2 && w>=49) ||
189 (st==4 && sec==10 && w>=49) ||
190 (st==4 && (sec==8||sec==12) && w>=81) ) pos =(w-1+4)%8;
196 return dist[pos]*0.075;
DTT0Data defaultT0(const DTWireId &)
DTChamberId chamberId() const
Return the corresponding ChamberId.
std::string calibChamber_
int layer() const
Return the layer number.
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
virtual void setES(const edm::EventSetup &setup)
int get(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float &t0mean, float &t0rms, DTTimeUnits::type unit) const
DTChamberId chosenChamberId_
float t0FEBPathCorrection(int wheel, int st, int sec, int sl, int l, int w)
virtual DTT0Data correction(const DTWireId &)
int wire() const
Return the wire number.
int superlayer() const
Return the superlayer number (deprecated method name)
virtual ~DTT0FEBPathCorrection()
DTLayerId layerId() const
Return the corresponding LayerId.
int station() const
Return the station number.
int wheel() const
Return the wheel number.
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")