ATLAS Offline Software
HitCreatorTRT.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ISF_FATRASTOOLSID_HITCREATORTRT_H
6 #define ISF_FATRASTOOLSID_HITCREATORTRT_H
7 
8 // Fatras
10 // Gaudi
13 #include "GaudiKernel/RndmGenerators.h"
14 #include "GaudiKernel/ServiceHandle.h"
15 #include "GaudiKernel/ToolHandle.h"
16 #include "GaudiKernel/IIncidentListener.h"
18 // Trk
20 // CLHEP
21 #include "CLHEP/Random/RandomEngine.h"
22 // Identifier
23 #include "Identifier/Identifier.h"
24 // InDetSimEvent
27 
28 class TRT_ID;
29 
30 namespace ISF {
31  class ISFParticle;
32 }
33 
34 namespace iFatras {
35 
44  class ATLAS_NOT_THREAD_SAFE HitCreatorTRT : public extends<AthAlgTool, IHitCreator, IIncidentListener> // deprecated: ATLASSIM-6020
45  {
46  public:
47 
49  HitCreatorTRT(const std::string&,const std::string&,const IInterface*);
50 
52  virtual ~HitCreatorTRT() = default;
53 
56 
58  void handle(const Incident& inc);
59 
61  void createSimHit(const ISF::ISFParticle& isp, const Trk::TrackParameters& , double ) const;
62 
64  const ParametersROT* createHit(const ISF::ISFParticle&, const Trk::TrackParameters& ) const { return 0; };
65 
67  const std::vector< ParametersROT >* createHits(const ISF::ISFParticle&, const ParametersLayer& ) const { return 0; }
68 
69  private:
70 
71  /* Incident Service */
72  ServiceHandle<IIncidentSvc> m_incidentSvc{this, "IncidentService", "IncidentSvc"};
73 
74  /* SiHit collection and collection helper */
76  StringProperty m_collectionName{this, "CollectionName", "TRTUncompressedHits"};
77 
79  ServiceHandle<IAtRndmGenSvc> m_randomSvc{this, "RandomNumberService", "AtDSFMTGenSvc"};
80  StringProperty m_randomEngineName{this, "RandomStreamName", "FatrasRnd"};
81  CLHEP::HepRandomEngine *m_randomEngine{};
82 
83  StringProperty m_trtIdHelperName{this, "TRT_IdHelperName", "TRT_ID"};
84  const TRT_ID *m_trtIdHelper{};
85 
86  ToolHandle<ITRT_StrawStatusSummaryTool> m_trtStatusSummaryTool{this, "StrawStatusSummaryTool", "TRT_StrawStatusSummaryTool"};
87  bool m_useConditionsSvc{false};
88 
89 
90 
91  };
92 
93 } // end of namespace
94 
95 #endif
iFatras::HitCreatorTRT
Definition: HitCreatorTRT.h:45
TrackParameters.h
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition: checker_macros.h:212
initialize
void initialize()
Definition: run_EoverP.cxx:894
AtlasHitsVector
Definition: AtlasHitsVector.h:33
ISF::ISFParticle
Definition: ISFParticle.h:42
IHitCreator.h
ParametersLayer
std::pair< const Trk::TrackParameters *, const Trk::Layer * > ParametersLayer
Definition: IHitCreator.h:31
iFatras
Definition: ActsFatrasSimTool.h:55
ITRT_StrawStatusSummaryTool.h
abstract interface to TRT straw status constants
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
iFatras::HitCreatorTRT::~HitCreatorTRT
virtual ~HitCreatorTRT()=default
Destructor.
Trk::ParametersBase
Definition: ParametersBase.h:55
IAtRndmGenSvc.h
TRT_ID
Definition: TRT_ID.h:84
TRTUncompressedHitCollection.h
ParametersROT
std::pair< const Trk::TrackParameters *, const Trk::RIO_OnTrack * > ParametersROT
Definition: IHitCreator.h:30
ISF
ISFParticleOrderedQueue.
Definition: PrimaryParticleInformation.h:13
iFatras::HitCreatorTRT::createHits
const std::vector< ParametersROT > * createHits(const ISF::ISFParticle &, const ParametersLayer &) const
Return the cluster on Track – the PrepRawData is contained in this one.
Definition: HitCreatorTRT.h:67
checker_macros.h
Define macros for attributes used to control the static checker.
iFatras::HitCreatorTRT::createHit
const ParametersROT * createHit(const ISF::ISFParticle &, const Trk::TrackParameters &) const
Return the cluster on Track – the PrepRawData is contained in this one.
Definition: HitCreatorTRT.h:64
ServiceHandle< IIncidentSvc >