Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
PandoraInternal.h File Reference

Header file defining relevant internal typedefs, sort and string conversion functions. More...

#include <algorithm>
#include <cstdint>
#include <iostream>
#include <iomanip>
#include <list>
#include <map>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
Include dependency graph for PandoraInternal.h:

Go to the source code of this file.

Classes

class  pandora::PointerLessThan< T >
 Enable ordering of pointers based on properties of target objects. More...
 
class  pandora::MyList< T >
 Wrapper around std::list. More...
 

Namespaces

namespace  pandora
 

Macros

#define PANDORA_REGISTER_ALGORITHM(a, b)
 
#define PANDORA_REGISTER_ALGORITHM_TOOL(a, b)
 
#define PANDORA_REGISTER_ENERGY_CORRECTION(a, b, c)
 
#define PANDORA_REGISTER_PARTICLE_ID(a, b)
 
#define MANAGED_CONTAINER   std::list
 

Typedefs

typedef MANAGED_CONTAINER< const CaloHit * > pandora::CaloHitList
 
typedef MANAGED_CONTAINER< const Cluster * > pandora::ClusterList
 
typedef MANAGED_CONTAINER< const DetectorGap * > pandora::DetectorGapList
 
typedef MANAGED_CONTAINER< const LArTPC * > pandora::LArTPCList
 
typedef MANAGED_CONTAINER< const MCParticle * > pandora::MCParticleList
 
typedef MANAGED_CONTAINER< const ParticleFlowObject * > pandora::ParticleFlowObjectList
 
typedef MANAGED_CONTAINER< const ParticleFlowObject * > pandora::PfoList
 
typedef MANAGED_CONTAINER< const SubDetector * > pandora::SubDetectorList
 
typedef MANAGED_CONTAINER< const Track * > pandora::TrackList
 
typedef MANAGED_CONTAINER< const Vertex * > pandora::VertexList
 
typedef std::vector< const CaloHit * > pandora::CaloHitVector
 
typedef std::vector< const Cluster * > pandora::ClusterVector
 
typedef std::vector< const DetectorGap * > pandora::DetectorGapVector
 
typedef std::vector< const LArTPC * > pandora::LArTPCVector
 
typedef std::vector< const MCParticle * > pandora::MCParticleVector
 
typedef std::vector< const ParticleFlowObject * > pandora::ParticleFlowObjectVector
 
typedef std::vector< const ParticleFlowObject * > pandora::PfoVector
 
typedef std::vector< const SubDetector * > pandora::SubDetectorVector
 
typedef std::vector< const Track * > pandora::TrackVector
 
typedef std::vector< const Vertex * > pandora::VertexVector
 
typedef std::unordered_set< const CaloHit * > pandora::CaloHitSet
 
typedef std::unordered_set< const Cluster * > pandora::ClusterSet
 
typedef std::unordered_set< const DetectorGap * > pandora::DetectorGapSet
 
typedef std::unordered_set< const LArTPC * > pandora::LArTPCSet
 
typedef std::unordered_set< const MCParticle * > pandora::MCParticleSet
 
typedef std::unordered_set< const ParticleFlowObject * > pandora::ParticleFlowObjectSet
 
typedef std::unordered_set< const ParticleFlowObject * > pandora::PfoSet
 
typedef std::unordered_set< const SubDetector * > pandora::SubDetectorSet
 
typedef std::unordered_set< const Track * > pandora::TrackSet
 
typedef std::unordered_set< const Vertex * > pandora::VertexSet
 
typedef std::vector< float > pandora::FloatVector
 
typedef std::vector< std::string > pandora::StringVector
 
typedef std::vector< CartesianVectorpandora::CartesianPointVector
 
typedef std::vector< TrackStatepandora::TrackStateVector
 
typedef std::vector< AlgorithmTool * > pandora::AlgorithmToolVector
 
typedef const void * pandora::Uid
 
typedef std::unordered_map< Uid, const MCParticle * > pandora::UidToMCParticleMap
 
