|
ATLAS Offline Software
|
Go to the documentation of this file.
21 , std::string
const&
n
24 , m_caldbtool(
"TRT_CalDbTool", this) {
25 declareInterface<IInDetCosmicsEventPhaseTool>(
this);
46 return StatusCode::SUCCESS;
52 return StatusCode::SUCCESS;
66 double timeresidualsum = 0;
77 if (!trtcirc)
continue;
80 if (!rawhit)
continue;
97 double trkdrifttime = rtr->
drifttime(std::abs(trkdistance));
98 double timeresidual = rawdrifttime - t0 + avgT0->get() - trkdrifttime;
101 <<
" trkdrifttime=" << trkdrifttime
102 <<
" timeresidual=" << timeresidual
103 <<
" rawdrifttime=" << rawdrifttime);
106 && std::abs(trkdistance) < 2.8) {
107 timeresidualsum += timeresidual;
115 if (ntrthits > 1)
return timeresidualsum / ntrthits +
m_globalOffset;
123 double sum_goodhits = 0.;
127 int nhits =
segment->numberOfMeasurementBases();
128 for (
int i = 0;
i < nhits; ++
i) {
132 if (!trtcirc)
continue;
135 if (!rawhit)
continue;
145 double full_drifttime = rtr->drifttime(2.0);
147 sum_tr += rawhit->
trailingEdge() * 3.125 - full_drifttime;
151 <<
" fulldrifttime=" << full_drifttime);
160 if (sum_goodhits > 1)
return sum_tr / sum_goodhits +
m_globalOffset;
171 double timeresidualsum = 0;
181 if (!trtcirc)
continue;
184 if (!rawhit)
continue;
187 double rawtrailingedge = rawhit->
trailingEdge() * 3.125;
193 double timeresidual = rawtrailingedge - t0 + avgT0->get();
197 if (timeresidual < 2000) {
198 timeresidualsum += timeresidual;
203 if (ntrthits > 1)
return timeresidualsum / ntrthits +
m_globalOffset;
virtual const TRT_DriftCircle * prepRawData() const override final
returns the PrepRawData - is a TRT_DriftCircle in this scope
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
abstract base class for rt-relations
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
#define ATH_MSG_VERBOSE(x)
bool const RAWDATA *ch2 const
bool isNoise() const
returns true if the hit is caused by noise with a high probability.
virtual float drifttime(float radius) const =0
drifttime for given radius
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual bool type(MeasurementBaseType::Type type) const =0
Interface method checking the type.
int trailingEdge() const
returns the trailing edge bin
represents the track state (measurement, material, fit parameters and quality) at a surface.
bool lastBinHigh() const
returns true if the last bin is high
StatusCode initialize(bool used=true)
#define ATH_MSG_WARNING(x)
Identifier identify() const
return the identifier -extends MeasurementBase
bool driftTimeValid() const
return true if the corrected drift time is OK
double rawDriftTime() const
returns the raw driftTime
bool firstBinHigh() const
returns true if the first bin is high
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)