ATLAS Offline Software
Loading...
Searching...
No Matches
SVTrackInfo.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef JETTAGINFO_SVTRACKINFO
6#define JETTAGINFO_SVTRACKINFO
7
8#include "AthLinks/ElementLink.h"
11#include <iostream>
12
13class MsgStream;
14
15namespace Analysis {
16
18 public:
19 inline SVTrackInfo();
20 inline SVTrackInfo(const Rec::TrackParticleContainer* coll,
21 const Rec::TrackParticle* trk);
23 inline const Rec::TrackParticle* track() const;
25 private:
27 };
28
29 SVTrackInfo::SVTrackInfo() : m_track(ElementLink<Rec::TrackParticleContainer>()) {}
30
32 const Rec::TrackParticle* trk) {
34 if( link.toContainedElement(*coll, const_cast<Rec::TrackParticle*>(trk)) ) {
35 m_track = link;
36 }
37 }
38
43
45 if( m_track.isValid() ) {
46 return *(m_track);
47 } else {
48 return 0;
49 }
50 }
51
56
57}
58#endif // JETTAGINFO_SVTRACKINFO
const Rec::TrackParticle * track() const
Definition SVTrackInfo.h:44
ElementLink< Rec::TrackParticleContainer > m_track
Definition SVTrackInfo.h:26
const ElementLink< Rec::TrackParticleContainer > & trackLink() const
Definition SVTrackInfo.h:52
The namespace of all packages in PhysicsAnalysis/JetTagging.
Gaudi Tools.