27 namespace dtCalibration {
29 DTT0WireInChamberReferenceCorrection::DTT0WireInChamberReferenceCorrection(
const ParameterSet& pset):
30 calibChamber_( pset.getParameter<
string>(
"calibChamber") ) {
35 int selWheel, selStation, selSector;
37 linestr >> selWheel >> selStation >> selSector;
52 LogVerbatim(
"Calibration") <<
"[DTT0WireInChamberReferenceCorrection] T0 version: " << t0H->version();
70 throw cms::Exception(
"[DTT0WireInChamberReferenceCorrection]") <<
"Could not find t0 entry in DB for"
79 const DTTopology& dtTopoLayerRef1 =
dtGeom_->layer( layerRef1 )->specificTopology();
80 const int firstWireLayerRef1 = dtTopoLayerRef1.
firstChannel();
81 const int refWireLayerRef1 = firstWireLayerRef1;
82 DTWireId wireIdRefLayerRef1( layerRef1,refWireLayerRef1 );
84 float t0MeanRef1,t0RMSRef1;
89 float t0MeanNew = t0Mean - t0MeanRef1;
90 float t0RMSNew = t0RMS;
95 throw cms::Exception(
"[DTT0WireInChamberReferenceCorrection]") <<
"Could not find t0 entry in DB for"
96 << wireIdRefLayerRef1 << endl;
108 throw cms::Exception(
"[DTT0WireInChamberReferenceCorrection]") <<
"Could not find t0 entry in DB for"
DTT0Data defaultT0(const DTWireId &)
DTChamberId chamberId() const
Return the corresponding ChamberId.
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
int get(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float &t0mean, float &t0rms, DTTimeUnits::type unit) const
int firstChannel() const
Returns the wire number of the first wire.
virtual ~DTT0WireInChamberReferenceCorrection()
DTChamberId chosenChamberId_
edm::ESHandle< DTGeometry > dtGeom_
std::string calibChamber_
virtual DTT0Data correction(const DTWireId &)
DTLayerId layerId() const
Return the corresponding LayerId.
virtual void setES(const edm::EventSetup &setup)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")