Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
larpandoracontent
larpandoracontent
LArHelpers
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
*/
19
class
LArObjectHelper
20
{
21
public
:
22
/**
23
* @brief TypeAdaptor
24
*/
25
class
TypeAdaptor
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
lar_content::LArObjectHelper::TypeAdaptor::GetCaloHit
static const pandora::CaloHit * GetCaloHit(const T &t)
Get the associated calo hit, or nullptr if none.
lar_content::LArObjectHelper::TypeAdaptor::GetPosition
static pandora::CartesianVector GetPosition(const T &t)
Get the associated position.
lar_content::LArObjectHelper::TypeAdaptor
TypeAdaptor.
Definition:
LArObjectHelper.h:25
lar_content::LArObjectHelper
LArObjectHelper class.
Definition:
LArObjectHelper.h:19
Generated by
1.8.5