LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "DetectorPropertiesData.h"
Public Member Functions | |
DetectorPropertiesData (DetectorProperties const &properties, double x_ticks_coefficient, std::vector< std::vector< std::vector< double >>> &&x_ticks_offsets, std::vector< std::vector< double >> &&drift_direction) | |
double | Efield (unsigned int planegap=0) const |
kV/cm More... | |
double | DriftVelocity (double efield=0., double temperature=0.) const |
cm/us More... | |
double | BirksCorrection (double dQdX) const |
dQ/dX in electrons/cm, returns dE/dX in MeV/cm. More... | |
double | BirksCorrection (double dQdX, double EField) const |
double | ModBoxCorrection (double dQdX) const |
double | ModBoxCorrection (double dQdX, double EField) const |
double | ElectronLifetime () const |
double | Density (double temperature=0.) const |
Returns argon density at a given temperature. More... | |
double | Temperature () const |
In kelvin. More... | |
double | Eloss (double mom, double mass, double tcut) const |
Restricted mean energy loss (dE/dx) More... | |
double | ElossVar (double mom, double mass) const |
Energy loss fluctuation ( ) More... | |
double | ElectronsToADC () const |
unsigned int | NumberTimeSamples () const |
unsigned int | ReadOutWindowSize () const |
double | TimeOffsetU () const |
double | TimeOffsetV () const |
double | TimeOffsetZ () const |
double | TimeOffsetY () const |
double | ConvertXToTicks (double X, int p, int t, int c) const |
double | ConvertXToTicks (double X, geo::PlaneID const &planeid) const |
double | ConvertTicksToX (double ticks, int p, int t, int c) const |
double | ConvertTicksToX (double ticks, geo::PlaneID const &planeid) const |
double | GetXTicksOffset (int p, int t, int c) const |
double | GetXTicksOffset (geo::PlaneID const &planeid) const |
double | GetXTicksCoefficient (int t, int c) const |
double | GetXTicksCoefficient (geo::TPCID const &tpcid) const |
double | GetXTicksCoefficient () const |
bool | SimpleBoundary () const |
Private Attributes | |
detinfo::DetectorProperties const & | fProperties |
double const | fXTicksCoefficient |
std::vector< std::vector< std::vector< double > > > const | fXTicksOffsets |
std::vector< std::vector< double > > const | fDriftDirection |
Definition at line 11 of file DetectorPropertiesData.h.
|
explicit |
Definition at line 4 of file DetectorPropertiesData.cc.
References fDriftDirection, fXTicksCoefficient, and fXTicksOffsets.
double detinfo::DetectorPropertiesData::BirksCorrection | ( | double | dQdX | ) | const |
dQ/dX in electrons/cm, returns dE/dX in MeV/cm.
Definition at line 27 of file DetectorPropertiesData.cc.
References detinfo::DetectorProperties::BirksCorrection(), Efield(), and fProperties.
Referenced by lar_pandora::LArPandoraInput::GetMips(), and evd::RecoBaseDrawer::Hit2D().
double detinfo::DetectorPropertiesData::BirksCorrection | ( | double | dQdX, |
double | EField | ||
) | const |
Definition at line 31 of file DetectorPropertiesData.cc.
References detinfo::DetectorProperties::BirksCorrection(), and fProperties.
double detinfo::DetectorPropertiesData::ConvertTicksToX | ( | double | ticks, |
int | p, | ||
int | t, | ||
int | c | ||
) | const |
Definition at line 104 of file DetectorPropertiesData.cc.
References fDriftDirection, fXTicksCoefficient, and fXTicksOffsets.
Referenced by pma::ProjectionMatchingAlg::chkEndpointHits_(), shower::EMShowerAlg::Construct3DPoint_(), ConvertTicksToX(), tca::CreateTP3D(), reco3d::TripletFinder::FillHitMap(), tca::FillmAllTraj(), tca::Find3DVertices(), vertex::FeatureVertexFinder::Find3dVtxFrom2dClusterVtxCand(), apa::DisambigAlg::FindChanTimeEndPts(), cluster::ClusterCrawlerAlg::FindHammerClusters(), trkf::CCTrackMaker::FitVertices(), vertex::FeatureVertexFinder::Get3dVertexCandidates(), trkf::SeedFinderAlgorithm::GetCenterAndDirection(), trkf::SeedFinderAlgorithm::GetHitDistAndProj(), calo::Calorimetry::GetPitch(), quad::GetPts2D(), pma::ProjectionMatchingAlg::guideEndpoints(), ems::Hit2D::Hit2D(), shower::LArPandoraShowerAlg::HitCoordinates(), shower::EMShowerAlg::HitPosition_(), pma::Track3D::InitFromHits(), trkf::KHitWireLine::KHitWireLine(), trkf::KHitWireX::KHitWireX(), ems::EMShower3D::Link(), trkf::Track3DKalmanHitAlg::makeSeed(), tca::MakeTP3D(), tca::Match3DFOM(), pma::PMAlgTracker::matchCluster(), cluster::ClusterMatchTQ::MatchedClusters(), pma::PMAlgTracker::maxCluster(), pma::Node3D::Node3D(), evd::RecoBaseDrawer::OpFlashOrtho(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_2D(), trkf::TrackKalmanFitter::setupInputStates(), trkf::CCTrackMaker::StoreTrack(), trkf::CosmicTrackerAlg::Track3D(), trkf::CosmicTrackerAlg::TrackTrajectory(), pma::ProjectionMatchingAlg::validate(), pma::ProjectionMatchingAlg::validate_on_adc_test(), cluster::ClusterCrawlerAlg::VtxMatch(), and pma::WireDriftToCm().
double detinfo::DetectorPropertiesData::ConvertTicksToX | ( | double | ticks, |
geo::PlaneID const & | planeid | ||
) | const |
Definition at line 113 of file DetectorPropertiesData.cc.
References ConvertTicksToX(), geo::CryostatID::Cryostat, geo::PlaneID::Plane, and geo::TPCID::TPC.
double detinfo::DetectorPropertiesData::ConvertXToTicks | ( | double | X, |
int | p, | ||
int | t, | ||
int | c | ||
) | const |
Definition at line 89 of file DetectorPropertiesData.cc.
References fDriftDirection, fXTicksCoefficient, and fXTicksOffsets.
Referenced by trkf::TrackAna::analyze(), tca::ChgFracBetween(), tca::ChgFracNearEnd(), pma::CmToWireDrift(), tca::CompleteIncomplete3DVertices(), tca::CompleteIncomplete3DVerticesInGaps(), ems::EMShower3D::ConvertFrom(), ems::EMShower3D::ConvertFrom2(), ConvertXToTicks(), evd::RecoBaseDrawer::DrawProng2D(), evd::RecoBaseDrawer::DrawTrack2D(), evd::RecoBaseDrawer::DrawTrackVertexAssns2D(), calo::TrackCalorimetryAlg::ExtractCalorimetry(), trkf::CCTrackMaker::FillChgNear(), trkf::CCTrackMaker::FillEndMatch(), tca::Find3DVertices(), trkf::FeatureTracker::Get3DFeaturePoints(), trkf::FeatureTracker::GetProjectedEnds(), nnet::TrainingDataAlg::getProjection(), shower::TCShowerElectronLikelihood::getShowerProfile(), tca::MakeBareTP(), shower::TCShowerAlg::makeShowers(), tca::MakeTP3D(), shower::EMShowerAlg::OrderShowerHits_(), tca::PosInPlane(), trkf::CCTrackMaker::PrintClusters(), shower::EMShowerAlg::Project3DPointOntoPlane_(), evd::RecoBaseDrawer::Prong2D(), evd::RecoBaseDrawer::Seed2D(), shower::TCShowerTemplateMaker::showerProfile(), shower::TCShowerTemplateMaker::showerProfileTrue(), evd::RecoBaseDrawer::Slice2D(), tca::SplitTraj(), trkf::CosmicTrackerAlg::TrackTrajectory(), pma::ProjectionMatchingAlg::validate_on_adc(), pma::ProjectionMatchingAlg::validate_on_adc_test(), evd::RecoBaseDrawer::Vertex2D(), cluster::ClusterCrawlerAlg::Vtx3ClusterMatch(), and cluster::ClusterCrawlerAlg::Vtx3ClusterSplit().
double detinfo::DetectorPropertiesData::ConvertXToTicks | ( | double | X, |
geo::PlaneID const & | planeid | ||
) | const |
Definition at line 98 of file DetectorPropertiesData.cc.
References ConvertXToTicks(), geo::CryostatID::Cryostat, geo::PlaneID::Plane, and geo::TPCID::TPC.
double detinfo::DetectorPropertiesData::Density | ( | double | temperature = 0. | ) | const |
Returns argon density at a given temperature.
temperature | the temperature in kelvin |
Density is nearly a linear function of temperature. See the NIST tables for details Slope is between -6.2 and -6.1, intercept is 1928 kg/m^3. This parameterization will be good to better than 0.5%.g/cm^3
Definition at line 67 of file DetectorPropertiesData.cc.
References detinfo::DetectorProperties::Density(), and fProperties.
Referenced by trkf::TrackStatePropagator::apply_mcs(), larg4::ISCalcSeparate::CalcIon(), larg4::ISCalcNESTLAr::CalcIonAndScint(), calo::CalorimetryAlg::dEdx_from_dQdx_e(), larg4::ISCalculationCorrelated::ISCalculationCorrelated(), and trkf::InteractPlane::noise().
double detinfo::DetectorPropertiesData::DriftVelocity | ( | double | efield = 0. , |
double | temperature = 0. |
||
) | const |
cm/us
Definition at line 21 of file DetectorPropertiesData.cc.
References detinfo::DetectorProperties::DriftVelocity(), and fProperties.
Referenced by trkf::SeedAna::analyze(), trkf::TrackAna::analyze(), trkf::TrackAna::anaStitch(), evd::RecoBaseDrawer::Cluster2D(), evd::RecoBaseDrawer::DrawTrack2D(), cluster::HoughBaseAlg::FastTransform(), tca::FillWireHitRange(), evd::TWQMultiTPCProjectionView::FindLineLength(), evd::TWQProjectionView::FindLineLength(), cluster::SmallClusterFinderAlg::FindSmallClusters(), util::GeometryUtilities::GeometryUtilities(), nnet::TrainingDataAlg::getProjection(), shower::TCShowerElectronLikelihood::getShowerProfile(), shower::TCShowerAlg::goodHit(), cluster::HoughBaseAlg::HoughBaseAlg(), larg4::LArVoxelReadout::Initialize(), cluster::DBScanAlg::InitScan(), trkf::CosmicTrackerAlg::MakeSPT(), cluster::ClusterCrawlerAlg::RunCrawler(), shower::TCShowerTemplateMaker::showerProfile(), shower::TCShowerTemplateMaker::showerProfileTrue(), and trkf::CosmicTrackerAlg::Track3D().
double detinfo::DetectorPropertiesData::Efield | ( | unsigned int | planegap = 0 | ) | const |
kV/cm
Definition at line 16 of file DetectorPropertiesData.cc.
References detinfo::DetectorProperties::Efield(), and fProperties.
Referenced by BirksCorrection(), larg4::ISCalcSeparate::CalcIon(), larg4::ISCalcNESTLAr::CalcIonAndScint(), larg4::ISCalcCorrelated::CalcIonAndScint(), detsim::ISCalculationSeparate::CalculateIonization(), calo::CalorimetryAlg::dEdx_AMP(), calo::CalorimetryAlg::dEdx_AREA(), calo::CalorimetryAlg::dEdx_from_dQdx_e(), cluster::HoughBaseAlg::FastTransform(), tca::FillWireHitRange(), evd::TWQMultiTPCProjectionView::FindLineLength(), evd::TWQProjectionView::FindLineLength(), cluster::SmallClusterFinderAlg::FindSmallClusters(), util::GeometryUtilities::GeometryUtilities(), calo::GnocchiCalorimetry::GetEfield(), larg4::MaterialPropertyLoader::GetPropertiesFromServices(), shower::TCShowerElectronLikelihood::getShowerProfile(), shower::TCShowerAlg::goodHit(), cluster::HoughBaseAlg::HoughBaseAlg(), larg4::LArVoxelReadout::Initialize(), cluster::DBScanAlg::InitScan(), larg4::ISCalculationCorrelated::ISCalculationCorrelated(), trkf::CosmicTrackerAlg::MakeSPT(), ModBoxCorrection(), cluster::ClusterCrawlerAlg::RunCrawler(), shower::TCShowerTemplateMaker::showerProfile(), shower::TCShowerTemplateMaker::showerProfileTrue(), and trkf::CosmicTrackerAlg::Track3D().
double detinfo::DetectorPropertiesData::ElectronLifetime | ( | ) | const |
Definition at line 62 of file DetectorPropertiesData.cc.
References detinfo::DetectorProperties::ElectronLifetime(), and fProperties.
Referenced by ShowerRecoTools::ShowerLinearEnergy::CalculateEnergy(), ShowerRecoTools::ShowerPCADirection::CalculateShowerPCA(), larg4::LArVoxelReadout::Initialize(), calo::CalorimetryAlg::LifetimeCorrection(), shower::LArPandoraShowerAlg::ShowerCentre(), shower::ShowerEnergyAlg::ShowerEnergy(), ShowerRecoTools::ShowerTrackPCADirection::ShowerPCAVector(), and ShowerRecoTools::ShowerIncrementalTrackHitFinder::ShowerPCAVector().
double detinfo::DetectorPropertiesData::ElectronsToADC | ( | ) | const |
Definition at line 47 of file DetectorPropertiesData.cc.
References detinfo::DetectorProperties::ElectronsToADC(), and fProperties.
Referenced by lar_pandora::LArPandoraInput::GetMips(), and evd::RecoBaseDrawer::Hit2D().
double detinfo::DetectorPropertiesData::Eloss | ( | double | mom, |
double | mass, | ||
double | tcut | ||
) | const |
Restricted mean energy loss (dE/dx)
mom | momentum of incident particle [GeV/c] |
mass | mass of incident particle [GeV/c^2] |
tcut | maximum kinetic energy of delta rays [MeV]; 0 for unlimited |
Returned value is always positive. For unrestricted mean energy loss, set tcut = 0 (special case), or tcut large.
Based on Bethe-Bloch formula as contained in particle data book. Material parameters are from the configuration.
Definition at line 77 of file DetectorPropertiesData.cc.
References detinfo::DetectorProperties::Eloss(), and fProperties.
Referenced by trkf::TrackStatePropagator::apply_dedx(), trkf::Propagator::dedx_prop(), trkf::InteractPlane::noise(), trkf::TrackStatePropagator::propagateToPlane(), and trkf::Propagator::vec_prop().
double detinfo::DetectorPropertiesData::ElossVar | ( | double | mom, |
double | mass | ||
) | const |
Energy loss fluctuation ( )
mom | momentum of incident particle in [GeV/c] |
mass | mass of incident particle [GeV/c^2] |
Based on Bichsel formula referred to but not given in PDG.
Definition at line 84 of file DetectorPropertiesData.cc.
References detinfo::DetectorProperties::ElossVar(), and fProperties.
Referenced by trkf::TrackStatePropagator::apply_mcs(), and trkf::InteractPlane::noise().
double detinfo::DetectorPropertiesData::GetXTicksCoefficient | ( | int | t, |
int | c | ||
) | const |
Definition at line 142 of file DetectorPropertiesData.cc.
References fDriftDirection, and fXTicksCoefficient.
Referenced by trkf::SpacePointAlg::fillComplexSpacePoint(), trkf::SpacePointAlg::fillSpacePoint(), pma::ProjectionMatchingAlg::GetCloseHits_(), trkf::KHitWireLine::KHitWireLine(), trkf::KHitWireX::KHitWireX(), pma::Track3D::SetT0FromDx(), sppt::SpacePointAlg_TimeSort::setTimeOffsets(), and trkf::TrackKalmanFitter::setupInputStates().
double detinfo::DetectorPropertiesData::GetXTicksCoefficient | ( | geo::TPCID const & | tpcid | ) | const |
double detinfo::DetectorPropertiesData::GetXTicksCoefficient | ( | ) | const |
Definition at line 147 of file DetectorPropertiesData.cc.
References fXTicksCoefficient.
double detinfo::DetectorPropertiesData::GetXTicksOffset | ( | int | p, |
int | t, | ||
int | c | ||
) | const |
Definition at line 132 of file DetectorPropertiesData.cc.
References fXTicksOffsets.
Referenced by trkf::SpacePointAlg::compatible(), trkf::SpacePointAlg::correctedTime(), trkf::SpacePointAlg::fillComplexSpacePoint(), trkf::SpacePointAlg::fillSpacePoint(), GetXTicksOffset(), trkf::SpacePointAlg::makeSpacePoints(), cluster::ClusterMatchTQ::MatchedClusters(), evd::RecoBaseDrawer::OpFlash2D(), evd::RecoBaseDrawer::OpFlashOrtho(), cluster::ClusterMatchAlg::PrepareDetParams(), sppt::SpacePointAlg_TimeSort::setTimeOffsets(), trkf::CosmicTrackerAlg::Track3D(), and trkf::SpacePointAlg::update().
double detinfo::DetectorPropertiesData::GetXTicksOffset | ( | geo::PlaneID const & | planeid | ) | const |
Definition at line 137 of file DetectorPropertiesData.cc.
References geo::CryostatID::Cryostat, GetXTicksOffset(), geo::PlaneID::Plane, and geo::TPCID::TPC.
double detinfo::DetectorPropertiesData::ModBoxCorrection | ( | double | dQdX | ) | const |
Definition at line 37 of file DetectorPropertiesData.cc.
References Efield(), fProperties, and detinfo::DetectorProperties::ModBoxCorrection().
double detinfo::DetectorPropertiesData::ModBoxCorrection | ( | double | dQdX, |
double | EField | ||
) | const |
Definition at line 41 of file DetectorPropertiesData.cc.
References fProperties, and detinfo::DetectorProperties::ModBoxCorrection().
unsigned int detinfo::DetectorPropertiesData::NumberTimeSamples | ( | ) | const |
Definition at line 52 of file DetectorPropertiesData.cc.
References fProperties, and detinfo::DetectorProperties::NumberTimeSamples().
Referenced by evgen::RadioGen::defaulttimewindow(), tca::FillWireHitRange(), vertex::FeatureVertexFinder::Find2dClusterVertexCandidates(), cluster::HoughBaseAlg::HoughBaseAlg(), cluster::ClusterMatchTQ::MatchedClusters(), pma::Node3D::Node3D(), cluster::ClusterCrawlerAlg::RunCrawler(), util::GeometryUtilities::SelectPolygonHitList(), img::DataProviderAlg::setWireDriftData(), and DUNE::NeutrinoTrackingEff::truthLength().
unsigned int detinfo::DetectorPropertiesData::ReadOutWindowSize | ( | ) | const |
Definition at line 57 of file DetectorPropertiesData.cc.
References fProperties, and detinfo::DetectorProperties::ReadOutWindowSize().
Referenced by evgen::RadioGen::defaulttimewindow(), cluster::HoughBaseAlg::FastTransform(), and cluster::HoughBaseAlg::Transform().
bool detinfo::DetectorPropertiesData::SimpleBoundary | ( | ) | const |
Definition at line 152 of file DetectorPropertiesData.cc.
References fProperties, and detinfo::DetectorProperties::SimpleBoundary().
Referenced by larg4::MaterialPropertyLoader::GetPropertiesFromServices(), and larg4::OpticalPhysics::OpticalPhysics().
double detinfo::DetectorPropertiesData::Temperature | ( | ) | const |
In kelvin.
Definition at line 72 of file DetectorPropertiesData.cc.
References fProperties, and detinfo::DetectorProperties::Temperature().
Referenced by larg4::ISCalcSeparate::CalcIon(), cluster::HoughBaseAlg::FastTransform(), tca::FillWireHitRange(), evd::TWQMultiTPCProjectionView::FindLineLength(), evd::TWQProjectionView::FindLineLength(), cluster::SmallClusterFinderAlg::FindSmallClusters(), util::GeometryUtilities::GeometryUtilities(), shower::TCShowerElectronLikelihood::getShowerProfile(), shower::TCShowerAlg::goodHit(), cluster::HoughBaseAlg::HoughBaseAlg(), larg4::LArVoxelReadout::Initialize(), cluster::DBScanAlg::InitScan(), larg4::ISCalculationCorrelated::ISCalculationCorrelated(), trkf::CosmicTrackerAlg::MakeSPT(), cluster::ClusterCrawlerAlg::RunCrawler(), shower::TCShowerTemplateMaker::showerProfile(), shower::TCShowerTemplateMaker::showerProfileTrue(), and trkf::CosmicTrackerAlg::Track3D().
double detinfo::DetectorPropertiesData::TimeOffsetU | ( | ) | const |
Definition at line 119 of file DetectorPropertiesData.cc.
References fProperties, and detinfo::DetectorProperties::TimeOffsetU().
Referenced by apa::DisambigAlg::HitsOverlapInTime().
double detinfo::DetectorPropertiesData::TimeOffsetV | ( | ) | const |
Definition at line 123 of file DetectorPropertiesData.cc.
References fProperties, and detinfo::DetectorProperties::TimeOffsetV().
Referenced by apa::DisambigAlg::HitsOverlapInTime().
double detinfo::DetectorPropertiesData::TimeOffsetY | ( | ) | const |
double detinfo::DetectorPropertiesData::TimeOffsetZ | ( | ) | const |
Definition at line 127 of file DetectorPropertiesData.cc.
References fProperties, and detinfo::DetectorProperties::TimeOffsetZ().
Referenced by apa::DisambigAlg::HitsOverlapInTime().
|
private |
Definition at line 99 of file DetectorPropertiesData.h.
Referenced by ConvertTicksToX(), ConvertXToTicks(), DetectorPropertiesData(), and GetXTicksCoefficient().
|
private |
Definition at line 96 of file DetectorPropertiesData.h.
Referenced by BirksCorrection(), Density(), DriftVelocity(), Efield(), ElectronLifetime(), ElectronsToADC(), Eloss(), ElossVar(), ModBoxCorrection(), NumberTimeSamples(), ReadOutWindowSize(), SimpleBoundary(), Temperature(), TimeOffsetU(), TimeOffsetV(), and TimeOffsetZ().
|
private |
Definition at line 97 of file DetectorPropertiesData.h.
Referenced by ConvertTicksToX(), ConvertXToTicks(), DetectorPropertiesData(), and GetXTicksCoefficient().
|
private |
Definition at line 98 of file DetectorPropertiesData.h.
Referenced by ConvertTicksToX(), ConvertXToTicks(), DetectorPropertiesData(), and GetXTicksOffset().