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 "fhiclcpp/ParameterSet.h"
31 void analyze(art::Event
const &
e)
override;
42 , fInputLabel(p.
get<
std::string>(
"input_label"))
43 , nvalues (p.
get<int> (
"nvalues"))
48 std::cerr <<
"PtrMakerAnalyzer is running\n";
49 art::Handle<intptrvector_t>
h;
51 size_t sz = h->size();
53 throw cet::exception(
"SizeMismatch")
54 <<
"Expected a PtrVector of size " << nvalues
55 <<
" but the obtained size is " << sz
59 int eid = e.id().event();
63 for (
int i = 0; i <
nvalues; ++i) {
64 assert(*local[i] == eid*i);
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
BEGIN_PROLOG could also be cerr
PtrMakerAnalyzer(fhicl::ParameterSet const &p)
PtrMakerAnalyzer & operator=(PtrMakerAnalyzer const &)=delete
void analyze(art::Event const &e) override
art::PtrVector< int > intptrvector_t