26 , std::string
const& n
30 declareInterface<IInDetCosmicsEventPhaseTool>(
this);
51 return StatusCode::SUCCESS;
58 return StatusCode::SUCCESS;
77 double timeresidualsum = 0;
79 double windowCenter = 0;
89 if (!trtcirc)
continue;
91 if (!rawhit)
continue;
103 if (!tparp)
continue;
105 double trkdrifttime = rtr->
drifttime(std::abs(trkdistance));
106 double timeresidual = rawdrifttime -
t0 + aT0 - trkdrifttime;
108 <<
" trkdrifttime=" << trkdrifttime
109 <<
" timeresidual=" << timeresidual
110 <<
" rawdrifttime=" << rawdrifttime);
111 if (timeresidual < 2000
112 && std::abs(trkdistance) < 2.8) {
114 || std::abs(timeresidual - windowCenter) <
m_windowSize) {
115 timeresidualsum += timeresidual;
121 windowCenter = timeresidualsum / ntrthits;
136 double sum_goodhits = 0.;
139 std::vector<double>
data{0., 0.1, -0.00087,0.};
142 for (
int i = 0; i < nhits; ++i) {
145 if (!trtcirc)
continue;
147 if (!rawhit)
continue;
155 double full_drifttime = rtr->drifttime(2.0);
156 sum_tr += rawhit->
trailingEdge() * 3.125 - full_drifttime;
159 <<
" fulldrifttime=" << full_drifttime);
165 if (sum_goodhits > 1)
return sum_tr / sum_goodhits +
m_globalOffset;
182 double timeresidualsum = 0;
190 if (!trtcirc)
continue;
192 if (!rawhit)
continue;
194 double rawtrailingedge = rawhit->
trailingEdge() * 3.125;
197 double timeresidual = rawtrailingedge -
t0 + aT0;
199 if (timeresidual < 2000) {
200 timeresidualsum += timeresidual;
204 if (ntrthits > 1)
return timeresidualsum / ntrthits +
m_globalOffset;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
char data[hepevt_bytes_allocation_ATLAS]
abstract base class for rt-relations
This is an Identifier helper class for the TRT subdetector.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Represents 'corrected' measurements from the TRT (for example, corrected for wire sag).
virtual const TRT_DriftCircle * prepRawData() const override final
returns the PrepRawData - is a TRT_DriftCircle in this scope
bool driftTimeValid() const
return true if the corrected drift time is OK
bool isNoise() const
returns true if the hit is caused by noise with a high probability.
bool lastBinHigh() const
returns true if the last bin is high
bool firstBinHigh() const
returns true if the first bin is high
double rawDriftTime() const
returns the raw driftTime
int trailingEdge() const
returns the trailing edge bin
Base class for rt-relations in the TRT.
virtual float drifttime(float radius) const =0
drifttime for given radius
This class is the pure abstract base class for all fittable tracking measurements.
virtual bool type(MeasurementBaseType::Type type) const =0
Interface method checking the type.
Class to handle RIO On Tracks ROT) for InDet and Muons, it inherits from the common MeasurementBase.
Identifier identify() const
return the identifier -extends MeasurementBase
Base class for all TrackSegment implementations, extends the common MeasurementBase.
const MeasurementBase * measurement(unsigned int) const
returns the Trk::MeasurementBase objects depending on the integer
unsigned int numberOfMeasurementBases() const
Return the number of contained Trk::MeasurementBase (s)
represents the track state (measurement, material, fit parameters and quality) at a surface.
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
ParametersBase< TrackParametersDim, Charged > TrackParameters