All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
opdet::FlashHypothesisAna Class Reference
Inheritance diagram for opdet::FlashHypothesisAna:

Public Member Functions

 FlashHypothesisAna (fhicl::ParameterSet const &p)
 
 FlashHypothesisAna (FlashHypothesisAna const &)=delete
 
 FlashHypothesisAna (FlashHypothesisAna &&)=delete
 
FlashHypothesisAnaoperator= (FlashHypothesisAna const &)=delete
 
FlashHypothesisAnaoperator= (FlashHypothesisAna &&)=delete
 
void analyze (art::Event const &e) override
 
void beginJob () override
 

Private Attributes

std::string fMCTrackLabel
 
std::string fMCSimPhotonsLabel
 
FlashHypothesisAnaAlg fAlg
 

Detailed Description

Definition at line 34 of file FlashHypothesisAna_module.cc.

Constructor & Destructor Documentation

opdet::FlashHypothesisAna::FlashHypothesisAna ( fhicl::ParameterSet const &  p)
explicit

Definition at line 62 of file FlashHypothesisAna_module.cc.

63  :
64  EDAnalyzer(p),
65  fMCTrackLabel(p.get<std::string>("MCTrackLabel")),
66  fMCSimPhotonsLabel(p.get<std::string>("MCSimPhotonsLabel")),
67  fAlg(p.get<fhicl::ParameterSet>("FlashHypothesisAnaAlgParams"))
68  {}
pdgs p
Definition: selectors.fcl:22
opdet::FlashHypothesisAna::FlashHypothesisAna ( FlashHypothesisAna const &  )
delete
opdet::FlashHypothesisAna::FlashHypothesisAna ( FlashHypothesisAna &&  )
delete

Member Function Documentation

void opdet::FlashHypothesisAna::analyze ( art::Event const &  e)
override

Definition at line 70 of file FlashHypothesisAna_module.cc.

71  {
72 
73  art::Handle< std::vector<sim::MCTrack> > mctrackHandle;
74  e.getByLabel(fMCTrackLabel,mctrackHandle);
75  std::vector<sim::MCTrack> const& mctrackVec(*mctrackHandle);
76 
77  art::Handle< std::vector<sim::SimPhotons> > simPhotonsHandle;
78  e.getByLabel(fMCSimPhotonsLabel,simPhotonsHandle);
79  std::vector<sim::SimPhotons> const& simPhotonsVec(*simPhotonsHandle);
80 
81 
82  art::ServiceHandle<opdet::OpDigiProperties const> opdigiHandle;
83  art::ServiceHandle<phot::PhotonVisibilityService const> pvsHandle;
84 
85  opdet::OpDigiProperties const& opdigi(*opdigiHandle);
86  phot::PhotonVisibilityService const& pvs(*pvsHandle);
87 
88  fAlg.RunComparison((unsigned int)e.run(),(unsigned int)e.id().event(),
89  mctrackVec,simPhotonsVec,
90  lar::extractProviders<geo::Geometry, detinfo::LArPropertiesService>(),
91  opdigi,pvs);
92 
93  }
void RunComparison(const unsigned int run, const unsigned int event, std::vector< sim::MCTrack > const &, std::vector< sim::SimPhotons > const &, Providers_t providers, opdet::OpDigiProperties const &opdigip, phot::PhotonVisibilityService const &pvs)
process_name opdigi
do i e
void opdet::FlashHypothesisAna::beginJob ( )
override

Definition at line 95 of file FlashHypothesisAna_module.cc.

96  {
97  art::ServiceHandle<geo::Geometry const> geoHandle;
98  geo::Geometry const& geo(*geoHandle);
99 
100  art::ServiceHandle<art::TFileService const> tfs;
101 
102  fAlg.SetOutputObjects(tfs->make<TTree>("ctree","FlashHypothesisAnaTree"),
103  tfs->make<TH1F>(), tfs->make<TH1F>(), tfs->make<TH1F>(),
104  tfs->make<TH1F>(), tfs->make<TH1F>(), tfs->make<TH1F>(),
105  tfs->make<TH1F>(), tfs->make<TH1F>(), tfs->make<TH1F>(),
106  geo);
108  }
void SetOutputObjects(TTree *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, geo::Geometry const &)
The geometry of one entire detector, as served by art.
Definition: Geometry.h:181
art::ServiceHandle< art::TFileService > tfs
void FillOpDetPositions(geo::Geometry const &)
FlashHypothesisAna& opdet::FlashHypothesisAna::operator= ( FlashHypothesisAna const &  )
delete
FlashHypothesisAna& opdet::FlashHypothesisAna::operator= ( FlashHypothesisAna &&  )
delete

Member Data Documentation

FlashHypothesisAnaAlg opdet::FlashHypothesisAna::fAlg
private

Definition at line 57 of file FlashHypothesisAna_module.cc.

std::string opdet::FlashHypothesisAna::fMCSimPhotonsLabel
private

Definition at line 55 of file FlashHypothesisAna_module.cc.

std::string opdet::FlashHypothesisAna::fMCTrackLabel
private

Definition at line 54 of file FlashHypothesisAna_module.cc.


The documentation for this class was generated from the following file: