Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunereco
dunereco
AnaUtils
DUNEAnaSliceUtils.h
Go to the documentation of this file.
1
/**
2
*
3
* @file dunereco/AnaUtils/DUNEAnaSliceUtils.h
4
*
5
* @brief Utility containing helpful functions for end users to access information about Slices
6
*/
7
8
#ifndef DUNE_ANA_SLICE_UTILS_H
9
#define DUNE_ANA_SLICE_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/Slice.h
"
20
21
namespace
dune_ana
22
{
23
/**
24
*
25
* @brief DUNEAnaSliceUtils class
26
*
27
*/
28
class
DUNEAnaSliceUtils
:
DUNEAnaUtilsBase
29
{
30
public
:
31
/**
32
* @brief Get the hits associated with the slice.
33
*
34
* @param slice is the slice for which we want the hits
35
* @param evt is the underlying art event
36
* @param label is the label for the slice 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::Slice>
&pSlice,
const
art::Event
&
evt
,
const
std::string
&
label
);
41
};
42
43
}
// namespace dune_ana
44
45
#endif // DUNE_ANA_SLICE_UTILS_H
46
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.
dune_ana::DUNEAnaSliceUtils
DUNEAnaSliceUtils class.
Definition:
DUNEAnaSliceUtils.h:28
dune_ana
Definition:
DUNEAnaClusterUtils.cxx:13
Hit.h
Declaration of signal hit object.
art::Event
Definition:
Event.h:22
tca::evt
TCEvent evt
Definition:
DataStructs.cxx:7
Event.h
Slice.h
dune_ana::DUNEAnaSliceUtils::GetHits
static std::vector< art::Ptr< recob::Hit > > GetHits(const art::Ptr< recob::Slice > &pSlice, const art::Event &evt, const std::string &label)
Get the hits associated with the slice.
Definition:
DUNEAnaSliceUtils.cxx:16
art::Ptr
Definition:
fwd.h:31
Generated by
1.8.11