28 DTT0WireInChamberReferenceCorrection::DTT0WireInChamberReferenceCorrection(
const ParameterSet&
pset):
29 calibChamber_( pset.getParameter<
string>(
"calibChamber") ) {
34 int selWheel, selStation, selSector;
36 linestr >> selWheel >> selStation >> selSector;
51 LogVerbatim(
"Calibration") <<
"[DTT0WireInChamberReferenceCorrection] T0 version: " << t0H->
version();
69 throw cms::Exception(
"[DTT0WireInChamberReferenceCorrection]") <<
"Could not find t0 entry in DB for" 79 const int firstWireLayerRef1 = dtTopoLayerRef1.
firstChannel();
80 const int refWireLayerRef1 = firstWireLayerRef1;
81 DTWireId wireIdRefLayerRef1( layerRef1,refWireLayerRef1 );
83 float t0MeanRef1,t0RMSRef1;
88 float t0MeanNew = t0Mean - t0MeanRef1;
89 float t0RMSNew = t0RMS;
94 throw cms::Exception(
"[DTT0WireInChamberReferenceCorrection]") <<
"Could not find t0 entry in DB for" 95 << wireIdRefLayerRef1 << endl;
107 throw cms::Exception(
"[DTT0WireInChamberReferenceCorrection]") <<
"Could not find t0 entry in DB for"
DTT0Data defaultT0(const DTWireId &)
DTT0Data correction(const DTWireId &) override
DTChamberId chamberId() const
Return the corresponding ChamberId.
def setup(process, global_tag, zero_tesla=False)
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.
~DTT0WireInChamberReferenceCorrection() override
const DTTopology & specificTopology() const
DTChamberId chosenChamberId_
edm::ESHandle< DTGeometry > dtGeom_
std::string calibChamber_
DTLayerId layerId() const
Return the corresponding LayerId.
const std::string & version() const
access version
const DTLayer * layer(const DTLayerId &id) const
Return a layer given its id.
void setES(const edm::EventSetup &setup) override