ATLAS Offline Software
Loading...
Searching...
No Matches
TrackAssociation.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 ANALYSIS_TRACKASSOCIATION_H
6#define ANALYSIS_TRACKASSOCIATION_H
7
8#include<vector>
9#include<string>
10
14
15namespace Analysis
16{
18 public Navigable<Rec::TrackParticleContainer, double>
19 {
22 // typedef object_iter iterator;
23 typedef std::string NameType;
24
25 public:
28 ~TrackAssociation() = default;
29
31
33 std::vector<const Rec::TrackParticle*>* tracks() const;
34
36
37 unsigned int nTracks() const { return size() ; }
38
39 double getTrackWeight(const Rec::TrackParticle* ) const;
40
41 double getTrackWeight(const Rec::TrackParticleContainer*, const index_type& ) const;
42
44 // Set Methods
46
47
51 const Rec::TrackParticle*,
52 double weight=0.);
53
57 const index_type&,
58 double weight=0.);
59
60 //compromise for above... use concrete container, but common name for templated methods
62 const Rec::TrackParticle*,
63 double weight=0.);
65 const index_type&,
66 double weight=0.);
67
68 };
69}
70
71#endif
unsigned int index_type
Navigable< Rec::TrackParticleContainer, double >::object_iter iterator
void set_association(const Rec::TrackParticleContainer *, const Rec::TrackParticle *, double weight=0.)
void set_track(const Rec::TrackParticleContainer *, const Rec::TrackParticle *, double weight=0.)
set method for tracks.
unsigned int nTracks() const
Navigable< Rec::TrackParticleContainer, double >::external_index_type index_type
Navigable< Rec::TrackParticleContainer, double >::constituent_iter iter_type
JetAssociationBase * clone() const
double getTrackWeight(const Rec::TrackParticle *) const
std::vector< const Rec::TrackParticle * > * tracks() const
get a vector of trackparticles. user must delete the vector, but not constituents
const name_t & name() const
NavigableIterator< CONT, RPAR, COLL > object_iter
Definition Navigable.h:159
constituent_coll::iterator constituent_iter
Definition Navigable.h:102
SG::GenerateIndexingPolicy< CONT >::type::index_type external_index_type
Definition Navigable.h:156
The namespace of all packages in PhysicsAnalysis/JetTagging.