ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagEvent
JetTagEvent
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
"
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
JetConstituent
:
public
IConstituent
,
43
public
Navigable
<JetCollection, double>
44
{
45
46
typedef
Navigable<JetCollection,double>::external_index_type
index_type
;
47
typedef
Navigable<JetCollection,double>::constituent_iter
iter_type
;
48
49
50
public
:
51
JetConstituent
() ;
52
JetConstituent
(
NameType
&
name
) ;
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
67
double
energyInSample
(
CaloSampling::CaloSample
)
const
;
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
93
void
set_energyInSample
(
CaloSampling::CaloSample
,
double
);
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
index_type
unsigned int index_type
Definition
FPGATrackSimSGToRawHitsTool.h:36
IConstituent.h
JetCollection.h
Navigable.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::JetConstituent::wtCryo
double wtCryo() const
Definition
JetConstituent.h:95
Analysis::JetConstituent::setName
virtual void setName(NameType &name)
to set the name
Definition
JetConstituent.cxx:34
Analysis::JetConstituent::set_jet
void set_jet(const JetCollection *theContainer, const Jet *the_jet, double weight=1)
Definition
JetConstituent.cxx:53
Analysis::JetConstituent::jet
const Jet * jet() const
get jet directly without token
Definition
JetConstituent.cxx:41
Analysis::JetConstituent::set_constituent
void set_constituent(const JetCollection *theContainer, const Jet *the_jet, double weight=1)
Definition
JetConstituent.h:80
Analysis::JetConstituent::m_energyInSample
std::vector< double > m_energyInSample
Definition
JetConstituent.h:102
Analysis::JetConstituent::set_wtCryo
void set_wtCryo(double)
Set wtCryoLocal defined as wtCryoLocal = wtCryo / sqrt(average_TileBar0_weight * average_EMB3_weight)...
Definition
JetConstituent.cxx:140
Analysis::JetConstituent::getJetWeight
double getJetWeight(const Jet *the_jet) const
Definition
JetConstituent.cxx:91
Analysis::JetConstituent::set_energyInSample
void set_energyInSample(CaloSampling::CaloSample, double)
set energy in sample WITH hadronic weights
Definition
JetConstituent.cxx:133
Analysis::JetConstituent::set_constituent
void set_constituent(const JetCollection *theContainer, index_type &theIndex, double weight=1)
Definition
JetConstituent.h:84
Analysis::JetConstituent::JetConstituent
JetConstituent()
constructor
Definition
JetConstituent.cxx:22
Analysis::JetConstituent::iter_type
Navigable< JetCollection, double >::constituent_iter iter_type
Definition
JetConstituent.h:47
Analysis::JetConstituent::m_wtCryoLocal
double m_wtCryoLocal
Definition
JetConstituent.h:101
Analysis::JetConstituent::clone
virtual IConstituent * clone() const
a clone method for the proper workings of the copy constructor
Definition
JetConstituent.cxx:38
Analysis::JetConstituent::~JetConstituent
~JetConstituent()=default
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:110
Analysis::JetConstituent::index_type
Navigable< JetCollection, double >::external_index_type index_type
Definition
JetConstituent.h:46
Analysis::JetConstituent::energyInCryostat
double energyInCryostat() const
The estimate of the energy cryostat.
Definition
JetConstituent.cxx:126
Analysis::JetConstituent::m_name
std::string m_name
Definition
JetConstituent.h:100
Analysis::JetConstituent::name
virtual NameType name() const
returns the infoType of the info objects.
Definition
JetConstituent.cxx:36
CaloSampling::CaloSample
CaloSample
Definition
Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
JetCollection
Definition
JetCollection.h:30
Jet
Definition
Reconstruction/Jet/JetEvent/JetEvent/Jet.h:47
Navigable< JetCollection, 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
Generated on
for ATLAS Offline Software by
1.17.0