ATLAS Offline Software
Loading...
Searching...
No Matches
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
15#include "CaloGeoHelpers/CaloSampling.h"
16
17namespace Analysis
18{
21 typedef std::string NameType;
22
24 public Navigable<MuonContainer, double>
25 {
26
29
30
31 public:
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
unsigned int index_type
Navigable< MuonContainer, double >::external_index_type index_type
const Muon * muon() const
get muon directly without token
void set_muon(const MuonContainer *theContainer, const Muon *the_muon, double weight=1)
Navigable< MuonContainer, double >::constituent_iter iter_type
void set_association(const MuonContainer *theContainer, const index_type &theIndex, double weight=1)
void fillToken(INavigationToken &) const
void fillToken(INavigationToken &, const std::any &) const
void set_association(const MuonContainer *theContainer, const Muon *the_muon, double weight=1)
double getMuonWeight(const Muon *the_muon) const
virtual JetAssociationBase * clone() const
a clone method for the proper workings of the copy constructor
definition of StoreGate container holding a vector of Analysis::Muon
const name_t & name() const
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.
std::string NameType
string to identify the constituent
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.