ATLAS Offline Software
Loading...
Searching...
No Matches
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
25#include "CaloGeoHelpers/CaloSampling.h"
26
27namespace Analysis
28{
29
30
33 typedef std::string NameType;
34
35
41
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;
102 std::vector<double> m_energyInSample;
103
104
105 } ;
106
107}
108
109
110#endif
unsigned int index_type
Class IConstituent: This is the abstract base class for additional jet constituents to be put into th...
virtual void setName(NameType &name)
to set the name
void set_jet(const JetCollection *theContainer, const Jet *the_jet, double weight=1)
const Jet * jet() const
get jet directly without token
void set_constituent(const JetCollection *theContainer, const Jet *the_jet, double weight=1)
std::vector< double > m_energyInSample
void set_wtCryo(double)
Set wtCryoLocal defined as wtCryoLocal = wtCryo / sqrt(average_TileBar0_weight * average_EMB3_weight)
double getJetWeight(const Jet *the_jet) const
void set_energyInSample(CaloSampling::CaloSample, double)
set energy in sample WITH hadronic weights
void set_constituent(const JetCollection *theContainer, index_type &theIndex, double weight=1)
Navigable< JetCollection, double >::constituent_iter iter_type
virtual IConstituent * clone() const
a clone method for the proper workings of the copy constructor
double energyInSample(CaloSampling::CaloSample) const
This is the energy in a sample with the navigation weight and hadronic calibration.
Navigable< JetCollection, double >::external_index_type index_type
double energyInCryostat() const
The estimate of the energy cryostat.
virtual NameType name() const
returns the infoType of the info objects.
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