ATLAS Offline Software
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 
12 #include "Navigation/Navigable.h"
14 
15 namespace Analysis
16 {
18  public Navigable<Rec::TrackParticleContainer, double>
19  {
22  // typedef object_iter iterator;
23  typedef std::string NameType;
24 
25  public:
26  TrackAssociation() ;
28  ~TrackAssociation() = default;
29 
31 
33  std::vector<const Rec::TrackParticle*>* tracks() const;
34 
35  JetAssociationBase* clone() const;
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
Analysis::TrackAssociation::index_type
Navigable< Rec::TrackParticleContainer, double >::external_index_type index_type
Definition: TrackAssociation.h:20
Analysis::TrackAssociation::set_association
void set_association(const Rec::TrackParticleContainer *, const Rec::TrackParticle *, double weight=0.)
Definition: TrackAssociation.cxx:57
Analysis::TrackAssociation::~TrackAssociation
~TrackAssociation()=default
Analysis::TrackAssociation::tracks
std::vector< const Rec::TrackParticle * > * tracks() const
get a vector of trackparticles. user must delete the vector, but not constituents
Definition: TrackAssociation.cxx:86
JetAssociationBase.h
Analysis::TrackAssociation::nTracks
unsigned int nTracks() const
Definition: TrackAssociation.h:37
Analysis::TrackAssociation::clone
JetAssociationBase * clone() const
Definition: TrackAssociation.cxx:18
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
Analysis::TrackAssociation
Definition: TrackAssociation.h:19
Analysis::TrackAssociation::TrackAssociation
TrackAssociation()
constructor
Definition: TrackAssociation.cxx:12
JetAssociationBase
Definition: JetAssociationBase.h:21
Analysis::TrackAssociation::set_track
void set_track(const Rec::TrackParticleContainer *, const Rec::TrackParticle *, double weight=0.)
set method for tracks.
Definition: TrackAssociation.cxx:23
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Rec::TrackParticleContainer
Definition: Reconstruction/Particle/Particle/TrackParticleContainer.h:33
Analysis::TrackAssociation::iter_type
Navigable< Rec::TrackParticleContainer, double >::constituent_iter iter_type
Definition: TrackAssociation.h:21
Rec::TrackParticle
Definition: Reconstruction/Particle/Particle/TrackParticle.h:47
Analysis::TrackAssociation::getTrackWeight
double getTrackWeight(const Rec::TrackParticle *) const
Definition: TrackAssociation.cxx:69
Navigable
Navigable template generalization to handle navigation.
Definition: Navigable.h:93
Navigable.h
Navigable< Rec::TrackParticleContainer, double >::size
virtual unsigned int size() const
Analysis::TrackAssociation::iterator
Navigable< Rec::TrackParticleContainer, double >::object_iter iterator
Definition: TrackAssociation.h:30
Analysis::TrackAssociation::NameType
std::string NameType
Definition: TrackAssociation.h:23
JetAssociationBase::name
const name_t & name() const
Definition: JetAssociationBase.cxx:20
TrackParticleContainer.h
index_type
unsigned int index_type
Definition: FPGATrackSimSGToRawHitsTool.h:37