19 #include "art/Framework/Core/EDAnalyzer.h" 
   20 #include "art/Framework/Core/ModuleMacros.h" 
   21 #include "art/Framework/Principal/Event.h" 
   22 #include "art/Framework/Principal/Handle.h" 
   23 #include "art/Framework/Principal/Run.h" 
   24 #include "art/Framework/Principal/SubRun.h" 
   25 #include "art_root_io/TFileService.h" 
   26 #include "canvas/Utilities/InputTag.h" 
   27 #include "fhiclcpp/ParameterSet.h" 
   28 #include "messagefacility/MessageLogger/MessageLogger.h" 
   57   void analyze(art::Event 
const & 
e) 
override;
 
  103   std::cout << 
"My module on event #" << e.id().event() << std::endl;
 
  105   art::ServiceHandle<art::TFileService> 
tfs;
 
  108   art::Handle< std::vector< raw::OpDetWaveform > > waveHandle;
 
  111   if(!waveHandle.isValid()){
 
  112         std::cout << Form(
"Did not find any G4 photons from a producer: %s", 
"largeant") << std::endl;
 
  115   std::cout << 
"Number of photon channel: " <<waveHandle->size() << std::endl;
 
  118   for(
auto const& wvf : (*waveHandle)){
 
  134         for(
unsigned int i=0; i<wvf.size();i++){
 
  135           wvfHist->SetBinContent(i+1,(
double)wvf[i]);
 
Simulation objects for optical detectors. 
std::stringstream histname
wvfAnaicarus(fhicl::ParameterSet const &p)
object containing MC truth information necessary for making RawDigits and doing back tracking ...
void analyze(art::Event const &e) override
wvfAnaicarus & operator=(wvfAnaicarus const &)=delete
art::ServiceHandle< art::TFileService > tfs
std::string fInputModuleName
Tools and modules for checking out the basics of the Monte Carlo. 
BEGIN_PROLOG could also be cout