All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LArObjectHelper.h
Go to the documentation of this file.
1 /**
2  * @file larpandoracontent/LArHelpers/LArObjectHelper.h
3  *
4  * @brief Header file for the object helper class.
5  *
6  * $Log: $
7  */
8 #ifndef LAR_OBJECT_HELPER_H
9 #define LAR_OBJECT_HELPER_H 1
10 
11 #include "Objects/Cluster.h"
12 
13 namespace lar_content
14 {
15 
16 /**
17  * @brief LArObjectHelper class
18  */
20 {
21 public:
22  /**
23  * @brief TypeAdaptor
24  */
26  {
27  public:
28  /**
29  * @brief Get the associated position
30  *
31  * @param t the input object
32  *
33  * @return the associated position
34  */
35  template <typename T>
36  static pandora::CartesianVector GetPosition(const T &t);
37 
38  /**
39  * @brief Get the associated calo hit, or nullptr if none
40  *
41  * @param t the input object
42  *
43  * @return the associated calo hit, or nullptr if none
44  */
45  template <typename T>
46  static const pandora::CaloHit *GetCaloHit(const T &t);
47  };
48 };
49 
50 } // namespace lar_content
51 
52 #endif // #ifndef LAR_OBJECT_HELPER_H
static const pandora::CaloHit * GetCaloHit(const T &t)
Get the associated calo hit, or nullptr if none.
static pandora::CartesianVector GetPosition(const T &t)
Get the associated position.
LArObjectHelper class.