Public Member Functions | |
ShowerAnalysis (const fhicl::ParameterSet &pset) | |
~ShowerAnalysis () | |
void | analyze (const art::Event &evt) |
void | MakeDataProducts () |
void | FillData (const std::map< int, std::shared_ptr< ShowerParticle > > &particles) |
void | FillPi0Data (const std::map< int, std::shared_ptr< ShowerParticle > > &particles, const std::vector< int > &pi0Decays) |
int | FindTrueParticle (detinfo::DetectorClocksData const &clockData, const std::vector< art::Ptr< recob::Hit > > &hits) |
int | FindParticleID (detinfo::DetectorClocksData const &clockData, const art::Ptr< recob::Hit > &hit) |
std::vector< art::Ptr< recob::Hit > > | FindTrueHits (detinfo::DetectorClocksData const &clockData, const std::vector< art::Ptr< recob::Hit > > &hits, int trueParticle) |
Public Member Functions inherited from art::EDAnalyzer | |
EDAnalyzer (fhicl::ParameterSet const &pset) | |
template<typename Config > | |
EDAnalyzer (Table< Config > const &config) | |
std::string | workerType () const |
Public Member Functions inherited from art::detail::Analyzer | |
virtual | ~Analyzer () noexcept |
Analyzer (fhicl::ParameterSet const &pset) | |
template<typename Config > | |
Analyzer (Table< Config > const &config) | |
void | doBeginJob (SharedResources const &resources) |
void | doEndJob () |
void | doRespondToOpenInputFile (FileBlock const &fb) |
void | doRespondToCloseInputFile (FileBlock const &fb) |
void | doRespondToOpenOutputFiles (FileBlock const &fb) |
void | doRespondToCloseOutputFiles (FileBlock const &fb) |
bool | doBeginRun (RunPrincipal &rp, ModuleContext const &mc) |
bool | doEndRun (RunPrincipal &rp, ModuleContext const &mc) |
bool | doBeginSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
bool | doEndSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
bool | doEvent (EventPrincipal &ep, ModuleContext const &mc, std::atomic< std::size_t > &counts_run, std::atomic< std::size_t > &counts_passed, std::atomic< std::size_t > &counts_failed) |
Public Member Functions inherited from art::Observer | |
~Observer () noexcept | |
Observer (Observer const &)=delete | |
Observer (Observer &&)=delete | |
Observer & | operator= (Observer const &)=delete |
Observer & | operator= (Observer &&)=delete |
void | registerProducts (ProductDescriptions &, ModuleDescription const &) |
void | fillDescriptions (ModuleDescription const &) |
fhicl::ParameterSetID | selectorConfig () const |
Public Member Functions inherited from art::ModuleBase | |
virtual | ~ModuleBase () noexcept |
ModuleBase () | |
ModuleDescription const & | moduleDescription () const |
void | setModuleDescription (ModuleDescription const &) |
std::array< std::vector< ProductInfo >, NumBranchTypes > const & | getConsumables () const |
void | sortConsumables (std::string const ¤t_process_name) |
template<typename T , BranchType BT> | |
ViewToken< T > | consumesView (InputTag const &tag) |
template<typename T , BranchType BT> | |
ViewToken< T > | mayConsumeView (InputTag const &tag) |
Additional Inherited Members | |
Public Types inherited from art::EDAnalyzer | |
using | WorkerType = WorkerT< EDAnalyzer > |
using | ModuleType = EDAnalyzer |
Protected Member Functions inherited from art::Observer | |
std::string const & | processName () const |
bool | wantAllEvents () const noexcept |
bool | wantEvent (ScheduleID id, Event const &e) const |
Handle< TriggerResults > | getTriggerResults (Event const &e) const |
Observer (fhicl::ParameterSet const &config) | |
Observer (std::vector< std::string > const &select_paths, std::vector< std::string > const &reject_paths, fhicl::ParameterSet const &config) | |
Protected Member Functions inherited from art::ModuleBase | |
ConsumesCollector & | consumesCollector () |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | consumes (InputTag const &) |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | consumesView (InputTag const &) |
template<typename T , BranchType = InEvent> | |
void | consumesMany () |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | mayConsume (InputTag const &) |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | mayConsumeView (InputTag const &) |
template<typename T , BranchType = InEvent> | |
void | mayConsumeMany () |
Definition at line 194 of file ShowerAnalysis_module.cc.
showerAna::ShowerAnalysis::ShowerAnalysis | ( | const fhicl::ParameterSet & | pset | ) |
Definition at line 243 of file ShowerAnalysis_module.cc.
showerAna::ShowerAnalysis::~ShowerAnalysis | ( | ) |
Definition at line 254 of file ShowerAnalysis_module.cc.
void showerAna::ShowerAnalysis::analyze | ( | const art::Event & | evt | ) |
Definition at line 257 of file ShowerAnalysis_module.cc.
void showerAna::ShowerAnalysis::FillData | ( | const std::map< int, std::shared_ptr< ShowerParticle > > & | particles | ) |
Definition at line 365 of file ShowerAnalysis_module.cc.
void showerAna::ShowerAnalysis::FillPi0Data | ( | const std::map< int, std::shared_ptr< ShowerParticle > > & | particles, |
const std::vector< int > & | pi0Decays | ||
) |
Fill data products related to pi0s We only call this function if there are exactly two decay products, so we can assume the decay was pi0 -> gamma gamma
Definition at line 436 of file ShowerAnalysis_module.cc.
int showerAna::ShowerAnalysis::FindParticleID | ( | detinfo::DetectorClocksData const & | clockData, |
const art::Ptr< recob::Hit > & | hit | ||
) |
Returns the true track ID associated with this hit (if more than one, returns the one with highest energy)
Definition at line 496 of file ShowerAnalysis_module.cc.
std::vector< art::Ptr< recob::Hit > > showerAna::ShowerAnalysis::FindTrueHits | ( | detinfo::DetectorClocksData const & | clockData, |
const std::vector< art::Ptr< recob::Hit > > & | hits, | ||
int | trueParticle | ||
) |
Definition at line 515 of file ShowerAnalysis_module.cc.
int showerAna::ShowerAnalysis::FindTrueParticle | ( | detinfo::DetectorClocksData const & | clockData, |
const std::vector< art::Ptr< recob::Hit > > & | hits | ||
) |
Returns the true particle most likely associated with this shower
Definition at line 469 of file ShowerAnalysis_module.cc.
void showerAna::ShowerAnalysis::MakeDataProducts | ( | ) |
Definition at line 527 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 218 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 214 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 216 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 216 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 214 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 216 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 216 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 214 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 223 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 221 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 226 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 227 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 227 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 226 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 233 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 226 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 227 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 227 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 226 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 228 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 229 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 229 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 228 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 230 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 231 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 232 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 230 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 233 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 236 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 237 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 238 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 239 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 228 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 229 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 229 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 230 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 231 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 232 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 230 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 230 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 230 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 232 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 228 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 230 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 232 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 230 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 232 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 219 of file ShowerAnalysis_module.cc.
|
private |
Definition at line 220 of file ShowerAnalysis_module.cc.