ATLAS Offline Software
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
CaloClusterVariables Class Reference

Provide calculations of cluster based variables using the clusters associated to the jet seed of the tau candidate. More...

#include <CaloClusterVariables.h>

Collaboration diagram for CaloClusterVariables:

Public Member Functions

 CaloClusterVariables ()
 
 ~CaloClusterVariables ()
 
bool update (const xAOD::TauJet &pTau)
 update the internal variables for the given tau More...
 
unsigned int numConstituents () const
 

Static Public Attributes

static const double DEFAULT = -1111.
 

Private Attributes

int m_numConstit
 

Detailed Description

Provide calculations of cluster based variables using the clusters associated to the jet seed of the tau candidate.

Definition at line 16 of file CaloClusterVariables.h.

Constructor & Destructor Documentation

◆ CaloClusterVariables()

CaloClusterVariables::CaloClusterVariables ( )

Definition at line 17 of file CaloClusterVariables.cxx.

17  :
18  m_numConstit(static_cast<int>(DEFAULT)){
19  }

◆ ~CaloClusterVariables()

CaloClusterVariables::~CaloClusterVariables ( )
inline

Definition at line 23 of file CaloClusterVariables.h.

23  {
24  }

Member Function Documentation

◆ numConstituents()

unsigned int CaloClusterVariables::numConstituents ( ) const
inline

Definition at line 29 of file CaloClusterVariables.h.

29 { return (unsigned int) m_numConstit; }

◆ update()

bool CaloClusterVariables::update ( const xAOD::TauJet pTau)

update the internal variables for the given tau

Definition at line 25 of file CaloClusterVariables.cxx.

25  {
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 }

Member Data Documentation

◆ DEFAULT

const double CaloClusterVariables::DEFAULT = -1111.
static

Definition at line 19 of file CaloClusterVariables.h.

◆ m_numConstit

int CaloClusterVariables::m_numConstit
private

Definition at line 32 of file CaloClusterVariables.h.


The documentation for this class was generated from the following files:
CaloClusterVariables::DEFAULT
static const double DEFAULT
Definition: CaloClusterVariables.h:19
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
xAOD::CaloVertexedTopoCluster
Evaluate cluster kinematics with a different vertex / signal state.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedTopoCluster.h:38