LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
Classes | |
struct | TreeParams_t |
For convenience: struct to define a set of parameters per shower to be stored in TTree. More... | |
Public Types | |
using | WorkerType = WorkerT< EDAnalyzer > |
using | ModuleType = EDAnalyzer |
Public Member Functions | |
ShowerQuality (fhicl::ParameterSet const &p) | |
ShowerQuality (ShowerQuality const &)=delete | |
ShowerQuality (ShowerQuality &&)=delete | |
ShowerQuality & | operator= (ShowerQuality const &)=delete |
ShowerQuality & | operator= (ShowerQuality &&)=delete |
void | analyze (art::Event const &e) override |
void | beginJob () override |
void | SetShowerProducer (const std::string name) |
void | SetMCShowerProducer (const std::string name) |
void | SetSimChannelProducer (const std::string name) |
void | SetMaxEnergyCut (const double energy) |
Set maximum energy for MCShowers to be considered. More... | |
void | SetMinEnergyCut (const double energy) |
Set minimum energy for MCShowers to be considered. More... | |
template<class T > | |
art::Handle< T > | GetDataOrDie (art::Event const &e, std::string producer) |
std::string | workerType () const |
bool | modifiesEvent () const |
void | registerProducts (MasterProductRegistry &, ProductDescriptions &, ModuleDescription const &) |
std::string const & | processName () const |
bool | wantAllEvents () const |
bool | wantEvent (Event const &e) |
fhicl::ParameterSetID | selectorConfig () const |
art::Handle< art::TriggerResults > | getTriggerResults (Event const &e) const |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | consumes (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ProductToken< T > | consumes (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
void | consumesMany () |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | consumesView (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ViewToken< T > | consumesView (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | mayConsume (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ProductToken< T > | mayConsume (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
void | mayConsumeMany () |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | mayConsumeView (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ViewToken< T > | mayConsumeView (InputTag const &it) |
base_engine_t & | createEngine (seed_t seed) |
base_engine_t & | createEngine (seed_t seed, std::string const &kind_of_engine_to_make) |
base_engine_t & | createEngine (seed_t seed, std::string const &kind_of_engine_to_make, label_t const &engine_label) |
seed_t | get_seed_value (fhicl::ParameterSet const &pset, char const key[]="seed", seed_t const implicit_seed=-1) |
Static Public Member Functions | |
static cet::exempt_ptr< Consumer > | non_module_context () |
Protected Member Functions | |
CurrentProcessingContext const * | currentContext () const |
detail::CachedProducts & | cachedProducts () |
void | validateConsumedProduct (BranchType const bt, ProductInfo const &pi) |
void | prepareForJob (fhicl::ParameterSet const &pset) |
void | showMissingConsumes () const |
Private Member Functions | |
void | InitializeAnaTree () |
Function to prepare TTree. More... | |
Private Attributes | |
::btutil::MCMatchAlg | fBTAlg |
Shower back tracking algorithm. More... | |
double | _mc_energy_min |
Minimum MC shower energy cut. More... | |
double | _mc_energy_max |
Maximum MC shower energy cut. More... | |
std::string | fShowerProducer |
Shower Producer's Name. More... | |
std::string | fMCShowerProducer |
MCShower Producer's Name. More... | |
std::string | fSimChannelProducer |
SimChannel Producer's Name. More... | |
TH1D * | hMatchCorrectness |
Matching correctness. More... | |
TH1D * | hVtxDX |
X difference (reco-MC) in cm. More... | |
TH1D * | hVtxDY |
Y difference (reco-MC) in cm. More... | |
TH1D * | hVtxDZ |
Z difference (reco-MC) in cm. More... | |
TH1D * | hVtxDR |
3D vtx distance between reco to MC in cm More... | |
TH1D * | hDCosX |
Direction unit vector X component difference. More... | |
TH1D * | hDCosY |
Direction unit vector Y component difference. More... | |
TH1D * | hDCosZ |
Direction unit vector Z component difference. More... | |
TH1D * | h3DAngleDiff |
Opening angle between reco & MC 3D direction. More... | |
TH2D * | hEnergyCorr |
Energy correlation reco (x) vs. MC (y) More... | |
TH1D * | hEnergyAssym |
Energy assym. parameter: (reco E - MC E) / (reco E + MC E) * 2. More... | |
TH1D * | hEnergyDiff |
Energy difference: reco E - MC E. More... | |
TH1D * | hMatchedClusterEff |
Matched 3D shower's cluster efficiency (combined across planes) More... | |
TH1D * | hMatchedClusterPur |
Matched 3D shower's cluster purity (combined across planes) More... | |
std::map< int, TH1D * > | mDEDX |
dEdx per particle per PDG code More... | |
TH1D * | hBestPlane |
Best plane id. More... | |
struct ShowerQuality::TreeParams_t | fTreeParams |
TTree * | fTree |
Analysis TTree. More... | |
Definition at line 38 of file ShowerQuality_module.cc.
|
inherited |
Definition at line 39 of file EDAnalyzer.h.
|
inherited |
Definition at line 38 of file EDAnalyzer.h.
|
explicit |
Definition at line 170 of file ShowerQuality_module.cc.
References fTree, fhicl::ParameterSet::get(), h3DAngleDiff, hBestPlane, hDCosX, hDCosY, hDCosZ, hEnergyAssym, hEnergyCorr, hEnergyDiff, hMatchCorrectness, hMatchedClusterEff, hMatchedClusterPur, hVtxDR, hVtxDX, hVtxDY, hVtxDZ, mDEDX, SetMaxEnergyCut(), SetMCShowerProducer(), SetMinEnergyCut(), SetShowerProducer(), and SetSimChannelProducer().
|
delete |
|
delete |
|
overridevirtual |
Implements art::EDAnalyzer.
Definition at line 332 of file ShowerQuality_module.cc.
References _mc_energy_max, _mc_energy_min, ShowerQuality::TreeParams_t::best_plane_id, btutil::MCMatchAlg::BTAlg(), btutil::MCMatchAlg::BuildMap(), ShowerQuality::TreeParams_t::cluster_eff, ShowerQuality::TreeParams_t::cluster_pur, btutil::MCMatchAlg::ClusterEP(), e, energy, fBTAlg, fMCShowerProducer, fShowerProducer, fSimChannelProducer, fTree, fTreeParams, h3DAngleDiff, hBestPlane, hDCosX, hDCosY, hDCosZ, hEnergyAssym, hEnergyCorr, hEnergyDiff, hMatchCorrectness, hMatchedClusterEff, hMatchedClusterPur, hVtxDR, hVtxDX, hVtxDY, hVtxDZ, art::Handle< T >::isValid(), ShowerQuality::TreeParams_t::match_correctness, ShowerQuality::TreeParams_t::mc_containment, ShowerQuality::TreeParams_t::mc_dcosx, ShowerQuality::TreeParams_t::mc_dcosy, ShowerQuality::TreeParams_t::mc_dcosz, ShowerQuality::TreeParams_t::mc_energy, ShowerQuality::TreeParams_t::mc_pdgid, ShowerQuality::TreeParams_t::mc_reco_anglediff, ShowerQuality::TreeParams_t::mc_reco_dist, ShowerQuality::TreeParams_t::mc_x, ShowerQuality::TreeParams_t::mc_y, ShowerQuality::TreeParams_t::mc_z, btutil::MCBTAlg::MCQ(), mDEDX, art::Handle< T >::provenance(), ShowerQuality::TreeParams_t::reco_dcosx, ShowerQuality::TreeParams_t::reco_dcosy, ShowerQuality::TreeParams_t::reco_dcosz, ShowerQuality::TreeParams_t::reco_dedx, ShowerQuality::TreeParams_t::reco_energy, ShowerQuality::TreeParams_t::reco_x, ShowerQuality::TreeParams_t::reco_y, ShowerQuality::TreeParams_t::reco_z, and btutil::MCMatchAlg::ShowerCorrectness().
|
overridevirtual |
Reimplemented from art::EDAnalyzer.
Definition at line 210 of file ShowerQuality_module.cc.
References fMCShowerProducer, fShowerProducer, fSimChannelProducer, fTree, h3DAngleDiff, hBestPlane, hDCosX, hDCosY, hDCosZ, hEnergyAssym, hEnergyCorr, hEnergyDiff, hMatchCorrectness, hMatchedClusterEff, hMatchedClusterPur, hVtxDR, hVtxDX, hVtxDY, hVtxDZ, InitializeAnaTree(), and art::TFileDirectory::make().
|
inlineprotectedinherited |
Definition at line 79 of file EventObserverBase.h.
References art::EventObserverBase::selectors_.
Referenced by art::EDAnalyzer::doEvent(), and art::OutputModule::doWriteEvent().
|
inherited |
|
inherited |
Definition at line 147 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inherited |
Definition at line 162 of file Consumer.h.
|
inherited |
|
inherited |
Definition at line 172 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inherited |
Definition at line 26 of file EngineCreator.cc.
References art::EngineCreator::rng().
Referenced by evgen::CosmicsGen::CosmicsGen(), rndm::NuRandomService::createEngine(), cluster::fuzzyCluster::fuzzyCluster(), cluster::HoughLineFinder::HoughLineFinder(), art::MixFilter< T >::initEngine_(), larg4::LArG4::LArG4(), evgen::LightSource::LightSource(), evgen::NeutronOsc::NeutronOsc(), evgen::NucleonDecay::NucleonDecay(), opdet::OpMCDigi::OpMCDigi(), opdet::OptDetDigitizer::OptDetDigitizer(), phot::PhotonLibraryPropagation::PhotonLibraryPropagation(), detsim::SimDriftElectrons::SimDriftElectrons(), evgen::SingleGen::SingleGen(), evgen::SNNueAr40CCGen::SNNueAr40CCGen(), ToyOneShowerGen::ToyOneShowerGen(), and trkf::Track3DKalman::Track3DKalman().
|
inherited |
Definition at line 32 of file EngineCreator.cc.
References art::EngineCreator::rng().
|
inherited |
Definition at line 40 of file EngineCreator.cc.
References art::EngineCreator::rng().
|
protectedinherited |
Definition at line 114 of file EDAnalyzer.cc.
References art::EDAnalyzer::current_context_.
Referenced by art::EDAnalyzer::workerType().
|
inherited |
Definition at line 49 of file EngineCreator.cc.
References fhicl::ParameterSet::get().
Referenced by art::MixFilter< T >::initEngine_().
|
inline |
Definition at line 72 of file ShowerQuality_module.cc.
References art::DataViewImpl::getByLabel(), and art::Handle< T >::isValid().
|
inlineinherited |
Definition at line 61 of file EventObserverBase.h.
References art::detail::CachedProducts::getOneTriggerResults(), and art::EventObserverBase::selectors_.
Referenced by art::OutputModule::doWriteEvent().
|
private |
Function to prepare TTree.
Definition at line 592 of file ShowerQuality_module.cc.
References ShowerQuality::TreeParams_t::best_plane_id, ShowerQuality::TreeParams_t::cluster_eff, ShowerQuality::TreeParams_t::cluster_pur, DEFINE_ART_MODULE, fTree, fTreeParams, ShowerQuality::TreeParams_t::match_correctness, ShowerQuality::TreeParams_t::mc_containment, ShowerQuality::TreeParams_t::mc_dcosx, ShowerQuality::TreeParams_t::mc_dcosy, ShowerQuality::TreeParams_t::mc_dcosz, ShowerQuality::TreeParams_t::mc_energy, ShowerQuality::TreeParams_t::mc_pdgid, ShowerQuality::TreeParams_t::mc_reco_anglediff, ShowerQuality::TreeParams_t::mc_reco_dist, ShowerQuality::TreeParams_t::mc_x, ShowerQuality::TreeParams_t::mc_y, ShowerQuality::TreeParams_t::mc_z, ShowerQuality::TreeParams_t::reco_dcosx, ShowerQuality::TreeParams_t::reco_dcosy, ShowerQuality::TreeParams_t::reco_dcosz, ShowerQuality::TreeParams_t::reco_dedx, ShowerQuality::TreeParams_t::reco_dedx_U, ShowerQuality::TreeParams_t::reco_dedx_V, ShowerQuality::TreeParams_t::reco_dedx_Y, ShowerQuality::TreeParams_t::reco_energy, ShowerQuality::TreeParams_t::reco_x, ShowerQuality::TreeParams_t::reco_y, and ShowerQuality::TreeParams_t::reco_z.
Referenced by beginJob().
|
inherited |
|
inherited |
Definition at line 190 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inherited |
Definition at line 205 of file Consumer.h.
|
inherited |
|
inherited |
Definition at line 215 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inlineinherited |
Definition at line 25 of file EventObserverBase.h.
|
staticinherited |
Definition at line 76 of file Consumer.cc.
Referenced by art::RootOutput::beginSubRun(), art::OutputModule::doBeginRun(), art::OutputModule::doBeginSubRun(), art::OutputModule::doEndRun(), art::OutputModule::doEndSubRun(), art::ProducingService::doPostReadEvent(), art::ProducingService::doPostReadRun(), art::ProducingService::doPostReadSubRun(), art::OutputModule::doWriteEvent(), art::ProcessPackage< L >::postScheduleSignal(), art::BeginEndPackage< Level::Run >::Begin::postScheduleSignal(), art::BeginEndPackage< Level::Run >::End::postScheduleSignal(), art::BeginEndPackage< Level::SubRun >::Begin::postScheduleSignal(), art::BeginEndPackage< Level::SubRun >::End::postScheduleSignal(), art::ProcessPackage< L >::preScheduleSignal(), art::BeginEndPackage< Level::Run >::Begin::preScheduleSignal(), art::BeginEndPackage< Level::SubRun >::Begin::preScheduleSignal(), art::EventProcessor::readEvent(), art::EventProcessor::readRun(), art::EmptyEvent::readRun_(), art::EventProcessor::readSubRun(), and art::EmptyEvent::readSubRun_().
|
delete |
|
delete |
|
protectedinherited |
Definition at line 89 of file Consumer.cc.
References fhicl::ParameterSet::get_if_present().
Referenced by art::EDProducer::doBeginJob(), art::EDFilter::doBeginJob(), and art::EDAnalyzer::doBeginJob().
|
inlineinherited |
Definition at line 41 of file EventObserverBase.h.
References art::EventObserverBase::process_name_.
Referenced by art::FileDumperOutput::printPrincipal(), and art::RootOutput::RootOutput().
|
inlineinherited |
Definition at line 33 of file EventObserverBase.h.
|
inlineinherited |
Definition at line 56 of file EventObserverBase.h.
References art::EventObserverBase::selector_config_id_.
Referenced by art::RootOutputFile::writeOne().
|
inline |
Set maximum energy for MCShowers to be considered.
Definition at line 66 of file ShowerQuality_module.cc.
References _mc_energy_max, and energy.
Referenced by ShowerQuality().
|
inline |
Definition at line 60 of file ShowerQuality_module.cc.
References fMCShowerProducer.
Referenced by ShowerQuality().
|
inline |
Set minimum energy for MCShowers to be considered.
Definition at line 69 of file ShowerQuality_module.cc.
References _mc_energy_min, and energy.
Referenced by ShowerQuality().
|
inline |
Setter function for a shower producer name.
Definition at line 58 of file ShowerQuality_module.cc.
References fShowerProducer.
Referenced by ShowerQuality().
|
inline |
Definition at line 62 of file ShowerQuality_module.cc.
References fSimChannelProducer.
Referenced by ShowerQuality().
|
protectedinherited |
Definition at line 125 of file Consumer.cc.
Referenced by art::EDProducer::doEndJob(), art::EDFilter::doEndJob(), art::EDAnalyzer::doEndJob(), and art::RootOutput::endJob().
|
protectedinherited |
Definition at line 101 of file Consumer.cc.
References art::errors::ProductRegistrationFailure.
|
inlineinherited |
Definition at line 46 of file EventObserverBase.h.
References art::EventObserverBase::wantAllEvents_.
Referenced by art::EDAnalyzer::doEvent(), art::OutputModule::doEvent(), art::OutputModule::doWriteEvent(), art::RootOutput::RootOutput(), and art::OutputWorker::wantAllEvents().
|
inlineinherited |
Definition at line 51 of file EventObserverBase.h.
References art::EventObserverBase::selectors_, and art::detail::CachedProducts::wantEvent().
Referenced by art::EDAnalyzer::doEvent(), art::OutputModule::doEvent(), and art::OutputModule::doWriteEvent().
|
inlineinherited |
Definition at line 109 of file EDAnalyzer.h.
References art::EDAnalyzer::currentContext().
|
private |
Maximum MC shower energy cut.
Definition at line 95 of file ShowerQuality_module.cc.
Referenced by analyze(), and SetMaxEnergyCut().
|
private |
Minimum MC shower energy cut.
Definition at line 92 of file ShowerQuality_module.cc.
Referenced by analyze(), and SetMinEnergyCut().
|
private |
Shower back tracking algorithm.
Definition at line 89 of file ShowerQuality_module.cc.
Referenced by analyze().
|
private |
MCShower Producer's Name.
Definition at line 101 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and SetMCShowerProducer().
|
private |
Shower Producer's Name.
Definition at line 98 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and SetShowerProducer().
|
private |
SimChannel Producer's Name.
Definition at line 104 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and SetSimChannelProducer().
|
private |
Analysis TTree.
Definition at line 161 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), InitializeAnaTree(), and ShowerQuality().
|
private |
Referenced by analyze(), and InitializeAnaTree().
|
private |
Opening angle between reco & MC 3D direction.
Definition at line 117 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and ShowerQuality().
|
private |
Best plane id.
Definition at line 131 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and ShowerQuality().
|
private |
Direction unit vector X component difference.
Definition at line 114 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and ShowerQuality().
|
private |
Direction unit vector Y component difference.
Definition at line 115 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and ShowerQuality().
|
private |
Direction unit vector Z component difference.
Definition at line 116 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and ShowerQuality().
|
private |
Energy assym. parameter: (reco E - MC E) / (reco E + MC E) * 2.
Definition at line 121 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and ShowerQuality().
|
private |
Energy correlation reco (x) vs. MC (y)
Definition at line 119 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and ShowerQuality().
|
private |
Energy difference: reco E - MC E.
Definition at line 122 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and ShowerQuality().
|
private |
Matching correctness.
Definition at line 107 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and ShowerQuality().
|
private |
Matched 3D shower's cluster efficiency (combined across planes)
Definition at line 124 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and ShowerQuality().
|
private |
Matched 3D shower's cluster purity (combined across planes)
Definition at line 125 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and ShowerQuality().
|
private |
3D vtx distance between reco to MC in cm
Definition at line 112 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and ShowerQuality().
|
private |
X difference (reco-MC) in cm.
Definition at line 109 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and ShowerQuality().
|
private |
Y difference (reco-MC) in cm.
Definition at line 110 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and ShowerQuality().
|
private |
Z difference (reco-MC) in cm.
Definition at line 111 of file ShowerQuality_module.cc.
Referenced by analyze(), beginJob(), and ShowerQuality().
|
private |
dEdx per particle per PDG code
Definition at line 128 of file ShowerQuality_module.cc.
Referenced by analyze(), and ShowerQuality().