ATLAS Offline Software
Classes | Namespaces | Macros
CaloTopoClusterFromTowerHelpers.h File Reference
#include "CaloGeoHelpers/CaloSampling.h"
#include "xAODCaloEvent/CaloCluster.h"
#include <cstdarg>
#include <string>
#include <map>
Include dependency graph for CaloTopoClusterFromTowerHelpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CaloRec::Helpers::CaloClusterSignalAccumulator
 Cache for data accumulator. More...
 
struct  CaloRec::Helpers::CaloClusterSignalAccumulator::Sampling
 Sampling quantities. More...
 
struct  CaloRec::Helpers::CaloClusterSignalAccumulator::Cluster
 Cluster quantities. More...
 

Namespaces

 CaloRec
 Namespace for helper functions.
 
 CaloRec::Helpers
 
 CaloRec::Lookup
 Stores.
 

Macros

#define _SNAMELU(NAME)   { CaloSampling::NAME , std::string( #NAME ) }
 
#define _SIDLU(ID)   { std::string( #ID ) , CaloSampling::ID }
 
#define _MNAMELU(NAME)   { xAOD::CaloCluster::NAME, std::string( #NAME ) }
 
#define _MIDLU(ID)   { std::string( #ID ) , xAOD::CaloCluster::ID }
 

Typedefs

Types
typedef std::array< double, CaloSampling::UnknownCaloRec::Helpers::valarray_t
 Array accommodating data for samplings. More...
 
typedef std::vector< bool > CaloRec::Helpers::boolarray_t
 Vector of flags indicating sampling contribution. More...
 
Types
typedef std::array< double, CaloSampling::UnknownCaloRec::Helpers::valarray_t
 Array accommodating data for samplings. More...
 
typedef std::vector< bool > CaloRec::Helpers::boolarray_t
 Vector of flags indicating sampling contribution. More...
 

Functions

Messaging

Message formatter

std::string CaloRec::Helpers::fmtMsg (const char *fmt,...)
 
Cluster building and refinement

Accumulator function

This function fills the CaloClusterSignalAccumulator object. It is invoked for each cell in a cluster.

Parameters
rcellreference to non-modifiable CaloCell object
accumreference to modifiable CaloClusterSignalAccumulator object
weightweight of cell contribution
onlyKineupdate only global cluster kinematics when true, else update all cluster variables
bool CaloRec::Helpers::cellAccumulator (const CaloCell &rcell, CaloClusterSignalAccumulator &accum, double weight, bool onlyKine=false)
 
bool CaloRec::Helpers::calculateKine (xAOD::CaloCluster *pClus, bool onlyKine=false)
 Kinematic updates. More...
 
Messaging

Message formatter

std::string CaloRec::Helpers::fmtMsg (const char *fmt,...)
 
Cluster building and refinement

Accumulator function

This function fills the CaloClusterSignalAccumulator object. It is invoked for each cell in a cluster.

Parameters
rcellreference to non-modifiable CaloCell object
accumreference to modifiable CaloClusterSignalAccumulator object
weightweight of cell contribution
onlyKineupdate only global cluster kinematics when true, else update all cluster variables
bool CaloRec::Helpers::cellAccumulator (const CaloCell &rcell, CaloClusterSignalAccumulator &accum, double weight, bool onlyKine=false)
 
bool CaloRec::Helpers::calculateKine (xAOD::CaloCluster *pClus, bool onlyKine=false)
 Kinematic updates. More...
 

Macro Definition Documentation

◆ _MIDLU

#define _MIDLU (   ID)    { std::string( #ID ) , xAOD::CaloCluster::ID }

Definition at line 19 of file CaloTopoClusterFromTowerHelpers.h.

◆ _MNAMELU

#define _MNAMELU (   NAME)    { xAOD::CaloCluster::NAME, std::string( #NAME ) }

Definition at line 18 of file CaloTopoClusterFromTowerHelpers.h.

◆ _SIDLU

#define _SIDLU (   ID)    { std::string( #ID ) , CaloSampling::ID }

Definition at line 16 of file CaloTopoClusterFromTowerHelpers.h.

◆ _SNAMELU

#define _SNAMELU (   NAME)    { CaloSampling::NAME , std::string( #NAME ) }

Definition at line 15 of file CaloTopoClusterFromTowerHelpers.h.