|
ATLAS Offline Software
|
Go to the documentation of this file.
13 #include "GaudiKernel/TypeNameString.h"
30 m_caldbtool(
"TRT_CalDbTool", this),
42 ATH_MSG_FATAL(
"Failed to retrieve TRT Calibration DB Service!");
52 return StatusCode::SUCCESS;
65 const TRT_ID* TRTHelper =
nullptr;
68 msg(MSG::ERROR) <<
"Unable to retrieve TRT ID Helper." <<
endmsg;
72 std::vector<double> EPforTracksWithBarrelHits;
76 if (MyTrackCollection.
isValid()) {
80 for (; trackIt != trackEnd; ++trackIt) {
81 int nTRTbarrelHits = 0;
87 if (!trtcirc)
continue;
89 if (abs(TRTHelper->
barrel_ec(
id)) != 1)
continue;
93 if (nTRTbarrelHits >= 10) {
95 if (tmpEP != 0.) EPforTracksWithBarrelHits.push_back(tmpEP);
98 if (nTRTbarrelHits > maxTRT) {
99 maxTRT = nTRTbarrelHits;
114 if (EPforTracksWithBarrelHits.size()) {
115 for (
unsigned int i = 0;
i < EPforTracksWithBarrelHits.size();
i++)
m_phase += EPforTracksWithBarrelHits[
i];
124 sc = StatusCode::SUCCESS;
130 return StatusCode::SUCCESS;
138 return StatusCode::SUCCESS;
Const iterator class for DataVector/DataList.
const_pointer_type cptr()
Dereference the pointer.
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...
InDetCosmicsEventPhase(const std::string &name, ISvcLocator *pSvcLocator)
bool const RAWDATA *ch2 const
Property holding a SG store/key/clid from which a ReadHandle is made.
ToolHandle< InDet::IInDetCosmicsEventPhaseTool > m_eventPhaseTool
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
SG::ReadHandleKeyArray< TrackCollection > m_readKey_tracks
SG::WriteHandleKey< ComTime > m_writeKey_TRTPhase
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual bool type(MeasurementBaseType::Type type) const =0
Interface method checking the type.
ToolHandle< ITRT_CalDbTool > m_caldbtool
TRT Calibration DB tool.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual bool isValid() override final
Can the handle be successfully dereferenced?
represents the track state (measurement, material, fit parameters and quality) at a surface.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
Identifier identify() const
return the identifier -extends MeasurementBase
ToolHandle< Trk::ITrackSummaryTool > m_trackSumTool
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.