ATLAS Offline Software
Loading...
Searching...
No Matches
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

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

Macros

#define _SNAMELU(NAME)
#define _SIDLU(ID)
#define _MNAMELU(NAME)
#define _MIDLU(ID)

Typedefs

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

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.

Sampling names and identifier maps

static const std::map< CaloSampling::CaloSample, std::string > CaloRec::Lookup::samplingNames
 Name lookup by sampling identifier (data)
static const std::map< std::string, CaloSampling::CaloSampleCaloRec::Lookup::samplingIds
 Identifier lookup by sampling name (data)
static const std::string & CaloRec::Lookup::getSamplingName (CaloSampling::CaloSample sid)
 Lookup sampling name by identifier (function)
static CaloSampling::CaloSample CaloRec::Lookup::getSamplingId (const std::string &sname)
 Lookup sampling identifier by name (function)

Cluster moment names and identifier maps

static const std::map< xAOD::CaloCluster::MomentType, std::string > CaloRec::Lookup::clusterMomentNames
 Moment names by moment types.
static const std::map< std::string, xAOD::CaloCluster::MomentTypeCaloRec::Lookup::clusterMomentTypes
 Moment names buy moment identifiers.
static const std::string & CaloRec::Lookup::getMomentName (xAOD::CaloCluster::MomentType momentType)
 Get moment name associated with a moment type.
static bool CaloRec::Lookup::getMomentType (const std::string &momentName, xAOD::CaloCluster::MomentType &momentType)
 Get moment type associated with a moment name.
static bool CaloRec::Lookup::haveMomentType (const std::string &momentName)
 Returns true in case moment is known.

Macro Definition Documentation

◆ _MIDLU

#define _MIDLU ( ID)
Value:
{ std::string( #ID ) , xAOD::CaloCluster::ID }
std::vector< Identifier > ID

Definition at line 18 of file CaloTopoClusterFromTowerHelpers.h.

◆ _MNAMELU

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

Definition at line 17 of file CaloTopoClusterFromTowerHelpers.h.

◆ _SIDLU

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

Definition at line 15 of file CaloTopoClusterFromTowerHelpers.h.

◆ _SNAMELU

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

Definition at line 14 of file CaloTopoClusterFromTowerHelpers.h.