11 class ToyRawProductAnalyzer;
14 using namespace fhicl;
27 void beginRun(
art::Run const&
r)
override;
44 std::vector<art::Handle<int>> hv;
46 assert(hv.size() == 1u);
48 std::cerr << e.
id() <<
" int = " << (*h) <<
"\n";
51 std::cerr << e.
id() <<
" bool a = " << (*hb1) <<
"\n";
53 std::cerr << e.
id() <<
" bool b = " << (*hb2) <<
"\n";
63 std::vector<art::Handle<double>> hv;
65 assert(hv.size() == 1u);
67 std::cerr << r.
id() <<
" double = " << (*h) <<
"\n";
76 std::vector<art::Handle<double>> hv;
78 assert(hv.size() == 1u);
80 std::cerr << sr.
id() <<
" double = " << (*h) <<
"\n";
def analyze(root, level, gtrees, gbranches, doprint)
void beginSubRun(art::SubRun const &sr) override
bool const doBeginSubRun_
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
#define DEFINE_ART_MODULE(klass)
Run const & getRun() const
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
void getManyByType(std::vector< Handle< PROD >> &results) const
Run const & getRun() const
void beginRun(art::Run const &r) override
void analyze(art::Event const &e) override
ToyRawProductAnalyzer(Parameters const &p)
h
training ###############################