ATLAS Offline Software
JetConstituent.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  JetConstituents.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_JETCONSTITUENT_H
17 #define ANALYSIS_JETCONSTITUENT_H
18 
19 #include<vector>
20 #include<string>
21 
22 #include "Navigation/Navigable.h"
23 #include "JetEvent/JetCollection.h"
25 #include "CaloGeoHelpers/CaloSampling.h"
26 
27 namespace Analysis
28 {
29 
30 
33  typedef std::string NameType;
34 
35 
42  class JetConstituent : public IConstituent,
43  public Navigable<JetCollection, double>
44  {
45 
48 
49 
50  public:
53  ~JetConstituent() = default;
54 
55  virtual void setName(NameType& name);
57 
58  virtual NameType name() const;
60 
61  virtual IConstituent* clone() const;
63 
64  const Jet* jet() const;
65 
66 
68 
69  double energyInCryostat( ) const;
70 
71 
72 
73  // Set functions
74  void set_jet(const JetCollection* theContainer,
75  const Jet* the_jet, double weight=1);
76 
77  void set_jet(const JetCollection* theContainer,
78  index_type& theIndex, double weight=1);
79 
80  void set_constituent(const JetCollection* theContainer,
81  const Jet* the_jet, double weight=1)
82  {set_jet(theContainer, the_jet, weight);}
83 
84  void set_constituent(const JetCollection* theContainer,
85  index_type& theIndex, double weight=1)
86  {set_jet(theContainer, theIndex, weight);}
87 
88  double getJetWeight(const Jet* the_jet) const ;
89 
90  double getJetWeight(const JetCollection* theContainer,
91  index_type& theIndex) const;
92 
94 
95  double wtCryo () const { return m_wtCryoLocal; }
96 
97  void set_wtCryo(double);
98 
99  private:
100  std::string m_name;
101  double m_wtCryoLocal;
102  std::vector<double> m_energyInSample;
103 
104 
105  } ;
106 
107 }
108 
109 
110 #endif
Analysis::NameType
std::string NameType
string to identify the constituent
Definition: IConstituent.h:39
Jet
Basic data class defines behavior for all Jet objects The Jet class is the principal data class for...
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:47
Analysis::IConstituent
Class IConstituent: This is the abstract base class for additional jet constituents to be put into th...
Definition: IConstituent.h:52
Analysis::JetConstituent::clone
virtual IConstituent * clone() const
a clone method for the proper workings of the copy constructor
Definition: JetConstituent.cxx:47
Analysis::JetConstituent::energyInSample
double energyInSample(CaloSampling::CaloSample) const
This is the energy in a sample with the navigation weight and hadronic calibration.
Definition: JetConstituent.cxx:119
Analysis::JetConstituent::wtCryo
double wtCryo() const
Definition: JetConstituent.h:104
Analysis::JetConstituent::~JetConstituent
~JetConstituent()=default
Analysis::JetConstituent::m_wtCryoLocal
double m_wtCryoLocal
Definition: JetConstituent.h:110
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:200
IConstituent.h
Analysis::JetConstituent::set_jet
void set_jet(const JetCollection *theContainer, const Jet *the_jet, double weight=1)
Definition: JetConstituent.cxx:62
Analysis::JetConstituent::JetConstituent
JetConstituent()
constructor
Definition: JetConstituent.cxx:31
Analysis::JetConstituent::jet
const Jet * jet() const
get jet directly without token
Definition: JetConstituent.cxx:50
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
JetCollection.h
Analysis::JetConstituent::index_type
Navigable< JetCollection, double >::external_index_type index_type
Definition: JetConstituent.h:55
Analysis::JetConstituent::name
virtual NameType name() const
returns the infoType of the info objects.
Definition: JetConstituent.cxx:45
Analysis::JetConstituent::iter_type
Navigable< JetCollection, double >::constituent_iter iter_type
Definition: JetConstituent.h:56
Analysis::JetConstituent::m_energyInSample
std::vector< double > m_energyInSample
Definition: JetConstituent.h:111
Analysis::JetConstituent::setName
virtual void setName(NameType &name)
to set the name
Definition: JetConstituent.cxx:43
Analysis::JetConstituent::getJetWeight
double getJetWeight(const Jet *the_jet) const
Definition: JetConstituent.cxx:100
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::JetConstituent::energyInCryostat
double energyInCryostat() const
The estimate of the energy cryostat.
Definition: JetConstituent.cxx:135
Analysis::JetConstituent::set_energyInSample
void set_energyInSample(CaloSampling::CaloSample, double)
set energy in sample WITH hadronic weights
Definition: JetConstituent.cxx:142
Navigable
Navigable template generalization to handle navigation.
Definition: Navigable.h:93
Navigable.h
JetCollection
Container for Jets
Definition: JetCollection.h:30
Analysis::JetConstituent::m_name
std::string m_name
Definition: JetConstituent.h:109
Analysis::JetConstituent::set_constituent
void set_constituent(const JetCollection *theContainer, const Jet *the_jet, double weight=1)
Definition: JetConstituent.h:89
Analysis::JetConstituent::set_wtCryo
void set_wtCryo(double)
Set wtCryoLocal defined as wtCryoLocal = wtCryo / sqrt( average_TileBar0_weight * average_EMB3_weight...
Definition: JetConstituent.cxx:149
index_type
unsigned int index_type
Definition: FPGATrackSimSGToRawHitsTool.h:37