ATLAS Offline Software
Loading...
Searching...
No Matches
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
11#include "xAODTracking/Vertex.h"
13
14namespace 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);
45 };
46
47}
48
49#endif
void addStandardSamplingEnergies(xAOD::FlowElement &theFE, const xAOD::CaloCluster &theCluster)
void addStandardCalHitMoments(xAOD::FlowElement &theFE, const xAOD::CaloCluster &theCluster)
void addStandardMoments(xAOD::FlowElement &theFE, const xAOD::CaloCluster &theCluster)
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.
void addSamplingEnergy(const xAOD::CaloCluster::CaloSample &sampling, const std::string &attributeName, const xAOD::CaloCluster &theCluster, xAOD::FlowElement &theFE)
MomentType
Enums to identify different moments.
CaloSampling::CaloSample CaloSample
std::vector< float > getEnergiesPerSampling(const xAOD::FlowElement &fe)
Definition FEHelpers.cxx:78
void vertexCorrectTheFourVector(const xAOD::FlowElement &fe, const TVector3 &vertexToCorrectTo, TLorentzVector &theFourVector)
Definition FEHelpers.cxx:27
bool getClusterMoment(const xAOD::FlowElement &fe, xAOD::CaloCluster::MomentType momentType, float &value)
Definition FEHelpers.cxx:51
TLorentzVector getVertexCorrectedFourVec(const xAOD::FlowElement &fe, const xAOD::Vertex &vertexToCorrectTo)
Definition FEHelpers.cxx:13
std::string getClusterMomentName(xAOD::CaloCluster::MomentType momentType)
xAOD::Type::ObjectType signalToXAODType(const xAOD::FlowElement &fe)
ObjectType
Type of objects that have a representation in the xAOD EDM.
Definition ObjectType.h:32
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
FlowElement_v1 FlowElement
Definition of the current "pfo version".
Definition FlowElement.h:16
Vertex_v1 Vertex
Define the latest version of the vertex class.