ATLAS Offline Software
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"
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 
24 
26 
28 
29  public:
32  bool addMoment(const xAOD::CaloCluster::MomentType& momentType,
33  const std::string& attributeName,
34  const xAOD::CaloCluster& theCluster,
35  xAOD::FlowElement& theFE);
36 
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
FEHelpers::FillNeutralFlowElements::addStandardSamplingEnergies
void addStandardSamplingEnergies(xAOD::FlowElement &theFE, const xAOD::CaloCluster &theCluster)
Definition: FEHelpers.cxx:246
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
FEHelpers::FillNeutralFlowElements::addStandardMoments
void addStandardMoments(xAOD::FlowElement &theFE, const xAOD::CaloCluster &theCluster)
Definition: FEHelpers.cxx:213
ObjectType
ObjectType
Definition: BaseObject.h:11
FEHelpers::getClusterMomentName
std::string getClusterMomentName(xAOD::CaloCluster::MomentType momentType)
Definition: FEHelpers.cxx:147
FEHelpers::FillNeutralFlowElements::addStandardCalHitMoments
void addStandardCalHitMoments(xAOD::FlowElement &theFE, const xAOD::CaloCluster &theCluster)
Definition: FEHelpers.cxx:233
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
athena.value
value
Definition: athena.py:122
FEHelpers::getEnergiesPerSampling
std::vector< float > getEnergiesPerSampling(const xAOD::FlowElement &fe)
Definition: FEHelpers.cxx:78
xAOD::CaloCluster_v1::MomentType
MomentType
Enums to identify different moments.
Definition: CaloCluster_v1.h:120
FEHelpers::FillNeutralFlowElements
Definition: Event/xAOD/xAODPFlow/xAODPFlow/FEHelpers.h:27
FEHelpers::FillNeutralFlowElements::FillNeutralFlowElements
FillNeutralFlowElements()
Definition: FEHelpers.cxx:189
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
FlowElement.h
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
CaloCluster.h
FEHelpers::vertexCorrectTheFourVector
void vertexCorrectTheFourVector(const xAOD::FlowElement &fe, const TVector3 &vertexToCorrectTo, TLorentzVector &theFourVector)
Definition: FEHelpers.cxx:27
FEHelpers::signalToXAODType
xAOD::Type::ObjectType signalToXAODType(const xAOD::FlowElement &fe)
Definition: FEHelpers.cxx:178
Vertex.h
FEHelpers
Definition: FEHelpers.cxx:11
FEHelpers::getClusterMoment
bool getClusterMoment(const xAOD::FlowElement &fe, xAOD::CaloCluster::MomentType momentType, float &value)
Definition: FEHelpers.cxx:51
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
FEHelpers::getVertexCorrectedFourVec
TLorentzVector getVertexCorrectedFourVec(const xAOD::FlowElement &fe, const xAOD::Vertex &vertexToCorrectTo)
Definition: FEHelpers.cxx:13
xAOD::FlowElement_v1
A detector object made of other lower level object(s)
Definition: FlowElement_v1.h:25