ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODPFlow
xAODPFlow
Event/xAOD/xAODPFlow/xAODPFlow/FEHelpers.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Author: Bill Balunas <bill.balunas@cern.ch>
6
7
#ifndef XAODPFLOW_FEHELPERS_H
8
#define XAODPFLOW_FEHELPERS_H 1
9
10
#include "
xAODPFlow/FlowElement.h
"
11
#include "
xAODTracking/Vertex.h
"
12
#include "
xAODCaloEvent/CaloCluster.h
"
13
14
namespace
FEHelpers
{
15
16
TLorentzVector
getVertexCorrectedFourVec
(
const
xAOD::FlowElement
& fe,
const
xAOD::Vertex
& vertexToCorrectTo);
17
TLorentzVector
getVertexCorrectedFourVec
(
const
xAOD::FlowElement
& fe,
const
TVector3& vertexToCorrectTo);
18
void
vertexCorrectTheFourVector
(
const
xAOD::FlowElement
& fe,
const
TVector3& vertexToCorrectTo, TLorentzVector& theFourVector);
19
20
bool
getClusterMoment
(
const
xAOD::FlowElement
& fe,
xAOD::CaloCluster::MomentType
momentType,
float
& value);
21
std::vector<float>
getEnergiesPerSampling
(
const
xAOD::FlowElement
& fe);
22
23
std::string
getClusterMomentName
(
xAOD::CaloCluster::MomentType
momentType);
24
25
xAOD::Type::ObjectType
signalToXAODType
(
const
xAOD::FlowElement
& fe);
26
27
class
FillNeutralFlowElements
{
28
29
public
:
30
FillNeutralFlowElements
();
32
bool
addMoment
(
const
xAOD::CaloCluster::MomentType
& momentType,
33
const
std::string& attributeName,
34
const
xAOD::CaloCluster
& theCluster,
35
xAOD::FlowElement
& theFE);
36
37
void
addSamplingEnergy
(
const
xAOD::CaloCluster::CaloSample
& sampling,
38
const
std::string& attributeName,
39
const
xAOD::CaloCluster
& theCluster,
40
xAOD::FlowElement
& theFE);
41
42
void
addStandardMoments
(
xAOD::FlowElement
& theFE,
const
xAOD::CaloCluster
& theCluster);
43
void
addStandardCalHitMoments
(
xAOD::FlowElement
& theFE,
const
xAOD::CaloCluster
& theCluster);
44
void
addStandardSamplingEnergies
(
xAOD::FlowElement
& theFE,
const
xAOD::CaloCluster
& theCluster);
45
};
46
47
}
48
49
#endif
CaloCluster.h
Vertex.h
FlowElement.h
FEHelpers::FillNeutralFlowElements::FillNeutralFlowElements
FillNeutralFlowElements()
Definition
FEHelpers.cxx:189
FEHelpers::FillNeutralFlowElements::addStandardSamplingEnergies
void addStandardSamplingEnergies(xAOD::FlowElement &theFE, const xAOD::CaloCluster &theCluster)
Definition
FEHelpers.cxx:246
FEHelpers::FillNeutralFlowElements::addStandardCalHitMoments
void addStandardCalHitMoments(xAOD::FlowElement &theFE, const xAOD::CaloCluster &theCluster)
Definition
FEHelpers.cxx:233
FEHelpers::FillNeutralFlowElements::addStandardMoments
void addStandardMoments(xAOD::FlowElement &theFE, const xAOD::CaloCluster &theCluster)
Definition
FEHelpers.cxx:213
FEHelpers::FillNeutralFlowElements::addMoment
bool addMoment(const xAOD::CaloCluster::MomentType &momentType, const std::string &attributeName, const xAOD::CaloCluster &theCluster, xAOD::FlowElement &theFE)
Function to add cluster moments onto FE.
Definition
FEHelpers.cxx:191
FEHelpers::FillNeutralFlowElements::addSamplingEnergy
void addSamplingEnergy(const xAOD::CaloCluster::CaloSample &sampling, const std::string &attributeName, const xAOD::CaloCluster &theCluster, xAOD::FlowElement &theFE)
Definition
FEHelpers.cxx:205
xAOD::CaloCluster_v1::MomentType
MomentType
Enums to identify different moments.
Definition
CaloCluster_v1.h:123
xAOD::CaloCluster_v1::CaloSample
CaloSampling::CaloSample CaloSample
Definition
CaloCluster_v1.h:69
FEHelpers
Definition
FEHelpers.cxx:11
FEHelpers::getEnergiesPerSampling
std::vector< float > getEnergiesPerSampling(const xAOD::FlowElement &fe)
Definition
FEHelpers.cxx:78
FEHelpers::vertexCorrectTheFourVector
void vertexCorrectTheFourVector(const xAOD::FlowElement &fe, const TVector3 &vertexToCorrectTo, TLorentzVector &theFourVector)
Definition
FEHelpers.cxx:27
FEHelpers::getClusterMoment
bool getClusterMoment(const xAOD::FlowElement &fe, xAOD::CaloCluster::MomentType momentType, float &value)
Definition
FEHelpers.cxx:51
FEHelpers::getVertexCorrectedFourVec
TLorentzVector getVertexCorrectedFourVec(const xAOD::FlowElement &fe, const xAOD::Vertex &vertexToCorrectTo)
Definition
FEHelpers.cxx:13
FEHelpers::getClusterMomentName
std::string getClusterMomentName(xAOD::CaloCluster::MomentType momentType)
Definition
FEHelpers.cxx:147
FEHelpers::signalToXAODType
xAOD::Type::ObjectType signalToXAODType(const xAOD::FlowElement &fe)
Definition
FEHelpers.cxx:178
xAODType::ObjectType
ObjectType
Type of objects that have a representation in the xAOD EDM.
Definition
ObjectType.h:32
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
xAOD::FlowElement
FlowElement_v1 FlowElement
Definition of the current "pfo version".
Definition
FlowElement.h:16
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition
Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
Generated on
for ATLAS Offline Software by
1.17.0