ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
ISF
ISF_Fatras
ISF_FatrasToolsID
src
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
9
#include "
ISF_FatrasInterfaces/IHitCreator.h
"
10
// Gaudi
11
#include "
AthenaBaseComps/AthAlgTool.h
"
12
#include "
AthenaKernel/IAtRndmGenSvc.h
"
13
#include "GaudiKernel/RndmGenerators.h"
14
#include "GaudiKernel/ServiceHandle.h"
15
#include "GaudiKernel/ToolHandle.h"
16
#include "GaudiKernel/IIncidentListener.h"
17
#include "
CxxUtils/checker_macros.h
"
18
// Trk
19
#include "
TrkParameters/TrackParameters.h
"
20
// CLHEP
21
#include "CLHEP/Random/RandomEngine.h"
22
// Identifier
23
#include "Identifier/Identifier.h"
24
// InDetSimEvent
25
#include "
InDetSimEvent/TRTUncompressedHitCollection.h
"
26
#include "
TRT_ConditionsServices/ITRT_StrawStatusSummaryTool.h
"
27
28
class
TRT_ID
;
29
30
namespace
ISF
{
31
class
ISFParticle
;
32
}
33
34
namespace
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 */
75
TRTUncompressedHitCollection
*
m_hitColl
{};
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
AthAlgTool.h
IAtRndmGenSvc.h
IHitCreator.h
ParametersROT
std::pair< const Trk::TrackParameters *, const Trk::RIO_OnTrack * > ParametersROT
Definition
IHitCreator.h:30
ParametersLayer
std::pair< const Trk::TrackParameters *, const Trk::Layer * > ParametersLayer
Definition
IHitCreator.h:31
ITRT_StrawStatusSummaryTool.h
abstract interface to TRT straw status constants
TRTUncompressedHitCollection.h
TRTUncompressedHitCollection
AtlasHitsVector< TRTUncompressedHit > TRTUncompressedHitCollection
Definition
TRTUncompressedHitCollection.h:16
TrackParameters.h
checker_macros.h
Define macros for attributes used to control the static checker.
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
ISF::ISFParticle
The generic ISF particle definition,.
Definition
ISFParticle.h:42
ServiceHandle
Definition
ClusterMakerTool.h:36
TRT_ID
This is an Identifier helper class for the TRT subdetector.
Definition
TRT_ID.h:84
iFatras::HitCreatorTRT::handle
void handle(const Incident &inc)
handle for incident service
Definition
HitCreatorTRT.cxx:72
iFatras::HitCreatorTRT::m_hitColl
TRTUncompressedHitCollection * m_hitColl
the sim hit collection
Definition
HitCreatorTRT.h:75
iFatras::HitCreatorTRT::m_incidentSvc
ServiceHandle< IIncidentSvc > m_incidentSvc
Definition
HitCreatorTRT.h:72
iFatras::HitCreatorTRT::m_trtIdHelper
const TRT_ID * m_trtIdHelper
TRT ID helper.
Definition
HitCreatorTRT.h:84
iFatras::HitCreatorTRT::m_randomSvc
ServiceHandle< IAtRndmGenSvc > m_randomSvc
Pointer to the random number generator service.
Definition
HitCreatorTRT.h:79
iFatras::HitCreatorTRT::m_collectionName
StringProperty m_collectionName
name of the collection on storegate
Definition
HitCreatorTRT.h:76
iFatras::HitCreatorTRT::m_trtStatusSummaryTool
ToolHandle< ITRT_StrawStatusSummaryTool > m_trtStatusSummaryTool
Handle to TRT conditions service.
Definition
HitCreatorTRT.h:86
iFatras::HitCreatorTRT::m_randomEngine
CLHEP::HepRandomEngine * m_randomEngine
Random Engine.
Definition
HitCreatorTRT.h:81
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
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
iFatras::HitCreatorTRT::m_trtIdHelperName
StringProperty m_trtIdHelperName
where to find the SCT helper
Definition
HitCreatorTRT.h:83
iFatras::HitCreatorTRT::m_randomEngineName
StringProperty m_randomEngineName
Name of the random number stream.
Definition
HitCreatorTRT.h:80
iFatras::HitCreatorTRT::~HitCreatorTRT
virtual ~HitCreatorTRT()=default
Destructor.
iFatras::HitCreatorTRT::HitCreatorTRT
HitCreatorTRT(const std::string &, const std::string &, const IInterface *)
Constructor.
Definition
HitCreatorTRT.cxx:36
iFatras::HitCreatorTRT::createSimHit
void createSimHit(const ISF::ISFParticle &isp, const Trk::TrackParameters &, double) const
Record the hit.
Definition
HitCreatorTRT.cxx:92
iFatras::HitCreatorTRT::m_useConditionsSvc
bool m_useConditionsSvc
Definition
HitCreatorTRT.h:87
ISF
ISFParticleOrderedQueue.
Definition
PrimaryParticleInformation.h:13
Trk::TrackParameters
ParametersBase< TrackParametersDim, Charged > TrackParameters
Definition
Tracking/TrkEvent/TrkParameters/TrkParameters/TrackParameters.h:27
iFatras
Definition
ActsFatrasSimTool.h:63
initialize
void initialize()
Definition
run_EoverP.cxx:894
Generated on
for ATLAS Offline Software by
1.17.0