ATLAS Offline Software
Loading...
Searching...
No Matches
TrackParticleTruthKey.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#ifndef PARTICLETRUTH_TRACKPARTICLETRUTHKEY_H
6#define PARTICLETRUTH_TRACKPARTICLETRUTHKEY_H
7
9#include "AthLinks/ElementLink.h"
10
11namespace Rec {
12
13 // This class identifies a track in TrackParticleTruthCollection.
14 // It uses less memory than ElementLink<TrackParticleContainer> because it does not carry a
15 // string-the TrackParticleContainer key. Instead this is a wrapper around
16 // a single integer - the index of the track in a TrackParticleContainer.
17 //
18 // taken from TrackTruthKey by andrei.gaponenko@cern.ch, 2007
19
21 public:
22 // Is it enough to use a 32 bit unsigned instead?
24
25 // Contructor from EL
27
28 // Reflex is clueless about handling types that do not have a default constructor
30
31 // Check whether ElementLink is valid or has been thinned away
32 bool isValid() const { return (m_EL.isValid()); }
33
34 // Return index of EL
35 size_type index() const { return (m_EL.index()); }
36
38
39
40 private:
42 };
43
45 return a.index() < b.index();
46 }
47
48}
49
50#endif /* PARTICLETRUTH_TRACKPARTICLETRUTHKEY_H */
static Double_t a
typename DataVectorBase< TrackParticle >::Base::size_type size_type
Definition DataVector.h:814
const ElementLink< TrackParticleContainer > & link() const
ElementLink< TrackParticleContainer > m_EL
TrackParticleTruthKey(const ElementLink< TrackParticleContainer > &el)
TrackParticleContainer::size_type size_type
Gaudi Tools.
bool operator<(const TrackParticleTruthKey &a, const TrackParticleTruthKey &b)