10 #include "art_root_io/TFileService.h"
11 #include "art/Framework/Core/EDAnalyzer.h"
12 #include "art/Framework/Core/ModuleMacros.h"
13 #include "art/Framework/Principal/Event.h"
14 #include "art/Framework/Principal/Handle.h"
15 #include "art/Framework/Services/Registry/ServiceHandle.h"
16 #include "canvas/Utilities/InputTag.h"
17 #include "fhiclcpp/ParameterSet.h"
39 void analyze(art::Event
const &
e)
override;
55 , fEDepTag{p.get<art::InputTag>(
"EDepModuleLabel")}
60 auto const& edep_handle = e.getValidHandle< std::vector<sim::SimDriftedElectronCluster> >(
fEDepTag);
61 auto const& edep_vec(*edep_handle);
62 std::cout<<
"=====================edep"<<edep_vec.size()<<std::endl;
63 for(
auto const& edep : edep_vec){
64 fNtuple->Fill(e.run(),e.event(),
65 edep.NumberOfElectrons(),
72 art::ServiceHandle<art::TFileService const>
tfs;
73 fNtuple = tfs->make<TNtuple>(
"nt_is",
"EDep IS Calc Ntuple",
"run:event:ne:t");
contains objects relating to SimDriftedElectronCluster
SimDriftedElectronClusterAna & operator=(SimDriftedElectronClusterAna const &)=delete
SimDriftedElectronClusterAna(fhicl::ParameterSet const &p)
void analyze(art::Event const &e) override
art::ServiceHandle< art::TFileService > tfs
BEGIN_PROLOG could also be cout