ATLAS Offline Software
JetINav4MomAssociation.h
Go to the documentation of this file.
1 // emacs this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef JETEVENT_JETINAVIGABLE4MOMENTUMASSOCIATION_H
8 #define JETEVENT_JETINAVIGABLE4MOMENTUMASSOCIATION_H
9 #include<vector>
19 #include<string>
20 
21 #include "Navigation/Navigable.h"
25 
26 
27 // string to identify the constituent
28 
29 typedef std::string NameType;
30 
32  public Navigable<INavigable4MomentumCollection, double>
33 {
34 
37 
38 
39 public:
43 
44  virtual JetAssociationBase* clone() const;
46 
47  const INavigable4Momentum* inav4momentum() const;
48 
49  // Set functions
50  void set_inav4momentum(const INavigable4MomentumCollection* theContainer,
51  const INavigable4Momentum* the_inav4momentum, double weight=1);
52 
53  void set_inav4momentum(const INavigable4MomentumCollection* theContainer,
54  index_type& theIndex, double weight=1);
55 
57  const INavigable4Momentum* the_inav4momentum, double weight=1)
58  {set_inav4momentum(theContainer, the_inav4momentum, weight);}
59 
61  index_type& theIndex, double weight=1)
62  {set_inav4momentum(theContainer, theIndex, weight);}
63 
64  double getinav4momentumWeight(const INavigable4Momentum* the_inav4momentum) const ;
65 
66  double getinav4momentumWeight(const INavigable4MomentumCollection* theContainer,
67  index_type& theIndex) const;
68 
69 } ;
70 
71 
72 
73 #endif
JetAssociationBase::NameType
name_t NameType
Definition: JetAssociationBase.h:29
JetINav4MomAssociation::~JetINav4MomAssociation
~JetINav4MomAssociation()=default
destructor
JetINav4MomAssociation::set_inav4momentum
void set_inav4momentum(const INavigable4MomentumCollection *theContainer, const INavigable4Momentum *the_inav4momentum, double weight=1)
Definition: JetINav4MomAssociation.cxx:32
INavigable4Momentum.h
JetINav4MomAssociation::set_association
void set_association(const INavigable4MomentumCollection *theContainer, const INavigable4Momentum *the_inav4momentum, double weight=1)
Definition: JetINav4MomAssociation.h:56
JetAssociationBase.h
JetINav4MomAssociation::clone
virtual JetAssociationBase * clone() const
a clone method for the proper workings of the copy constructor
Definition: JetINav4MomAssociation.cxx:15
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
JetINav4MomAssociation::set_association
void set_association(const INavigable4MomentumCollection *theContainer, index_type &theIndex, double weight=1)
Definition: JetINav4MomAssociation.h:60
INavigable4MomentumCollection.h
JetINav4MomAssociation::iter_type
Navigable< INavigable4MomentumCollection, double >::constituent_iter iter_type
Definition: JetINav4MomAssociation.h:36
JetAssociationBase
Definition: JetAssociationBase.h:21
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
JetINav4MomAssociation::index_type
Navigable< INavigable4MomentumCollection, double >::external_index_type index_type
Definition: JetINav4MomAssociation.h:35
JetINav4MomAssociation::inav4momentum
const INavigable4Momentum * inav4momentum() const
get jet directly without token
Definition: JetINav4MomAssociation.cxx:20
Navigable
Navigable template generalization to handle navigation.
Definition: Navigable.h:93
JetINav4MomAssociation
A JetAssociation object for a generic object.
Definition: JetINav4MomAssociation.h:33
JetINav4MomAssociation::getinav4momentumWeight
double getinav4momentumWeight(const INavigable4Momentum *the_inav4momentum) const
Definition: JetINav4MomAssociation.cxx:68
Navigable.h
INavigable4Momentum
Definition: INavigable4Momentum.h:21
JetINav4MomAssociation::JetINav4MomAssociation
JetINav4MomAssociation()
constructor
NameType
std::string NameType
Definition: JetINav4MomAssociation.h:29
JetAssociationBase::name
const name_t & name() const
Definition: JetAssociationBase.cxx:20
index_type
unsigned int index_type
Definition: FPGATrackSimSGToRawHitsTool.h:37