ATLAS Offline Software
Reconstruction
tauRecTools
Root
CaloClusterVariables.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
tauRecTools/CaloClusterVariables.h
"
6
7
#include "
xAODCaloEvent/CaloVertexedTopoCluster.h
"
8
9
#include <cmath>
10
11
const
double
CaloClusterVariables::DEFAULT
= -1111.;
12
13
//****************************************
14
// constructor
15
//****************************************
16
17
CaloClusterVariables::CaloClusterVariables
() :
18
m_numConstit(static_cast<
int
>(
DEFAULT
)){
19
}
20
21
//*******************************************
22
// update/fill the cluster based variables
23
//*******************************************
24
25
bool
CaloClusterVariables::update
(
const
xAOD::TauJet
& pTau) {
26
27
const
auto
& vertexedClusterList = pTau.
vertexedClusters
();
28
29
std::vector<TLorentzVector> clusterP4Vector;
30
clusterP4Vector.reserve(vertexedClusterList.size());
31
32
for
(
const
xAOD::CaloVertexedTopoCluster
& vertexedCluster : vertexedClusterList) {
33
clusterP4Vector.push_back(vertexedCluster.p4());
34
}
35
36
this->
m_numConstit
= std::ssize(clusterP4Vector);
37
38
return
true
;
39
}
40
41
DEFAULT
@ DEFAULT
Definition:
sTGCenumeration.h:15
CaloClusterVariables::CaloClusterVariables
CaloClusterVariables()
Definition:
CaloClusterVariables.cxx:17
CaloClusterVariables::DEFAULT
static const double DEFAULT
Definition:
CaloClusterVariables.h:19
xAOD::TauJet_v3
Class describing a tau jet.
Definition:
TauJet_v3.h:41
CaloVertexedTopoCluster.h
Evaluate cluster kinematics with a different vertex / signal state.
xAOD::TauJet_v3::vertexedClusters
std::vector< xAOD::CaloVertexedTopoCluster > vertexedClusters() const
Definition:
TauJet_v3.cxx:586
CaloClusterVariables::m_numConstit
int m_numConstit
Definition:
CaloClusterVariables.h:32
python.CaloAddPedShiftConfig.int
int
Definition:
CaloAddPedShiftConfig.py:45
CaloClusterVariables.h
xAOD::CaloVertexedTopoCluster
Evaluate cluster kinematics with a different vertex / signal state.
Definition:
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedTopoCluster.h:38
CaloClusterVariables::update
bool update(const xAOD::TauJet &pTau)
update the internal variables for the given tau
Definition:
CaloClusterVariables.cxx:25
Generated on Thu Oct 30 2025 21:07:22 for ATLAS Offline Software by
1.8.18