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