|
|
Go to the documentation of this file.
28 theVPropWire(
config.getParameter<double>(
"vPropWire")),
33 theTOFCorrType(
config.getParameter<
int>(
"tofCorrType")),
36 theWirePropCorrType(
config.getParameter<
int>(
"wirePropCorrType")),
38 theBXspace(
config.getUntrackedParameter<double>(
"bxSpace", 25.)),
39 thetTrigLabel(
config.getParameter<
string>(
"tTrigLabel")),
69 double& tofCorr)
const {
86 float wireCoord =
layer->toLocal(globPos).y();
93 float halfL =
layer->specificTopology().cellLenght() / 2;
94 float wireCoord =
layer->toLocal(globPos).y();
95 float propgL = halfL - wireCoord;
111 float flightToHit = globPos.
mag();
112 static const float cSpeed = 29.9792458;
122 tofCorr = (flightToSL - flightToHit) / cSpeed;
131 tofCorr = (flightToWire - flightToHit) / cSpeed;
136 <<
" Invalid parameter: tofCorrType = " <<
theTOFCorrType << std::endl;
143 cout <<
"[DTTTrigSyncFromDB] Channel: " << wireId << endl
144 <<
" Offset (ns): " <<
tTrig + wirePropCorr - tofCorr << endl
145 <<
" various contributions are: " << endl
146 <<
" tTrig + t0 (ns): " <<
tTrig
149 <<
" Propagation along wire delay (ns): " << wirePropCorr << endl
150 <<
" TOF correction (ns): " << tofCorr << endl
154 return tTrig + wirePropCorr - tofCorr;
167 float ttrigSigma = 0;
171 cout <<
"[DTTTrigSyncFromDB]*Error: ttrig not found for SL: " << wireId.
superlayerId() << endl;
175 return t0 + ttrigMean +
kFactor * ttrigSigma;
188 float ttrigSigma = 0;
192 cout <<
"[DTTTrigSyncFromDB]*Error: ttrig not found for SL: " << wireId.
superlayerId() << endl;
DTTTrigSyncFromDB(const edm::ParameterSet &config)
Constructor.
int wire() const
Return the wire number.
bool doWirePropCorrection
const std::string & version() const
access version
void setES(const edm::EventSetup &setup) override
Pass the Event Setup to the algo at each event.
~DTTTrigSyncFromDB() override
Destructor.
const std::string & version() const
access version
Point3DBase< Scalar, LocalTag > LocalPoint
const Plane & surface() const
The nominal surface of the GeomDet.
int get(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float &t0mean, float &t0rms, DTTimeUnits::type unit) const
int get(int wheelId, int stationId, int sectorId, int slId, float &tTrig, float &tTrms, float &kFact, DTTimeUnits::type unit) const
get content
constexpr std::array< uint8_t, layerIndexSize > layer
const PositionType & position() const
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
std::string thetTrigLabel
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
double emulatorOffset(const DTWireId &wireId, double &tTrig, double &t0cell) const override
double offset(const DTLayer *layer, const DTWireId &wireId, const GlobalPoint &globPos, double &tTrig, double &wirePropCorr, double &tofCorr) const override