ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkVertexFitter
TrkVertexSeedFinderTools
TrkVertexSeedFinderTools
MCTrueSeedFinder.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRKVERTEXSEEDFINDERTOOLS_MCTRUESEEDFINDER_H
6
#define TRKVERTEXSEEDFINDERTOOLS_MCTRUESEEDFINDER_H
7
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "
TrkVertexFitterInterfaces/IVertexSeedFinder.h
"
10
#include "
xAODEventInfo/EventInfo.h
"
11
#include "
GeneratorObjects/McEventCollection.h
"
12
13
14
#include "
AtlasHepMC/GenParticle_fwd.h
"
15
#include "
AtlasHepMC/GenEvent_fwd.h
"
16
17
namespace
Trk
18
{
19
// @author N. Giacinto Piacquadio (Albert-Ludwigs-Universitaet Freiburg - Germany)
20
//
21
// @ATLAS software
22
//
23
// This class implements a dummy seed finder
24
//
25
// -----------------------------------------
26
// Changes:
27
//
28
// David Shope <david.richard.shope@cern.ch> (2016-04-19)
29
//
30
// EDM Migration to xAOD - from Trk::VxCandidate to xAOD::Vertex,
31
// from Trk::RecVertex to xAOD::Vertex,
32
// from Trk::Vertex to Amg::Vector3D
33
34
class
MCTrueSeedFinder
final:
public
extends<AthAlgTool, IVertexSeedFinder>
35
{
36
public
:
37
// Standard Gaudi constructor.
38
MCTrueSeedFinder
(
const
std::string& t,
39
const
std::string& n,
40
const
IInterface* p);
41
42
43
virtual
~MCTrueSeedFinder
();
44
45
46
virtual
StatusCode
initialize
()
override
;
47
48
49
using
IVertexSeedFinder::findSeed
;
50
51
57
virtual
Amg::Vector3D
58
findSeed
(
const
std::vector<const Trk::Track*> & vectorTrk,
59
const
xAOD::Vertex
* constraint=0)
const
override final;
60
61
67
virtual
Amg
::
Vector3D
68
findSeed
(
const
std
::
vector
<
const
Trk
::
TrackParameters
*> & perigeeList,
69
const
xAOD
::
Vertex
* constraint=0)
const
override final;
70
71
77
virtual
std
::
vector
<
Amg
::
Vector3D
>
78
findMultiSeeds
(
const
std
::
vector
<
const
Trk
::
Track
*>& vectorTrk,
79
const
xAOD
::
Vertex
* constraint=0)
const
override final;
80
81
88
virtual
std
::
vector
<
Amg
::
Vector3D
>
89
findMultiSeeds
(
const
std
::
vector
<
const
Trk
::
TrackParameters
*>& perigeeList,
90
const
xAOD
::
Vertex
* constraint=0)
const
override final;
91
92
93
private
:
94
SG
::ReadHandleKey<
McEventCollection
>
m_mcEventCollectionKey
{
95
this
,
96
"McTruthCollection"
,
97
"G4Truth"
,
98
"MC Event Collection Name"
99
};
100
101
//Implement directly pass methods from GenObjectsFilterTool until better sol'n is found
102
bool
m_removeInTimePileUp
;
103
bool
m_removeHardScattering
;
104
106
bool
pass
(
const
HepMC::GenEvent
* evt,
107
const
McEventCollection
* coll = 0 )
const
;
109
bool
pass
(
const
HepMC::ConstGenParticlePtr
& part,
110
const
McEventCollection
* coll = 0 )
const
;
111
112
StatusCode
retrieveInteractionsInfo
(std::vector<Amg::Vector3D>& interactions)
const
;
113
};
114
}
115
#endif
AthAlgTool.h
GenEvent_fwd.h
GenParticle_fwd.h
IVertexSeedFinder.h
McEventCollection.h
Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:48
McEventCollection
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...
Definition
McEventCollection.h:31
Trk::IVertexSeedFinder::findSeed
virtual Amg::Vector3D findSeed(const std::vector< const Trk::Track * > &vectorTrk, const xAOD::Vertex *constraint=0) const =0
Finds a linearization point out of a vector of tracks and returns it as an Amg::Vector3D object.
Trk::MCTrueSeedFinder::m_removeHardScattering
bool m_removeHardScattering
Flag to consider hard-scattering interaction.
Definition
MCTrueSeedFinder.h:103
Trk::MCTrueSeedFinder::MCTrueSeedFinder
MCTrueSeedFinder(const std::string &t, const std::string &n, const IInterface *p)
Definition
MCTrueSeedFinder.cxx:44
Trk::MCTrueSeedFinder::retrieveInteractionsInfo
StatusCode retrieveInteractionsInfo(std::vector< Amg::Vector3D > &interactions) const
Definition
MCTrueSeedFinder.cxx:111
Trk::MCTrueSeedFinder::pass
bool pass(const HepMC::GenEvent *evt, const McEventCollection *coll=0) const
Function selecting GenEvent objects.
Definition
MCTrueSeedFinder.cxx:167
Trk::MCTrueSeedFinder::~MCTrueSeedFinder
virtual ~MCTrueSeedFinder()
Trk::MCTrueSeedFinder::findMultiSeeds
virtual std::vector< Amg::Vector3D > findMultiSeeds(const std::vector< const Trk::Track * > &vectorTrk, const xAOD::Vertex *constraint=0) const override final
Finds full vector of linearization points from a vector of tracks and returns it as an Amg::Vector3D ...
Definition
MCTrueSeedFinder.cxx:100
Trk::MCTrueSeedFinder::m_removeInTimePileUp
bool m_removeInTimePileUp
Flag to consider in-time pile-up interactions.
Definition
MCTrueSeedFinder.h:102
Trk::MCTrueSeedFinder::m_mcEventCollectionKey
SG::ReadHandleKey< McEventCollection > m_mcEventCollectionKey
Definition
MCTrueSeedFinder.h:94
Trk::MCTrueSeedFinder::initialize
virtual StatusCode initialize() override
Definition
MCTrueSeedFinder.cxx:58
Trk::MCTrueSeedFinder::findSeed
virtual Amg::Vector3D findSeed(const std::vector< const Trk::Track * > &vectorTrk, const xAOD::Vertex *constraint=0) const override final
Finds a linearization point out of a vector of tracks and returns it as an Amg::Vector3D object.
Definition
MCTrueSeedFinder.cxx:66
Trk::Vertex
This class is a simplest representation of a vertex candidate.
Definition
Tracking/TrkEvent/VxVertex/VxVertex/Vertex.h:26
vector
Definition
MultiHisto.h:13
const
Amg
Definition of ATLAS Math & Geometry primitives (Amg).
Definition
AmgStringHelpers.h:19
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:48
HepMC::ConstGenParticlePtr
HepMC3::ConstGenParticlePtr ConstGenParticlePtr
Definition
GenParticle.h:20
HepMC::GenEvent
HepMC3::GenEvent GenEvent
Definition
GenEvent.h:39
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
Track
Definition
TriggerChamberClusterOnTrackCreator.h:19
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Trk::TrackParameters
ParametersBase< TrackParametersDim, Charged > TrackParameters
Definition
Tracking/TrkEvent/TrkParameters/TrkParameters/TrackParameters.h:27
std
STL namespace.
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition
Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
private
#define private
Definition
testRead.cxx:27
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0