ATLAS Offline Software
Loading...
Searching...
No Matches
Simulation
ISF
ISF_FastCaloSim
ISF_FastCaloSimParametrization
src
FastCaloSimCaloTransportation.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef FastCaloSimCaloTransportation_H
6
#define FastCaloSimCaloTransportation_H
7
8
#include "
CxxUtils/CachedPointer.h
"
9
// ISF includes
10
#include "
ISF_FastCaloSimParametrization/IFastCaloSimCaloTransportation.h
"
11
#include "
ISF_FastCaloSimEvent/TFCSExtrapolationState.h
"
12
// ATLAS tracking tools includes
13
#include "
TrkExInterfaces/ITimedExtrapolator.h
"
14
#include "
TrkEventPrimitives/PdgToParticleHypothesis.h
"
15
16
class
ITimedExtrapolator;
17
class
TFCSTruthState
;
18
class
G4FieldTrack;
19
20
class
FastCaloSimCaloTransportation
:
public
extends<AthAlgTool, IFastCaloSimCaloTransportation>
21
{
22
23
public
:
24
25
FastCaloSimCaloTransportation
(
const
std::string& t,
const
std::string& n,
const
IInterface* p);
26
~FastCaloSimCaloTransportation
() =
default
;
27
28
virtual
StatusCode
initialize
() override final;
29
virtual StatusCode
finalize
() override final;
30
31
virtual
std
::
vector
<G4FieldTrack>
transport
(
const
TFCSTruthState
* truth,
bool
forceNeutral = false)
const
override final;
32
33
protected
:
34
35
// Converts a vector of Trk::HitInfo elements to a vector of G4FieldTrack
36
std
::
vector
<G4FieldTrack>
convertToFieldTrack
(
const
std
::
vector
<
Trk
::HitInfo>&
vec
)
const
;
37
// Main extrapolation tool for transporting particles in magnetic field through calorimter system using ATLAS tracking tool
38
PublicToolHandle<
Trk
::ITimedExtrapolator>
m_extrapolator
{
this
,
"Extrapolator"
,
"TimedExtrapolator"
};
39
// Calo entrance and particle hypothesis for transportation
40
CxxUtils::CachedPointer<const Trk::TrackingVolume>
m_caloEntrance
;
41
StringProperty
m_caloEntranceName
{
this
,
"CaloEntrance"
,
""
};
42
Trk::PdgToParticleHypothesis
m_pdgToParticleHypothesis
;
43
};
44
45
#endif
// FastCaloSimCaloTransportation_H
CachedPointer.h
Cached pointer with atomic update.
vec
std::vector< size_t > vec
Definition
CombinationsGeneratorTest.cxx:9
protected
#define protected
Definition
GenEventCnv_p1.h:26
IFastCaloSimCaloTransportation.h
ITimedExtrapolator.h
PdgToParticleHypothesis.h
TFCSExtrapolationState.h
FastCaloSimCaloTransportation::transport
virtual std::vector< G4FieldTrack > transport(const TFCSTruthState *truth, bool forceNeutral=false) const override final
Definition
FastCaloSimCaloTransportation.cxx:59
FastCaloSimCaloTransportation::m_pdgToParticleHypothesis
Trk::PdgToParticleHypothesis m_pdgToParticleHypothesis
Definition
FastCaloSimCaloTransportation.h:42
FastCaloSimCaloTransportation::m_caloEntranceName
StringProperty m_caloEntranceName
Definition
FastCaloSimCaloTransportation.h:41
FastCaloSimCaloTransportation::initialize
virtual StatusCode initialize() override final
Definition
FastCaloSimCaloTransportation.cxx:38
FastCaloSimCaloTransportation::m_caloEntrance
CxxUtils::CachedPointer< const Trk::TrackingVolume > m_caloEntrance
Definition
FastCaloSimCaloTransportation.h:40
FastCaloSimCaloTransportation::FastCaloSimCaloTransportation
FastCaloSimCaloTransportation(const std::string &t, const std::string &n, const IInterface *p)
Definition
FastCaloSimCaloTransportation.cxx:32
FastCaloSimCaloTransportation::finalize
virtual StatusCode finalize() override final
Definition
FastCaloSimCaloTransportation.cxx:53
FastCaloSimCaloTransportation::m_extrapolator
PublicToolHandle< Trk::ITimedExtrapolator > m_extrapolator
Definition
FastCaloSimCaloTransportation.h:38
FastCaloSimCaloTransportation::convertToFieldTrack
std::vector< G4FieldTrack > convertToFieldTrack(const std::vector< Trk::HitInfo > &vec) const
Definition
FastCaloSimCaloTransportation.cxx:210
FastCaloSimCaloTransportation::~FastCaloSimCaloTransportation
~FastCaloSimCaloTransportation()=default
TFCSTruthState
Definition
TFCSTruthState.h:13
Trk::PdgToParticleHypothesis
small converter from the (abs) PDG code to the particle hypothsis used in Tracking
Definition
PdgToParticleHypothesis.h:29
vector
Definition
MultiHisto.h:13
const
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
std
STL namespace.
CxxUtils::CachedPointer
Cached pointer with atomic update.
Definition
CachedPointer.h:57
Generated on
for ATLAS Offline Software by
1.14.0