LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
Class identifying a set of TPC sharing readout channels. More...
#include "readout_types.h"
Public Types | |
typedef unsigned short | TPCsetID_t |
type for the ID number More... | |
typedef unsigned int | CryostatID_t |
Type for the ID number. More... | |
Public Member Functions | |
TPCsetID () | |
Default constructor: an invalid TPC set ID. More... | |
TPCsetID (CryostatID const &cryoid, TPCsetID_t s) | |
Constructor: TPC set with index g in the cryostat identified by cryoid. More... | |
TPCsetID (CryostatID_t c, TPCsetID_t s) | |
Constructor: TPC with index t in the cryostat index c. More... | |
operator std::string () const | |
Human-readable representation of the TPC set ID. More... | |
TPCsetID const & | asTPCsetID () const |
Conversion to TPCsetID (for convenience of notation). More... | |
TPCsetID & | asTPCsetID () |
Conversion to TPCsetID (for convenience of notation). More... | |
TPCsetID const & | asConstTPCsetID () |
Conversion to TPCsetID (for convenience of notation). More... | |
int | cmp (TPCsetID const &other) const |
Returns < 0 if this is smaller than other, 0 if equal, > 0 if larger. More... | |
auto const & | deepestIndex () const |
Returns the value of the deepest ID available (cryostat's). More... | |
auto & | deepestIndex () |
Returns the deepest ID available (cryostat's). More... | |
int | cmp (CryostatID const &other) const |
Returns < 0 if this is smaller than other, 0 if equal, > 0 if larger. More... | |
CryostatID const & | asCryostatID () const |
Conversion to CryostatID (for convenience of notation). More... | |
CryostatID & | asCryostatID () |
Conversion to CryostatID (for convenience of notation). More... | |
CryostatID const & | asConstCryostatID () |
Conversion to CryostatID (for convenience of notation). More... | |
ID validity | |
operator bool () const | |
Returns true if the ID is valid. More... | |
bool | operator! () const |
Returns true if the ID is not valid. More... | |
void | setValidity (bool valid) |
Sets the validity of the ID. More... | |
void | markValid () |
Sets the ID as valid. More... | |
void | markInvalid () |
Sets the ID as invalid. More... | |
Static Public Member Functions | |
static TPCsetID_t | getInvalidID () |
Return the value of the invalid TPC ID as a r-value. More... | |
template<typename T > | |
static int | ThreeWayComparison (T a, T b) |
Returns < 0 if a < b, 0 if a == b, > 0 if a > b. More... | |
Public Attributes | |
TPCsetID_t | TPCset |
index of the TPC set within its cryostat More... | |
bool | isValid = false |
Whether this ID points to a valid element. More... | |
CryostatID_t | Cryostat = InvalidID |
Index of cryostat. More... | |
Static Public Attributes | |
static const TPCsetID_t | InvalidID = USHRT_MAX |
Special code for an invalid ID. More... | |
Class identifying a set of TPC sharing readout channels.
This identifier provides the cryostat location and a number representing the set of TPCs. This set is defined by not sharing readout channels with any other TPC outside the set.
Definition at line 41 of file readout_types.h.
|
inherited |
Type for the ID number.
Definition at line 121 of file geo_types.h.
typedef unsigned short readout::TPCsetID::TPCsetID_t |
type for the ID number
Definition at line 42 of file readout_types.h.
|
inline |
Default constructor: an invalid TPC set ID.
Definition at line 54 of file readout_types.h.
|
inline |
Constructor: TPC set with index g in the cryostat identified by cryoid.
Definition at line 57 of file readout_types.h.
|
inline |
Constructor: TPC with index t in the cryostat index c.
Definition at line 61 of file readout_types.h.
|
inlineinherited |
Conversion to CryostatID (for convenience of notation).
Definition at line 181 of file geo_types.h.
|
inline |
Conversion to TPCsetID (for convenience of notation).
Definition at line 74 of file readout_types.h.
|
inlineinherited |
Conversion to CryostatID (for convenience of notation).
Definition at line 177 of file geo_types.h.
Referenced by readout::operator!=(), readout::operator<(), readout::operator<<(), and readout::operator==().
|
inlineinherited |
Conversion to CryostatID (for convenience of notation).
Definition at line 179 of file geo_types.h.
|
inline |
Conversion to TPCsetID (for convenience of notation).
Definition at line 70 of file readout_types.h.
|
inline |
Conversion to TPCsetID (for convenience of notation).
Definition at line 72 of file readout_types.h.
|
inline |
Returns < 0 if this is smaller than other, 0 if equal, > 0 if larger.
Definition at line 77 of file readout_types.h.
References geo::CryostatID::cmp(), and TPCset.
Referenced by readout::ROPID::cmp(), and readout::operator<().
|
inlineinherited |
Returns < 0 if this is smaller than other, 0 if equal, > 0 if larger.
Definition at line 173 of file geo_types.h.
References geo::CryostatID::deepestIndex().
Referenced by cmp(), geo::TPCID::cmp(), and readout::operator<().
|
inlineinherited |
Returns the value of the deepest ID available (cryostat's).
Definition at line 168 of file geo_types.h.
Referenced by geo::CryostatID::cmp().
|
inlineinherited |
|
inlinestatic |
Return the value of the invalid TPC ID as a r-value.
Definition at line 87 of file readout_types.h.
References InvalidID.
|
inlineinherited |
Sets the ID as invalid.
Definition at line 157 of file geo_types.h.
Referenced by geo::PlaneGeo::ClosestWireID(), and geo::GeometryCore::FindTPCAtPosition().
|
inlineinherited |
Sets the ID as valid.
Definition at line 154 of file geo_types.h.
|
inlineexplicitinherited |
Returns true if the ID is valid.
Definition at line 145 of file geo_types.h.
|
inlineexplicit |
Human-readable representation of the TPC set ID.
Definition at line 66 of file readout_types.h.
References readout::details::writeToString().
|
inlineinherited |
Returns true if the ID is not valid.
Definition at line 148 of file geo_types.h.
|
inlineinherited |
Sets the validity of the ID.
Definition at line 151 of file geo_types.h.
|
inlinestaticinherited |
Returns < 0 if a < b, 0 if a == b, > 0 if a > b.
Definition at line 188 of file geo_types.h.
|
inherited |
Index of cryostat.
Definition at line 130 of file geo_types.h.
Referenced by detsim::WienerFilterAna::analyze(), hit::GausHitFinderAna::analyze(), mvapid::MVAAlg::CalcSegmentdEdxDist(), tca::TruthMatcher::CanReconstruct(), tca::ChgFracBetween(), tca::ChgFracNearEnd(), trkf::SpacePointAlg::compatible(), tca::CompleteIncomplete3DVerticesInGaps(), cluster::BlurredClusteringAlg::ConvertRecobHitsToVector(), geo::ChannelMapStandardAlg::ConvertROPtoWirePlane(), util::DetectorPropertiesServiceArgoNeuT::ConvertTicksToX(), detinfo::DetectorPropertiesStandard::ConvertTicksToX(), geo::ChannelMapStandardAlg::ConvertTPCsetToTPC(), geo::ChannelMapStandardAlg::ConvertTPCtoTPCset(), geo::ChannelMapStandardAlg::ConvertWirePlaneToROP(), util::DetectorPropertiesServiceArgoNeuT::ConvertXToTicks(), detinfo::DetectorPropertiesStandard::ConvertXToTicks(), trkf::SpacePointAlg::correctedTime(), tss::Hit2D::Cryo(), geo::GeometryCore::Cryostat(), geo::GeometryCore::CryostatPtr(), tca::DefineTjParents(), cluster::ClusterCrawlerAlg::EncodeCTP(), tca::EncodeCTP(), cluster::EndPointAlg::EndPoint(), ems::EndPoint::EndPoint(), trkf::SpacePointAlg::fillComplexSpacePoint(), tca::FillmAllTraj(), lar_pandora::PFParticleHitDumper::FillRecoWires(), trkf::SpacePointAlg::fillSpacePoint(), tca::FillWireHitRange(), tca::Find3DVertices(), apa::DisambigAlg::FindChanTimeEndPts(), tca::FindCompleteness(), geo::GeometryCore::FindCryostatAtPosition(), hit::HitCheater::FindHitsOnChannel(), tca::FindMissedTjsInTp3s(), tca::TrajClusterAlg::FindMissedVxTjs(), tca::FindParent(), tca::FindPFParticles(), tca::FindShowers3D(), geo::GeometryCore::FindTPCAtPosition(), tca::FindXMatches(), tca::FitTp3(), tca::FitTp3s(), cluster::ClusterCrawlerAlg::FitVtx(), tca::FollowTp3s(), ems::EMShower3D::GetCloseHits(), trkf::BezierTrack::GetClosestApproach(), trkf::BezierTrack::GetClosestApproaches(), geo::GeometryCore::GetClosestOpDet(), geo::GeometryCore::GetEndTPCID(), geo::GeometryCore::GetEndTPCsetID(), lar_cluster3d::PrincipalComponentsAlg::getHit2DPocaToAxis(), cluster::ClusterCrawlerAlg::GetHitRange(), tca::GetOrigin(), calo::Calorimetry::GetPitch(), nnet::TrainingDataAlg::getProjection(), lar_pandora::LArPandoraInput::GetTrueStartAndEndPoints(), pma::Track3D::GetUnconstrainedProj3D(), lar_pandora::PFParticleHitDumper::GetUVW(), util::DetectorPropertiesServiceArgoNeuT::GetXTicksCoefficient(), detinfo::DetectorPropertiesStandard::GetXTicksCoefficient(), util::DetectorPropertiesServiceArgoNeuT::GetXTicksOffset(), detinfo::DetectorPropertiesStandard::GetXTicksOffset(), cluster::MergeClusterAlg::GlobalWire(), cluster::BlurredClusteringAlg::GlobalWire(), shower::EMShowerAlg::GlobalWire(), geo::TPCDataContainer< T >::hasCryostat(), geo::PlaneDataContainer< T >::hasCryostat(), geo::GeometryCore::HasCryostat(), ems::Hit2D::Hit2D(), tss::Hit2D::Hit2D(), pma::Hit3D::Hit3D(), hit::DisambigCheater::InitHitToWids(), trkf::KHitWireLine::KHitWireLine(), trkf::KHitWireX::KHitWireX(), tca::KillPoorVertices(), lar_cluster3d::PCASeedFinderAlg::LineFit2DHits(), lar_cluster3d::HoughSeedFinderAlg::LineFit2DHits(), geo::details::cryostat_id_iterator_base< GEOID >::localID(), tca::MCParticleListUtils::MakeCheatShower(), apa::DisambigAlg::MakeCloseHits(), lar_cluster3d::StandardHit3DBuilder::makeDeadChannelPair(), lar_cluster3d::StandardHit3DBuilder::makeHitPair(), trkf::SpacePointAlg::makeSpacePoints(), trkf::CosmicTrackerAlg::MakeSPT(), tca::Match2DShowers(), tca::TruthMatcher::MatchAndSum(), tca::TruthMatcher::MatchTruth(), tca::MCParticleListUtils::MCParticleStartTjID(), evd::SimulationDrawer::MCTruth3D(), tca::MergePFPTjs(), geo::ChannelMapAlg::NearestWireID(), geo::ChannelMapStandardAlg::NTPCsets(), geo::operator!=(), geo::operator<(), anab::operator<<(), recob::operator<<(), geo::operator<<(), geo::operator==(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_2D(), geo::ChannelMapAlg::PlaneWireToChannel(), tca::PosInPlane(), geo::GeometryCore::PositionToCryostat(), geo::GeometryCore::PositionToTPC(), tca::MCParticleListUtils::PrimaryElectronPFPID(), tca::PrintAllTraj(), cluster::LineCluster::produce(), cluster::TrajCluster::produce(), cluster::ClusterCheater::produce(), cluster::SmallClusterFinder::produce(), calo::Calorimetry::produce(), hit::DPRawHitFinder::produce(), evd::GraphCluster::produce(), tca::TruthMatcher::PutMCPHitsInVector(), tca::Reconcile3D(), tca::ScoreVertices(), trkf::SpacePointAlg::separation(), cheat::BackTracker::SpacePointHitsToWeightedXYZ(), tca::TrajClusterAlg::StepCrawl(), lar::util::TrackPitchInView(), apa::DisambigAlg::TrivialDisambig(), cluster::ClusterCrawlerAlg::Vtx3ClusterMatch(), cluster::ClusterCrawlerAlg::Vtx3ClusterSplit(), cluster::ClusterCrawlerAlg::VtxMatch(), geo::ChannelMapAlg::WireCoordinate(), and tca::WireHitRangeOK().
|
static |
Special code for an invalid ID.
Definition at line 49 of file readout_types.h.
Referenced by getInvalidID().
|
inherited |
Whether this ID points to a valid element.
Definition at line 129 of file geo_types.h.
Referenced by geo::ChannelMapStandardAlg::ConvertROPtoWirePlane(), geo::ChannelMapStandardAlg::ConvertTPCsetToTPC(), geo::ChannelMapStandardAlg::ConvertTPCtoTPCset(), geo::ChannelMapStandardAlg::ConvertWirePlaneToROP(), hit::HitCheater::FindHitsOnChannel(), shower::EMShowerAlg::FindInitialTrackHits(), geo::ChannelMapStandardAlg::FirstChannelInROP(), opdet::GetHitGeometryInfo(), nnet::TrainingDataAlg::getProjection(), lar_pandora::LArPandoraInput::GetTrueStartAndEndPoints(), geo::InvalidWireError::hasPlane(), recob::Cluster::hasPlane(), hit::DisambigCheater::InitHitToWids(), hit::DisambigCheater::MakeDisambigHit(), apa::DisambigAlg::MakeDisambigHit(), evd::SimulationDrawer::MCTruthOrtho(), geo::ChannelMapStandardAlg::NTPCsets(), shower::EMShowerAlg::OrderShowerHits(), calo::Calorimetry::produce(), shower::EMShowerAlg::Project3DPointOntoPlane(), geo::ChannelMapStandardAlg::ROPtoTPCs(), geo::ChannelMapStandardAlg::ROPtoWirePlanes(), filt::LArG4ParticleFilter::StartInTPCCheck(), filt::LArG4ParticleFilter::StopInTPCCheck(), geo::ChannelMapStandardAlg::TPCsetToTPCs(), filt::LArG4ParticleFilter::TPCTrajLengthCheck(), and lar::util::TrackPitchInView().
TPCsetID_t readout::TPCsetID::TPCset |
index of the TPC set within its cryostat
Definition at line 51 of file readout_types.h.
Referenced by cmp(), geo::ChannelMapStandardAlg::ConvertROPtoWirePlane(), geo::ChannelMapStandardAlg::ConvertTPCsetToTPC(), geo::ChannelMapStandardAlg::HasTPCset(), readout::operator!=(), readout::operator<(), readout::operator<<(), and readout::operator==().