Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunereco
dunereco
AnaUtils
DUNEAnaClusterUtils.h
Go to the documentation of this file.
1
/**
2
*
3
* @file dunereco/AnaUtils/DUNEAnaClusterUtils.h
4
*
5
* @brief Utility containing helpful functions for end users to access information about Clusters
6
*/
7
8
#ifndef DUNE_ANA_CLUSTER_UTILS_H
9
#define DUNE_ANA_CLUSTER_UTILS_H
10
11
#include "
art/Framework/Principal/Event.h
"
12
13
#include "
dunereco/AnaUtils/DUNEAnaUtilsBase.h
"
14
15
#include "
lardataobj/RecoBase/Hit.h
"
16
#include "
lardataobj/RecoBase/Cluster.h
"
17
18
#include <string>
19
#include <vector>
20
21
namespace
dune_ana
22
{
23
/**
24
*
25
* @brief DUNEAnaClusterUtils class
26
*
27
*/
28
class
DUNEAnaClusterUtils
:
DUNEAnaUtilsBase
29
{
30
public
:
31
/**
32
* @brief Get the hits associated with the cluster.
33
*
34
* @param cluster is the cluster for which we want the hits
35
* @param evt is the underlying art event
36
* @param label is the label for the cluster producer
37
*
38
* @return vector of art::Ptrs to the hits
39
*/
40
static
std::vector<art::Ptr<recob::Hit>>
GetHits
(
const
art::Ptr<recob::Cluster>
&pCluster,
const
art::Event
&
evt
,
const
std::string
&
label
);
41
};
42
43
}
// namespace dune_ana
44
45
#endif // DUNE_ANA_CLUSTER_UTILS_H
46
dune_ana::DUNEAnaClusterUtils::GetHits
static std::vector< art::Ptr< recob::Hit > > GetHits(const art::Ptr< recob::Cluster > &pCluster, const art::Event &evt, const std::string &label)
Get the hits associated with the cluster.
Definition:
DUNEAnaClusterUtils.cxx:16
dune_ana::DUNEAnaUtilsBase
DUNEAnaUtilsBase class containing some template functions.
Definition:
DUNEAnaUtilsBase.h:25
string
std::string string
Definition:
nybbler.cc:12
test_nxdot.label
label
Definition:
test_nxdot.py:6
DUNEAnaUtilsBase.h
Base class containing functionality to extract products from the event.
Cluster.h
dune_ana
Definition:
DUNEAnaClusterUtils.cxx:13
dune_ana::DUNEAnaClusterUtils
DUNEAnaClusterUtils class.
Definition:
DUNEAnaClusterUtils.h:28
Hit.h
Declaration of signal hit object.
art::Event
Definition:
Event.h:22
tca::evt
TCEvent evt
Definition:
DataStructs.cxx:7
Event.h
art::Ptr< recob::Cluster >
Generated by
1.8.11