typedef std::unordered_map< const MCParticle *, float > pandora::MCParticleWeightMap
 
typedef std::unordered_map< Uid, MCParticleWeightMappandora::UidToMCParticleWeightMap
 
typedef std::unordered_map< const Cluster *, const Track * > pandora::ClusterToTrackMap
 
typedef std::unordered_map< const Track *, const Cluster * > pandora::TrackToClusterMap
 
typedef std::set< std::string > pandora::StringSet
 
typedef std::map< std::string, float > pandora::PropertiesMap
 
typedef std::map< std::string, const SubDetector * > pandora::SubDetectorMap
 
typedef std::map< unsigned int, const LArTPC * > pandora::LArTPCMap
 

Functions

template<class T >
bool pandora::StringToType (const std::string &s, T &t)
 
template<>
bool pandora::StringToType (const std::string &s, const void *&t)
 
template<class T >
std::string pandora::TypeToString (const T &t)
 
template<>
std::string pandora::TypeToString (const void *const &t)
 
template<class T >
std::string pandora::TypeToStringPrecision (const T &t, const unsigned int precision=12)
 
template<>
std::string pandora::TypeToStringPrecision (const void *const &t, const unsigned int precision)
 

Detailed Description

Header file defining relevant internal typedefs, sort and string conversion functions.

Log

Definition in file PandoraInternal.h.

Macro Definition Documentation

◆ MANAGED_CONTAINER

#define MANAGED_CONTAINER   std::list

Definition at line 431 of file PandoraInternal.h.

◆ PANDORA_REGISTER_ALGORITHM

#define PANDORA_REGISTER_ALGORITHM (   a,
 
)
Value:
{ \
if (pandora::STATUS_CODE_SUCCESS != statusCode) \
return statusCode; \
}
static pandora::StatusCode RegisterAlgorithmFactory(const pandora::Pandora &pandora, const std::string &algorithmType, pandora::AlgorithmFactory *const pAlgorithmFactory)
Register an algorithm factory with pandora.
Definition PandoraApi.cc:28
StatusCode
The StatusCode enum.

Definition at line 59 of file PandoraInternal.h.

◆ PANDORA_REGISTER_ALGORITHM_TOOL

#define PANDORA_REGISTER_ALGORITHM_TOOL (   a,
 
)
Value:
{ \
if (pandora::STATUS_CODE_SUCCESS != statusCode) \
return statusCode; \
}
static pandora::StatusCode RegisterAlgorithmToolFactory(const pandora::Pandora &pandora, const std::string &algorithmToolType, pandora::AlgorithmToolFactory *const pAlgorithmToolFactory)
Register an algorithm tool factory with pandora.
Definition PandoraApi.cc:36

Definition at line 66 of file PandoraInternal.h.

◆ PANDORA_REGISTER_ENERGY_CORRECTION

#define PANDORA_REGISTER_ENERGY_CORRECTION (   a,
  b,
 
)
Value:
{ \
if (pandora::STATUS_CODE_SUCCESS != statusCode) \
return statusCode; \
}
static pandora::StatusCode RegisterEnergyCorrectionPlugin(const pandora::Pandora &pandora, const std::string &name, const pandora::EnergyCorrectionType energyCorrectionType, pandora::EnergyCorrectionPlugin *const pEnergyCorrectionPlugin)
Register an energy correction plugin.

Definition at line 73 of file PandoraInternal.h.

◆ PANDORA_REGISTER_PARTICLE_ID

#define PANDORA_REGISTER_PARTICLE_ID (   a,
 
)
Value:
{ \
if (pandora::STATUS_CODE_SUCCESS != statusCode) \
return statusCode; \
}
static pandora::StatusCode RegisterParticleIdPlugin(const pandora::Pandora &pandora, const std::string &name, pandora::ParticleIdPlugin *const pParticleIdPlugin)
Register a particle id plugin.

Definition at line 80 of file PandoraInternal.h.