LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Public Types | |
using | ModuleType = EDProducer |
template<typename UserConfig , typename KeysToIgnore = void> | |
using | Table = Modifier::Table< UserConfig, KeysToIgnore > |
Public Member Functions | |
ShowerReco (fhicl::ParameterSet const &pset) | |
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) |
void | fillProductDescriptions () |
void | registerProducts (ProductDescriptions &productsToRegister) |
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) |
std::unique_ptr< Worker > | makeWorker (WorkerParams const &wp) |
template<typename T , BranchType BT> | |
ViewToken< T > | consumesView (InputTag const &tag) |
template<typename T , BranchType BT> | |
ViewToken< T > | mayConsumeView (InputTag const &tag) |
Protected Member Functions | |
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 () |
Private Member Functions | |
void | beginJob () |
void | beginRun (art::Run &run) |
void | produce (art::Event &evt) |
void | GetVertexAndAnglesFromCluster (art::Ptr< recob::Cluster > clust, unsigned int plane) |
void | LongTransEnergy (geo::GeometryCore const *geom, detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, unsigned int set, std::vector< art::Ptr< recob::Hit >> hitlist) |
void | ClearandResizeVectors (unsigned int nPlanes) |
Private Attributes | |
int | fRun |
int | fEvent |
int | fSubRun |
float | slope [3] |
float | angle [3] |
std::string | fClusterModuleLabel |
float | ftimetick |
double | fMean_wire_pitch |
fhicl::ParameterSet | fCaloPSet |
std::vector< double > | fRMS_2cm |
std::vector< int > | fNpoints_2cm |
std::vector< double > | fCorr_MeV_2cm |
std::vector< double > | fCorr_Charge_2cm |
std::vector< int > | fNpoints_corr_ADC_2cm |
std::vector< int > | fNpoints_corr_MeV_2cm |
std::vector< double > | fTotChargeADC |
std::vector< double > | fTotChargeMeV |
std::vector< double > | fTotChargeMeV_MIPs |
std::vector< double > | fChargeADC_2cm |
std::vector< double > | fChargeMeV_2cm |
std::vector< double > | fChargeMeV_2cm_refined |
std::vector< double > | fChargeMeV_2cm_axsum |
std::vector< std::vector< double > > | fDistribChargeADC |
std::vector< std::vector< double > > | fDistribChargeMeV |
std::vector< std::vector< double > > | fDistribHalfChargeMeV |
std::vector< std::vector< double > > | fDistribChargeposition |
std::vector< std::vector< double > > | fSingleEvtAngle |
std::vector< std::vector< double > > | fSingleEvtAngleVal |
std::vector< unsigned int > | fWire_vertex |
std::vector< double > | fTime_vertex |
std::vector< double > | fWire_vertexError |
std::vector< double > | fTime_vertexError |
std::vector< unsigned int > | fWire_last |
std::vector< double > | fTime_last |
std::vector< double > | xyz_vertex_fit |
std::vector< std::vector< double > > | fNPitch |
float | Kin_En |
std::vector< float > | vdEdx |
std::vector< float > | vresRange |
std::vector< float > | vdQdx |
std::vector< float > | deadwire |
float | Trk_Length |
float | fTrkPitchC |
float | fdEdxlength |
float | fcalodEdxlength |
bool | fUseArea |
double | xphi |
double | xtheta |
unsigned int | fNPlanes |
unsigned int | fNAngles |
TTree * | ftree_shwf |
double | fWirePitch |
double | fTimeTick |
double | fDriftVelocity |
double | fWireTimetoCmCm |
std::vector< int > | fNhitsperplane |
std::vector< double > | fTotADCperplane |
Definition at line 60 of file ShowerReco_module.cc.
|
inherited |
Definition at line 17 of file EDProducer.h.
|
inherited |
Definition at line 26 of file Producer.h.
|
explicit |
Definition at line 164 of file ShowerReco_module.cc.
References fcalodEdxlength, fCaloPSet, fClusterModuleLabel, fdEdxlength, fUseArea, and fhicl::ParameterSet::get().
|
privatevirtual |
Get TFileService and define output Histograms
All-knowing tree with reconstruction information
Reimplemented from art::EDProducer.
Definition at line 183 of file ShowerReco_module.cc.
References fChargeADC_2cm, fChargeMeV_2cm, fChargeMeV_2cm_axsum, fChargeMeV_2cm_refined, fDistribChargeADC, fDistribChargeMeV, fDistribChargeposition, fDistribHalfChargeMeV, fEvent, fMean_wire_pitch, fNAngles, fNhitsperplane, fNPitch, fNPlanes, fNpoints_2cm, fRMS_2cm, fRun, fSubRun, ftimetick, fTotADCperplane, fTotChargeADC, fTotChargeMeV, fTotChargeMeV_MIPs, ftree_shwf, geo::GeometryCore::Nplanes(), detinfo::sampling_rate(), geo::GeometryCore::WirePitch(), xphi, xtheta, and xyz_vertex_fit.
|
privatevirtual |
Reimplemented from art::EDProducer.
Definition at line 233 of file ShowerReco_module.cc.
References fChargeADC_2cm, fChargeMeV_2cm, fChargeMeV_2cm_axsum, fChargeMeV_2cm_refined, fCorr_Charge_2cm, fCorr_MeV_2cm, fDistribChargeADC, fDistribChargeMeV, fDistribChargeposition, fDistribHalfChargeMeV, fDriftVelocity, fNAngles, fNhitsperplane, fNPitch, fNPlanes, fNpoints_2cm, fNpoints_corr_ADC_2cm, fNpoints_corr_MeV_2cm, fRMS_2cm, fTime_last, fTime_vertex, fTime_vertexError, fTimeTick, fTotADCperplane, fTotChargeADC, fTotChargeMeV, fTotChargeMeV_MIPs, fWire_last, fWire_vertex, fWire_vertexError, fWirePitch, fWireTimetoCmCm, detinfo::sampling_rate(), vdEdx, vdQdx, vresRange, and xyz_vertex_fit.
|
private |
Referenced by produce().
|
protectedinherited |
Definition at line 61 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::consumes().
|
protectedinherited |
|
protectedinherited |
Definition at line 75 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::consumesMany().
|
protectedinherited |
|
inherited |
Definition at line 68 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::consumesView().
|
inherited |
Definition at line 22 of file Producer.cc.
References art::detail::Producer::beginJobWithFrame(), and art::detail::Producer::setupQueues().
|
inherited |
Definition at line 65 of file Producer.cc.
References art::detail::Producer::beginRunWithFrame(), art::RangeSet::forRun(), art::RunPrincipal::makeRun(), r, art::RunPrincipal::runID(), and art::ModuleContext::scheduleID().
|
inherited |
Definition at line 85 of file Producer.cc.
References art::detail::Producer::beginSubRunWithFrame(), art::RangeSet::forSubRun(), art::SubRunPrincipal::makeSubRun(), art::ModuleContext::scheduleID(), and art::SubRunPrincipal::subRunID().
|
inherited |
Definition at line 30 of file Producer.cc.
References art::detail::Producer::endJobWithFrame().
|
inherited |
Definition at line 75 of file Producer.cc.
References art::detail::Producer::endRunWithFrame(), art::RunPrincipal::makeRun(), r, art::ModuleContext::scheduleID(), and art::Principal::seenRanges().
|
inherited |
Definition at line 95 of file Producer.cc.
References art::detail::Producer::endSubRunWithFrame(), art::SubRunPrincipal::makeSubRun(), art::ModuleContext::scheduleID(), and art::Principal::seenRanges().
|
inherited |
Definition at line 105 of file Producer.cc.
References art::detail::Producer::checkPutProducts_, e, art::EventPrincipal::makeEvent(), art::detail::Producer::produceWithFrame(), and art::ModuleContext::scheduleID().
|
inherited |
Definition at line 44 of file Producer.cc.
References art::detail::Producer::respondToCloseInputFileWithFrame().
|
inherited |
Definition at line 58 of file Producer.cc.
References art::detail::Producer::respondToCloseOutputFilesWithFrame().
|
inherited |
Definition at line 37 of file Producer.cc.
References art::detail::Producer::respondToOpenInputFileWithFrame().
|
inherited |
Definition at line 51 of file Producer.cc.
References art::detail::Producer::respondToOpenOutputFilesWithFrame().
|
inherited |
Definition at line 10 of file Modifier.cc.
References art::ProductRegistryHelper::fillDescriptions(), and art::ModuleBase::moduleDescription().
|
inherited |
Definition at line 43 of file ModuleBase.cc.
References art::ModuleBase::collector_, and art::ConsumesCollector::getConsumables().
|
private |
Actual routine that reconstruct the shower
Definition at line 801 of file ShowerReco_module.cc.
References angle, DEFINE_ART_MODULE, recob::Cluster::EndTick(), recob::Cluster::EndWire(), fTime_last, fTime_vertex, fTime_vertexError, fWire_last, fWire_vertex, fWire_vertexError, recob::Cluster::SigmaStartTick(), recob::Cluster::SigmaStartWire(), slope, recob::Cluster::StartAngle(), recob::Cluster::StartTick(), and recob::Cluster::StartWire().
Referenced by produce().
|
private |
third loop to get only points inside of 1RMS of value.
Definition at line 603 of file ShowerReco_module.cc.
References tca::dEdx(), calo::CalorimetryAlg::dEdx_AMP(), calo::CalorimetryAlg::dEdx_AREA(), fcalodEdxlength, fCaloPSet, fChargeMeV_2cm, fChargeMeV_2cm_refined, fCorr_MeV_2cm, fdEdxlength, fDistribChargeMeV, fDistribChargeposition, fNPitch, fNPlanes, fNpoints_2cm, fNpoints_corr_MeV_2cm, fRMS_2cm, fTime_vertex, fTotChargeADC, fTotChargeMeV, fTrkPitchC, fUseArea, fWire_vertex, fWireTimetoCmCm, geo::kCollection, Kin_En, geo::kMysteryType, geo::GeometryCore::SignalType(), slope, lar::to_element, Trk_Length, vdEdx, vdQdx, vresRange, xphi, and xtheta.
Referenced by produce().
|
inherited |
Definition at line 37 of file ModuleBase.cc.
References art::ModuleBase::doMakeWorker(), and art::NumBranchTypes.
|
protectedinherited |
Definition at line 82 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsume().
|
protectedinherited |
Definition at line 96 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsumeMany().
|
protectedinherited |
|
inherited |
Definition at line 89 of file ModuleBase.h.
References art::ModuleBase::collector_, and art::ConsumesCollector::mayConsumeView().
|
inherited |
Definition at line 13 of file ModuleBase.cc.
References art::errors::LogicError.
Referenced by art::OutputModule::doRespondToOpenInputFile(), art::OutputModule::doWriteEvent(), art::Modifier::fillProductDescriptions(), art::OutputModule::makePlugins_(), art::OutputWorker::OutputWorker(), reco::shower::LArPandoraModularShowerCreation::produce(), art::Modifier::registerProducts(), and art::OutputModule::registerProducts().
|
privatevirtual |
Get Clusters
Implements art::EDProducer.
Definition at line 350 of file ShowerReco_module.cc.
References angle, ClearandResizeVectors(), util::CreateAssn(), deadwire, e, art::EventID::event(), fChargeADC_2cm, fChargeMeV_2cm, fClusterModuleLabel, fCorr_Charge_2cm, fCorr_MeV_2cm, fDriftVelocity, fEvent, fNAngles, fNhitsperplane, fNPlanes, fNpoints_2cm, fNpoints_corr_ADC_2cm, fNpoints_corr_MeV_2cm, fRMS_2cm, fRun, fSubRun, fTime_vertex, fTime_vertexError, fTimeTick, fTotADCperplane, fTotChargeADC, fTotChargeMeV, fTotChargeMeV_MIPs, ftree_shwf, fTrkPitchC, fWire_last, fWire_vertex, fWire_vertexError, art::ProductRetriever::getByLabel(), art::ProductRetriever::getProductID(), GetVertexAndAnglesFromCluster(), hits(), art::Event::id(), util::kBogusD, art::Ptr< T >::key(), Kin_En, LongTransEnergy(), geo::PlaneID::Plane, art::ProductRetriever::productGetter(), art::PtrVector< T >::push_back(), art::Event::put(), art::EventID::run(), detinfo::sampling_rate(), recob::Shower::set_direction(), recob::Shower::set_direction_err(), art::PtrVector< T >::size(), art::EventID::subRun(), detinfo::trigger_offset(), Trk_Length, vdEdx, vdQdx, vresRange, X, xphi, xtheta, xyz_vertex_fit, y, and z.
|
inherited |
Definition at line 16 of file Modifier.cc.
References art::ModuleBase::moduleDescription(), and art::ProductRegistryHelper::registerProducts().
|
inherited |
|
inherited |
Definition at line 49 of file ModuleBase.cc.
References art::ModuleBase::collector_, and art::ConsumesCollector::sortConsumables().
|
private |
Definition at line 83 of file ShowerReco_module.cc.
Referenced by GetVertexAndAnglesFromCluster(), and produce().
|
private |
Definition at line 140 of file ShowerReco_module.cc.
Referenced by produce().
|
private |
Definition at line 145 of file ShowerReco_module.cc.
Referenced by LongTransEnergy(), and ShowerReco().
|
private |
Definition at line 90 of file ShowerReco_module.cc.
Referenced by LongTransEnergy(), and ShowerReco().
|
private |
Definition at line 104 of file ShowerReco_module.cc.
Referenced by beginJob(), beginRun(), and produce().
|
private |
Definition at line 105 of file ShowerReco_module.cc.
Referenced by beginJob(), beginRun(), LongTransEnergy(), and produce().
|
private |
Definition at line 108 of file ShowerReco_module.cc.
Referenced by beginJob(), and beginRun().
|
private |
Definition at line 107 of file ShowerReco_module.cc.
Referenced by beginJob(), beginRun(), and LongTransEnergy().
|
private |
Definition at line 85 of file ShowerReco_module.cc.
Referenced by produce(), and ShowerReco().
|
private |
Definition at line 95 of file ShowerReco_module.cc.
Referenced by beginRun(), and produce().
|
private |
Definition at line 94 of file ShowerReco_module.cc.
Referenced by beginRun(), LongTransEnergy(), and produce().
|
private |
Definition at line 143 of file ShowerReco_module.cc.
Referenced by LongTransEnergy(), and ShowerReco().
|
private |
Definition at line 110 of file ShowerReco_module.cc.
Referenced by beginJob(), and beginRun().
|
private |
Definition at line 112 of file ShowerReco_module.cc.
Referenced by beginJob(), beginRun(), and LongTransEnergy().
|
private |
Definition at line 115 of file ShowerReco_module.cc.
Referenced by beginJob(), beginRun(), and LongTransEnergy().
|
private |
Definition at line 113 of file ShowerReco_module.cc.
Referenced by beginJob(), and beginRun().
|
private |
Definition at line 156 of file ShowerReco_module.cc.
Referenced by beginRun(), and produce().
|
private |
Definition at line 80 of file ShowerReco_module.cc.
Referenced by beginJob(), and produce().
|
private |
Definition at line 89 of file ShowerReco_module.cc.
Referenced by beginJob().
|
private |
Definition at line 150 of file ShowerReco_module.cc.
Referenced by beginJob(), beginRun(), and produce().
|
private |
Definition at line 159 of file ShowerReco_module.cc.
Referenced by beginJob(), beginRun(), and produce().
|
private |
Definition at line 133 of file ShowerReco_module.cc.
Referenced by beginJob(), beginRun(), and LongTransEnergy().
|
private |
Definition at line 149 of file ShowerReco_module.cc.
Referenced by beginJob(), beginRun(), LongTransEnergy(), and produce().
|
private |
Definition at line 93 of file ShowerReco_module.cc.
Referenced by beginJob(), beginRun(), LongTransEnergy(), and produce().
|
private |
Definition at line 97 of file ShowerReco_module.cc.
Referenced by beginRun(), and produce().
|
private |
Definition at line 98 of file ShowerReco_module.cc.
Referenced by beginRun(), LongTransEnergy(), and produce().
|
private |
Definition at line 92 of file ShowerReco_module.cc.
Referenced by beginJob(), beginRun(), LongTransEnergy(), and produce().
|
private |
Definition at line 80 of file ShowerReco_module.cc.
Referenced by beginJob(), and produce().
|
private |
Definition at line 117 of file ShowerReco_module.cc.
|
private |
Definition at line 118 of file ShowerReco_module.cc.
|
private |
Definition at line 80 of file ShowerReco_module.cc.
Referenced by beginJob(), and produce().
|
private |
Definition at line 127 of file ShowerReco_module.cc.
Referenced by beginRun(), and GetVertexAndAnglesFromCluster().
|
private |
Definition at line 121 of file ShowerReco_module.cc.
Referenced by beginRun(), GetVertexAndAnglesFromCluster(), LongTransEnergy(), and produce().
|
private |
Definition at line 124 of file ShowerReco_module.cc.
Referenced by beginRun(), GetVertexAndAnglesFromCluster(), and produce().
|
private |
Definition at line 87 of file ShowerReco_module.cc.
Referenced by beginJob().
|
private |
Definition at line 155 of file ShowerReco_module.cc.
Referenced by beginRun(), and produce().
|
private |
Definition at line 160 of file ShowerReco_module.cc.
Referenced by beginJob(), beginRun(), and produce().
|
private |
Definition at line 100 of file ShowerReco_module.cc.
Referenced by beginJob(), beginRun(), LongTransEnergy(), and produce().
|
private |
Definition at line 101 of file ShowerReco_module.cc.
Referenced by beginJob(), beginRun(), LongTransEnergy(), and produce().
|
private |
Definition at line 102 of file ShowerReco_module.cc.
Referenced by beginJob(), beginRun(), and produce().
|
private |
Definition at line 151 of file ShowerReco_module.cc.
Referenced by beginJob(), and produce().
|
private |
Definition at line 142 of file ShowerReco_module.cc.
Referenced by LongTransEnergy(), and produce().
|
private |
Definition at line 146 of file ShowerReco_module.cc.
Referenced by LongTransEnergy(), and ShowerReco().
|
private |
Definition at line 126 of file ShowerReco_module.cc.
Referenced by beginRun(), GetVertexAndAnglesFromCluster(), and produce().
|
private |
Definition at line 120 of file ShowerReco_module.cc.
Referenced by beginRun(), GetVertexAndAnglesFromCluster(), LongTransEnergy(), and produce().
|
private |
Definition at line 123 of file ShowerReco_module.cc.
Referenced by beginRun(), GetVertexAndAnglesFromCluster(), and produce().
|
private |
Definition at line 154 of file ShowerReco_module.cc.
Referenced by beginRun().
|
private |
Definition at line 157 of file ShowerReco_module.cc.
Referenced by beginRun(), and LongTransEnergy().
|
private |
Definition at line 136 of file ShowerReco_module.cc.
Referenced by LongTransEnergy(), and produce().
|
private |
Definition at line 82 of file ShowerReco_module.cc.
Referenced by GetVertexAndAnglesFromCluster(), and LongTransEnergy().
|
private |
Definition at line 141 of file ShowerReco_module.cc.
Referenced by LongTransEnergy(), and produce().
|
private |
Definition at line 137 of file ShowerReco_module.cc.
Referenced by beginRun(), LongTransEnergy(), and produce().
|
private |
Definition at line 139 of file ShowerReco_module.cc.
Referenced by beginRun(), LongTransEnergy(), and produce().
|
private |
Definition at line 138 of file ShowerReco_module.cc.
Referenced by beginRun(), LongTransEnergy(), and produce().
|
private |
Definition at line 148 of file ShowerReco_module.cc.
Referenced by beginJob(), LongTransEnergy(), and produce().
|
private |
Definition at line 148 of file ShowerReco_module.cc.
Referenced by beginJob(), LongTransEnergy(), and produce().
|
private |
Definition at line 130 of file ShowerReco_module.cc.
Referenced by beginJob(), beginRun(), and produce().