ATLAS Offline Software
Loading...
Searching...
No Matches
MuonConstituent.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 MuonConstituents.h - Description
7 -------------------
8 begin : January, 2005
9 authors : Kyle Cranmer, Andreas Wildauer
10 email : cranmer@cern.ch, andreas.wildauer@cern.ch
11
12 changes :
13
14***************************************************************************/
15
16#ifndef ANALYSIS_MUONCONSTITUENT_H
17#define ANALYSIS_MUONCONSTITUENT_H
18
19#include<vector>
20#include<string>
21
25#include "CaloGeoHelpers/CaloSampling.h"
26
27namespace Analysis
28{
29
30
33 typedef std::string NameType;
34
35
41
43 public Navigable<MuonContainer, double>
44 {
45
48
49
50 public:
53 ~MuonConstituent() = default;
54
55 virtual void setName(NameType& name);
57
58 virtual NameType name() const;
60
61 virtual IConstituent* clone() const;
63
64 const Muon* muon() const;
65
66 // Set functions
67 void set_muon(const MuonContainer* theContainer,
68 const Muon* the_muon, double weight=1);
69
70 void set_muon(const MuonContainer* theContainer,
71 index_type& theIndex, double weight=1);
72
73 void set_constituent(const MuonContainer* theContainer,
74 const Muon* the_muon, double weight=1)
75 {set_muon(theContainer, the_muon, weight);}
76
77 void set_constituent(const MuonContainer* theContainer,
78 index_type& theIndex, double weight=1)
79 {set_muon(theContainer, theIndex, weight);}
80
81 double getMuonWeight(const Muon* the_muon) const ;
82
83 double getMuonWeight(const MuonContainer* theContainer,
84 index_type& theIndex) const;
85
86
87 private:
88 std::string m_name;
89
90 } ;
91
92}
93
94
95#endif
unsigned int index_type
Class IConstituent: This is the abstract base class for additional jet constituents to be put into th...
const Muon * muon() const
get muon directly without token
virtual void setName(NameType &name)
to set the name
Navigable< MuonContainer, double >::constituent_iter iter_type
virtual IConstituent * clone() const
a clone method for the proper workings of the copy constructor
double getMuonWeight(const Muon *the_muon) const
virtual NameType name() const
returns the infoType of the info objects.
void set_muon(const MuonContainer *theContainer, const Muon *the_muon, double weight=1)
Navigable< MuonContainer, double >::external_index_type index_type
void set_constituent(const MuonContainer *theContainer, const Muon *the_muon, double weight=1)
void set_constituent(const MuonContainer *theContainer, index_type &theIndex, double weight=1)
definition of StoreGate container holding a vector of Analysis::Muon
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.