ATLAS Offline Software
Loading...
Searching...
No Matches
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
28class TRT_ID;
29
30namespace ISF {
31 class ISFParticle;
32}
33
34namespace iFatras {
35
43
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
55 StatusCode initialize();
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"};
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
std::pair< const Trk::TrackParameters *, const Trk::RIO_OnTrack * > ParametersROT
Definition IHitCreator.h:30
std::pair< const Trk::TrackParameters *, const Trk::Layer * > ParametersLayer
Definition IHitCreator.h:31
abstract interface to TRT straw status constants
AtlasHitsVector< TRTUncompressedHit > TRTUncompressedHitCollection
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
The generic ISF particle definition,.
Definition ISFParticle.h:42
This is an Identifier helper class for the TRT subdetector.
Definition TRT_ID.h:82
void handle(const Incident &inc)
handle for incident service
TRTUncompressedHitCollection * m_hitColl
the sim hit collection
ServiceHandle< IIncidentSvc > m_incidentSvc
const TRT_ID * m_trtIdHelper
TRT ID helper.
ServiceHandle< IAtRndmGenSvc > m_randomSvc
Pointer to the random number generator service.
StringProperty m_collectionName
name of the collection on storegate
ToolHandle< ITRT_StrawStatusSummaryTool > m_trtStatusSummaryTool
Handle to TRT conditions service.
CLHEP::HepRandomEngine * m_randomEngine
Random Engine.
const std::vector< ParametersROT > * createHits(const ISF::ISFParticle &, const ParametersLayer &) const
Return the cluster on Track – the PrepRawData is contained in this one.
const ParametersROT * createHit(const ISF::ISFParticle &, const Trk::TrackParameters &) const
Return the cluster on Track – the PrepRawData is contained in this one.
StringProperty m_trtIdHelperName
where to find the SCT helper
StringProperty m_randomEngineName
Name of the random number stream.
virtual ~HitCreatorTRT()=default
Destructor.
HitCreatorTRT(const std::string &, const std::string &, const IInterface *)
Constructor.
void createSimHit(const ISF::ISFParticle &isp, const Trk::TrackParameters &, double) const
Record the hit.
ISFParticleOrderedQueue.
ParametersBase< TrackParametersDim, Charged > TrackParameters
void initialize()