ShowerRecoTools::ShowerPCAEigenvalueLength::ShowerPCAEigenvalueLength |
( |
const fhicl::ParameterSet & |
pset | ) |
|
template<class T , class A , class B >
void ShowerRecoTools::IShowerTool::AddSingle |
( |
A & |
a, |
|
|
B & |
b, |
|
|
std::string |
Name |
|
) |
| |
|
inlineprotectedinherited |
Implements ShowerRecoTools::IShowerTool.
Definition at line 47 of file ShowerPCAEigenvalueLength_tool.cc.
References reco::shower::ShowerElementHolder::CheckElement(), DEFINE_ART_CLASS_TOOL, fNSigma, fShowerLengthOutputLabel, fShowerOpeningAngleOutputLabel, fShowerPCAInputLabel, fVerbose, recob::PCAxis::getEigenValues(), reco::shower::ShowerElementHolder::GetElement(), and reco::shower::ShowerElementHolder::SetElement().
55 mf::LogError(
"ShowerPCAEigenvalueLength") <<
"PCA not set, returning " << std::endl;
72 double primaryEigenValue = (eigenValues)[0];
73 double ShowerLength = std::sqrt(primaryEigenValue) * 2 *
fNSigma;
74 double ShowerLengthError = -999;
77 double secondaryEigenValue = (eigenValues)[1];
78 double ShowerWidth = std::sqrt(secondaryEigenValue) * 2 *
fNSigma;
80 double ShowerAngle = std::atan(ShowerWidth / ShowerLength);
81 double ShowerAngleError = -999;
const double * getEigenValues() const
void SetElement(T &dataproduct, const std::string &Name, bool checktag=false)
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError
bool CheckElement(const std::string &Name) const
int GetElement(const std::string &Name, T &Element) const
Definition at line 82 of file IShowerTool.h.
Referenced by ShowerRecoTools::ShowerLengthPercentile::CalculateElement(), ShowerRecoTools::ShowerUnidirectiondEdx::CalculateElement(), ShowerRecoTools::Shower3DCylinderTrackHitFinder::CalculateElement(), ShowerRecoTools::ShowerPCAPropergationStartPosition::CalculateElement(), ShowerRecoTools::Shower2DLinearRegressionTrackHitFinder::CalculateElement(), ShowerRecoTools::ShowerPFPVertexStartPosition::CalculateElement(), ShowerRecoTools::ShowerDirectionCheater::CalculateElement(), ShowerRecoTools::ShowerPCADirection::CalculateElement(), ShowerRecoTools::ShowerIncrementalTrackHitFinder::CalculateElement(), ShowerRecoTools::ShowerTrajPointdEdx::CalculateElement(), ShowerRecoTools::ShowerPCADirection::CalculateShowerPCA(), ShowerRecoTools::Shower2DLinearRegressionTrackHitFinder::FindInitialTrackHits(), ShowerRecoTools::Shower3DCylinderTrackHitFinder::FindTrackSpacePoints(), ShowerRecoTools::ShowerIncrementalTrackHitFinder::FitSegmentAndCalculateResidual(), ShowerRecoTools::ShowerIncrementalTrackHitFinder::PruneFrontOfSPSPool(), ShowerRecoTools::ShowerIncrementalTrackHitFinder::PruneTrack(), ShowerRecoTools::ShowerIncrementalTrackHitFinder::RunTestOfIncrementalSpacePointFinder(), ShowerRecoTools::ShowerTrackPCADirection::ShowerPCAVector(), and ShowerRecoTools::ShowerIncrementalTrackHitFinder::ShowerPCAVector().
int ShowerRecoTools::IShowerTool::GetVectorPtrSize |
( |
std::string |
Name | ) |
|
|
inlineprotectedinherited |
virtual void ShowerRecoTools::IShowerTool::InitialiseProducers |
( |
| ) |
|
|
inlinevirtualinherited |
template<class T >
void ShowerRecoTools::IShowerTool::InitialiseProduct |
( |
std::string |
Name, |
|
|
std::string |
InstanceName = "" |
|
) |
| |
|
inlineprotectedinherited |
void ShowerRecoTools::IShowerTool::PrintPtr |
( |
std::string |
Name | ) |
|
|
inlineprotectedinherited |
void ShowerRecoTools::IShowerTool::PrintPtrs |
( |
| ) |
|
|
inlineprotectedinherited |
Definition at line 46 of file IShowerTool.h.
52 int calculation_status =
CalculateElement(pfparticle, Event, ShowerEleHolder);
53 if (calculation_status != 0)
return calculation_status;
56 pfparticle, Event, ShowerEleHolder, evd_display_name_append);
58 return calculation_status;
void DebugEVD(art::Ptr< recob::PFParticle > const &pfparticle, art::Event const &Event, const reco::shower::ShowerElementHolder &ShowerEleHolder, std::string const &evd_disp_name_append="") const
float ShowerRecoTools::ShowerPCAEigenvalueLength::fNSigma |
|
private |
art::InputTag ShowerRecoTools::ShowerPCAEigenvalueLength::fPFParticleLabel |
|
private |
std::string ShowerRecoTools::ShowerPCAEigenvalueLength::fShowerLengthOutputLabel |
|
private |
std::string ShowerRecoTools::ShowerPCAEigenvalueLength::fShowerOpeningAngleOutputLabel |
|
private |
std::string ShowerRecoTools::ShowerPCAEigenvalueLength::fShowerPCAInputLabel |
|
private |
int ShowerRecoTools::ShowerPCAEigenvalueLength::fVerbose |
|
private |
The documentation for this class was generated from the following file: