ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
MuonID
MuonIDEvent
MuonIDEvent
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
22
#include "
Navigation/Navigable.h
"
23
#include "
muonEvent/MuonContainer.h
"
24
#include "
ParticleEvent/IConstituent.h
"
25
#include "CaloGeoHelpers/CaloSampling.h"
26
27
namespace
Analysis
28
{
29
30
33
typedef
std::string
NameType
;
34
35
41
42
class
MuonConstituent
:
public
IConstituent
,
43
public
Navigable
<MuonContainer, double>
44
{
45
46
typedef
Navigable<MuonContainer,double>::external_index_type
index_type
;
47
typedef
Navigable<MuonContainer,double>::constituent_iter
iter_type
;
48
49
50
public
:
51
MuonConstituent
() ;
52
MuonConstituent
(
NameType
&
name
) ;
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
index_type
unsigned int index_type
Definition
FPGATrackSimSGToRawHitsTool.h:36
IConstituent.h
Navigable.h
MuonContainer.h
Analysis::IConstituent
Class IConstituent: This is the abstract base class for additional jet constituents to be put into th...
Definition
IConstituent.h:43
Analysis::MuonConstituent::muon
const Muon * muon() const
get muon directly without token
Definition
MuonConstituent.cxx:36
Analysis::MuonConstituent::setName
virtual void setName(NameType &name)
to set the name
Definition
MuonConstituent.cxx:29
Analysis::MuonConstituent::iter_type
Navigable< MuonContainer, double >::constituent_iter iter_type
Definition
MuonConstituent.h:47
Analysis::MuonConstituent::clone
virtual IConstituent * clone() const
a clone method for the proper workings of the copy constructor
Definition
MuonConstituent.cxx:33
Analysis::MuonConstituent::getMuonWeight
double getMuonWeight(const Muon *the_muon) const
Definition
MuonConstituent.cxx:86
Analysis::MuonConstituent::name
virtual NameType name() const
returns the infoType of the info objects.
Definition
MuonConstituent.cxx:31
Analysis::MuonConstituent::~MuonConstituent
~MuonConstituent()=default
Analysis::MuonConstituent::set_muon
void set_muon(const MuonContainer *theContainer, const Muon *the_muon, double weight=1)
Definition
MuonConstituent.cxx:48
Analysis::MuonConstituent::m_name
std::string m_name
Definition
MuonConstituent.h:88
Analysis::MuonConstituent::MuonConstituent
MuonConstituent()
constructor
Definition
MuonConstituent.cxx:22
Analysis::MuonConstituent::index_type
Navigable< MuonContainer, double >::external_index_type index_type
Definition
MuonConstituent.h:46
Analysis::MuonConstituent::set_constituent
void set_constituent(const MuonContainer *theContainer, const Muon *the_muon, double weight=1)
Definition
MuonConstituent.h:73
Analysis::MuonConstituent::set_constituent
void set_constituent(const MuonContainer *theContainer, index_type &theIndex, double weight=1)
Definition
MuonConstituent.h:77
Analysis::MuonContainer
definition of StoreGate container holding a vector of Analysis::Muon
Definition
Reconstruction/MuonIdentification/muonEvent/muonEvent/MuonContainer.h:38
Navigable< MuonContainer, double >::Navigable
Navigable()
Navigable::constituent_iter
constituent_coll::iterator constituent_iter
Definition
Navigable.h:102
Navigable::external_index_type
SG::GenerateIndexingPolicy< CONT >::type::index_type external_index_type
Definition
Navigable.h:156
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition
IConstituent.h:25
Analysis::NameType
std::string NameType
string to identify the constituent
Definition
IConstituent.h:30
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
Generated on
for ATLAS Offline Software by
1.17.0