81 produces< std::vector<int> >();
84 mf::LogInfo(
"DemoModule") <<
" DemoModule::DemoModule()\n";
99 fInt = pset.
get<
int >(
"MyInt");
100 fVecInt = pset.
get< std::vector<int> >(
"MyVectorInt");
115 "Histo Title;x-axis title (units);y-axis title (units)",
129 <<
"New Reco Event ";
135 for(
unsigned int i = 0;
i < digitcol->size(); ++
i){
141 std::unique_ptr< std::vector<int> > adccol(
new std::vector<int>);
144 for(
unsigned int i = 0;
i < digits.
size(); ++
i){
145 adccol->push_back( digits[
i]->ADC() );
146 fHisto->Fill( digits[
i]->ADC() );
150 evt.
put(std::move(adccol));
void reconfigure(const fhicl::ParameterSet &pset)
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
DEFINE_ART_MODULE(TestTMapFile)
The simplest job module possible to illustrate the essential features of a job module.
void produce(art::Event &evt)
ProductID put(std::unique_ptr< PROD > &&product)
void push_back(Ptr< U > const &p)
T get(std::string const &key) const
std::vector< int > fVecInt
T * make(ARGS...args) const
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
TH1F * fHisto
label for module that made the data products you need for this module
DemoModule(fhicl::ParameterSet const &pset)
std::string fInputModuleLabel
int fInt
< Sample configurable module parameters