ATLAS Offline Software
MuonAssociation.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 
6 #ifndef ANALYSIS_MUONASSOCIATION_H
7 #define ANALYSIS_MUONASSOCIATION_H
8 
9 #include<vector>
10 #include<string>
11 
12 #include "Navigation/Navigable.h"
15 #include "CaloGeoHelpers/CaloSampling.h"
16 
17 namespace Analysis
18 {
21  typedef std::string NameType;
22 
24  public Navigable<MuonContainer, double>
25  {
26 
29 
30 
31  public:
32  MuonAssociation() ;
33  MuonAssociation(const NameType& name) ;
34  ~MuonAssociation() = default;
35 
36  virtual JetAssociationBase* clone() const;
38 
39  const Muon* muon() const;
40 
41  void fillToken(INavigationToken&) const { };
42 
43  void fillToken(INavigationToken&, const std::any&) const { };
44 
45  // Set functions
46  void set_muon(const MuonContainer* theContainer,
47  const Muon* the_muon, double weight=1);
48 
49  void set_muon(const MuonContainer* theContainer,
50  const index_type& theIndex, double weight=1);
51 
52  void set_association(const MuonContainer* theContainer,
53  const Muon* the_muon, double weight=1)
54  {
55  set_muon(theContainer, the_muon, weight);
56  }
57 
58  void set_association(const MuonContainer* theContainer,
59  const index_type& theIndex, double weight=1)
60  {
61  set_muon(theContainer, theIndex, weight);
62  }
63 
64  double getMuonWeight(const Muon* the_muon) const ;
65 
66  double getMuonWeight(const MuonContainer* theContainer,
67  const index_type& theIndex) const;
68 
69  };
70 
71 }
72 #endif
Analysis::NameType
std::string NameType
string to identify the constituent
Definition: IConstituent.h:39
JetAssociationBase::NameType
name_t NameType
Definition: JetAssociationBase.h:29
Analysis::MuonAssociation::~MuonAssociation
~MuonAssociation()=default
Analysis::MuonAssociation::set_association
void set_association(const MuonContainer *theContainer, const Muon *the_muon, double weight=1)
Definition: MuonAssociation.h:52
MuonContainer.h
Analysis::MuonAssociation::MuonAssociation
MuonAssociation()
constructor
Definition: MuonAssociation.cxx:12
JetAssociationBase.h
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
Analysis::MuonAssociation::fillToken
void fillToken(INavigationToken &, const std::any &) const
Definition: MuonAssociation.h:43
Analysis::MuonAssociation::iter_type
Navigable< MuonContainer, double >::constituent_iter iter_type
Definition: MuonAssociation.h:28
Analysis::MuonAssociation
Definition: MuonAssociation.h:25
INavigationToken
Definition: INavigationToken.h:24
Analysis::MuonAssociation::fillToken
void fillToken(INavigationToken &) const
Definition: MuonAssociation.h:41
Analysis::MuonContainer
definition of StoreGate container holding a vector of Analysis::Muon
Definition: Reconstruction/MuonIdentification/muonEvent/muonEvent/MuonContainer.h:38
JetAssociationBase
Definition: JetAssociationBase.h:21
Analysis::MuonAssociation::index_type
Navigable< MuonContainer, double >::external_index_type index_type
Definition: MuonAssociation.h:27
Analysis::MuonAssociation::clone
virtual JetAssociationBase * clone() const
a clone method for the proper workings of the copy constructor
Definition: MuonAssociation.cxx:18
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Navigable
Navigable template generalization to handle navigation.
Definition: Navigable.h:93
Navigable.h
Analysis::MuonAssociation::set_muon
void set_muon(const MuonContainer *theContainer, const Muon *the_muon, double weight=1)
Definition: MuonAssociation.cxx:33
Analysis::MuonAssociation::muon
const Muon * muon() const
get muon directly without token
Definition: MuonAssociation.cxx:21
Analysis::MuonAssociation::set_association
void set_association(const MuonContainer *theContainer, const index_type &theIndex, double weight=1)
Definition: MuonAssociation.h:58
Analysis::MuonAssociation::getMuonWeight
double getMuonWeight(const Muon *the_muon) const
Definition: MuonAssociation.cxx:71
JetAssociationBase::name
const name_t & name() const
Definition: JetAssociationBase.cxx:20
index_type
unsigned int index_type
Definition: FPGATrackSimSGToRawHitsTool.h:37