ATLAS Offline Software
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"
25 #include "CaloGeoHelpers/CaloSampling.h"
26 
27 namespace Analysis
28 {
29 
30 
33  typedef std::string NameType;
34 
35 
42  class MuonConstituent : public IConstituent,
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
Analysis::NameType
std::string NameType
string to identify the constituent
Definition: IConstituent.h:39
Analysis::MuonConstituent::set_muon
void set_muon(const MuonContainer *theContainer, const Muon *the_muon, double weight=1)
Definition: MuonConstituent.cxx:57
Analysis::MuonConstituent::MuonConstituent
MuonConstituent()
constructor
Definition: MuonConstituent.cxx:31
Analysis::MuonConstituent::setName
virtual void setName(NameType &name)
to set the name
Definition: MuonConstituent.cxx:38
Analysis::IConstituent
Class IConstituent: This is the abstract base class for additional jet constituents to be put into th...
Definition: IConstituent.h:52
MuonContainer.h
Analysis::MuonConstituent::set_constituent
void set_constituent(const MuonContainer *theContainer, const Muon *the_muon, double weight=1)
Definition: MuonConstituent.h:82
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:200
IConstituent.h
Analysis::MuonConstituent::muon
const Muon * muon() const
get muon directly without token
Definition: MuonConstituent.cxx:45
Analysis::MuonConstituent::getMuonWeight
double getMuonWeight(const Muon *the_muon) const
Definition: MuonConstituent.cxx:95
Analysis::MuonConstituent::name
virtual NameType name() const
returns the infoType of the info objects.
Definition: MuonConstituent.cxx:40
Analysis::MuonContainer
definition of StoreGate container holding a vector of Analysis::Muon
Definition: Reconstruction/MuonIdentification/muonEvent/muonEvent/MuonContainer.h:38
Analysis::MuonConstituent::index_type
Navigable< MuonContainer, double >::external_index_type index_type
Definition: MuonConstituent.h:55
Analysis::MuonConstituent::~MuonConstituent
~MuonConstituent()=default
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Navigable
Navigable template generalization to handle navigation.
Definition: Navigable.h:93
Analysis::MuonConstituent::m_name
std::string m_name
Definition: MuonConstituent.h:97
Navigable.h
Analysis::MuonConstituent::clone
virtual IConstituent * clone() const
a clone method for the proper workings of the copy constructor
Definition: MuonConstituent.cxx:42
Analysis::MuonConstituent::iter_type
Navigable< MuonContainer, double >::constituent_iter iter_type
Definition: MuonConstituent.h:56
index_type
unsigned int index_type
Definition: FPGATrackSimSGToRawHitsTool.h:37