ATLAS Offline Software
SelectedTracksInJet.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /***************************************************************************
6  SelectedTracksInJet.h - Description
7  -------------------
8 
9  created: January 2008
10  authors: Giacinto Piacquadio (University of Freiburg),
11  Christian Weiser (University of Freiburg)
12  e-mail: giacinto.piacquadio@physik.uni-freiburg.de
13  changes:
14 
15  (c) ATLAS Collaboration 2008
16 
17  This class is intended to store
18  in different vectors the secondary and primary tracks, according to a first
19  selection done by the JetFitter.
20 
21  Why is this class needed? Later on, to calculate the energy coming from tracks from
22  the primary vertex you need to know also which are the tracks that you didn't use in the
23  real fit. The secondaries are intended more for book keeping or to be used later
24  in an IP Tagger.
25 
26 
27  ***************************************************************************/
28 
29 #ifndef VXJETVERTEX_SelectedTracksInJet_H
30 #define VXJETVERTEX_SelectedTracksInJet_H
31 
32 #include <vector>
33 
35 
36 namespace Trk
37 {
38 
39  class SelectedTracksInJet
40  {
41  public:
42 
43 
49 
50 
55 
59  SelectedTracksInJet(std::vector<const ITrackLink*> & primaryTrackLinks,
60  std::vector<const ITrackLink*> & secondaryTrackLinks);
61 
67 
71  void setPrimaryTrackLinks(std::vector<const ITrackLink*> & primaryTrackLinks);
72 
73 
77  void setSecondaryTrackLinks(std::vector<const ITrackLink*> & secondaryTracLinks);
78 
82  const std::vector<const ITrackLink*> & getPrimaryTrackLinks() const ;
83 
84 
88  const std::vector<const ITrackLink*> & getSecondaryTrackLinks() const ;
89 
90  private:
91  std::vector<const ITrackLink*> m_primaryTrackLinks;
92  std::vector<const ITrackLink*> m_secondaryTrackLinks;
93  };
94 
95 }//end namespace
96 
97 #endif
Trk::SelectedTracksInJet
Definition: SelectedTracksInJet.h:62
Trk::SelectedTracksInJet::setPrimaryTrackLinks
void setPrimaryTrackLinks(std::vector< const ITrackLink * > &primaryTrackLinks)
Set the primary tracks (takes ownership of pointers)
Definition: SelectedTracksInJet.cxx:135
Trk::SelectedTracksInJet::getSecondaryTrackLinks
const std::vector< const ITrackLink * > & getSecondaryTrackLinks() const
Get the secondary tracks (please do not delete the pointers)
Definition: SelectedTracksInJet.cxx:172
Trk::SelectedTracksInJet::SelectedTracksInJet
SelectedTracksInJet()
Default constructor, if called initializes a VxVertexOnJetAxis with all data members set to 0.
Trk::SelectedTracksInJet::getPrimaryTrackLinks
const std::vector< const ITrackLink * > & getPrimaryTrackLinks() const
Get the priamry tracks (please do not delete the pointers)
Definition: SelectedTracksInJet.cxx:167
Trk::SelectedTracksInJet::m_secondaryTrackLinks
std::vector< const ITrackLink * > m_secondaryTrackLinks
Definition: SelectedTracksInJet.h:136
Trk::SelectedTracksInJet::setSecondaryTrackLinks
void setSecondaryTrackLinks(std::vector< const ITrackLink * > &secondaryTracLinks)
Set the secondary tracks (takes ownership of pointers)
Definition: SelectedTracksInJet.cxx:151
Trk::SelectedTracksInJet::~SelectedTracksInJet
~SelectedTracksInJet()
Destructor.
Definition: SelectedTracksInJet.cxx:42
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::SelectedTracksInJet::m_primaryTrackLinks
std::vector< const ITrackLink * > m_primaryTrackLinks
Definition: SelectedTracksInJet.h:135
Trk::SelectedTracksInJet::operator=
SelectedTracksInJet & operator=(const SelectedTracksInJet &)
Definition: SelectedTracksInJet.cxx:105