Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
protoduneana
protoduneana
singlephase
EMTaskForce
MichelTiming_module.cc
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
// Class: MichelTiming
3
// Plugin Type: analyzer (art v3_05_01)
4
// File: MichelTiming_module.cc
5
//
6
// Generated at Mon Jun 22 22:21:41 2020 by Tingjun Yang using cetskelgen
7
// from cetlib version v3_10_00.
8
////////////////////////////////////////////////////////////////////////
9
10
#include "
art/Framework/Core/EDAnalyzer.h
"
11
#include "
art/Framework/Core/ModuleMacros.h
"
12
#include "
art/Framework/Principal/Event.h
"
13
#include "
art/Framework/Principal/Handle.h
"
14
#include "
art/Framework/Principal/Run.h
"
15
#include "
art/Framework/Principal/SubRun.h
"
16
#include "
canvas/Utilities/InputTag.h
"
17
#include "
lardataobj/RecoBase/OpFlash.h
"
18
#include "
fhiclcpp/ParameterSet.h
"
19
#include "
messagefacility/MessageLogger/MessageLogger.h
"
20
21
namespace
pdsp
{
22
class
MichelTiming;
23
}
24
25
26
class
pdsp::MichelTiming
:
public
art::EDAnalyzer
{
27
public
:
28
explicit
MichelTiming
(
fhicl::ParameterSet
const
&
p
);
29
// The compiler-generated destructor is fine for non-base
30
// classes without bare pointers or other resource use.
31
32
// Plugins should not be copied or assigned.
33
MichelTiming
(
MichelTiming
const
&) =
delete
;
34
MichelTiming
(
MichelTiming
&&) =
delete
;
35
MichelTiming
&
operator=
(
MichelTiming
const
&) =
delete
;
36
MichelTiming
&
operator=
(
MichelTiming
&&) =
delete
;
37
38
// Required functions.
39
void
analyze
(
art::Event
const
&
e
)
override
;
40
41
// Selected optional functions.
42
void
beginJob
()
override
;
43
44
private
:
45
46
art::InputTag
fFlashModuleLabel
;
47
48
};
49
50
51
pdsp::MichelTiming::MichelTiming
(
fhicl::ParameterSet
const
&
p
)
52
:
EDAnalyzer
{p},
53
fFlashModuleLabel
(
p
.get<
art::InputTag
>(
"FlashModuleLabel"
))
54
{
55
}
56
57
void
pdsp::MichelTiming::analyze
(
art::Event
const
&
e
)
58
{
59
std::vector < art::Ptr < recob::OpFlash > > flashList;
60
auto
flashListHandle = e.
getHandle
< std::vector < recob::OpFlash > >(
fFlashModuleLabel
);
61
if
(flashListHandle) {
62
art::fill_ptr_vector
(flashList, flashListHandle);
63
}
64
else
return
;
65
66
for
(
const
auto
& flash : flashList){
67
std::cout<<flash.key()<<
" "
<<flash->Time()<<
" "
<<flash->TotalPE()<<
std::endl
;
68
}
69
70
71
}
72
73
void
pdsp::MichelTiming::beginJob
()
74
{
75
// Implementation of optional member function here.
76
}
77
78
DEFINE_ART_MODULE
(
pdsp::MichelTiming
)
pdsp::MichelTiming::analyze
void analyze(art::Event const &e) override
Definition:
MichelTiming_module.cc:57
Handle.h
art::DataViewImpl::getHandle
Handle< PROD > getHandle(SelectorBase const &) const
Definition:
DataViewImpl.h:382
pdsp::MichelTiming
Definition:
MichelTiming_module.cc:26
pdsp::MichelTiming::operator=
MichelTiming & operator=(MichelTiming const &)=delete
art::EDAnalyzer::EDAnalyzer
EDAnalyzer(fhicl::ParameterSet const &pset)
Definition:
EDAnalyzer.h:25
MessageLogger.h
ParameterSet.h
pdsp::MichelTiming::MichelTiming
MichelTiming(fhicl::ParameterSet const &p)
Definition:
MichelTiming_module.cc:51
pdsp::MichelTiming::fFlashModuleLabel
art::InputTag fFlashModuleLabel
Definition:
MichelTiming_module.cc:46
e
const double e
Definition:
gUpMuFluxGen.cxx:165
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:67
art::InputTag
Definition:
InputTag.h:12
pdsp::MichelTiming::beginJob
void beginJob() override
Definition:
MichelTiming_module.cc:73
test.p
p
Definition:
test.py:223
SubRun.h
EDAnalyzer.h
ModuleMacros.h
art::Event
Definition:
Event.h:22
pdsp
Definition:
HitAnaPDSP_module.cc:25
OpFlash.h
art::EDAnalyzer
Definition:
EDAnalyzer.h:20
InputTag.h
Event.h
art::fill_ptr_vector
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
Definition:
Ptr.h:297
Run.h
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11