#include <ApaCrossCosmicIdAlg.h>
|
| ApaCrossCosmicIdAlg (const Config &config) |
|
| ApaCrossCosmicIdAlg (const fhicl::ParameterSet &pset) |
|
| ~ApaCrossCosmicIdAlg () |
|
void | reconfigure (const Config &config) |
|
std::pair< double, double > | MinApaDistance (detinfo::DetectorPropertiesData const &detProp, recob::Track track, std::vector< double > t0List, int tpc) |
|
double | T0FromApaCross (detinfo::DetectorPropertiesData const &detProp, recob::Track track, std::vector< double > t0List, int tpc) |
|
double | ApaDistance (detinfo::DetectorPropertiesData const &detProp, recob::Track track, double t0, std::vector< art::Ptr< recob::Hit >> hits) |
|
std::pair< double, double > | MinApaDistance (detinfo::DetectorPropertiesData const &detProp, recob::Track track, std::vector< art::Ptr< recob::Hit >> hits, std::vector< double > t0Tpc0, std::vector< double > t0Tpc1) |
|
bool | ApaCrossCosmicId (detinfo::DetectorPropertiesData const &detProp, recob::Track track, std::vector< art::Ptr< recob::Hit >> hits, std::vector< double > t0Tpc0, std::vector< double > t0Tpc1) |
|
sbnd::ApaCrossCosmicIdAlg::ApaCrossCosmicIdAlg |
( |
const Config & |
config | ) |
|
sbnd::ApaCrossCosmicIdAlg::ApaCrossCosmicIdAlg |
( |
const fhicl::ParameterSet & |
pset | ) |
|
|
inline |
sbnd::ApaCrossCosmicIdAlg::~ApaCrossCosmicIdAlg |
( |
| ) |
|
Definition at line 128 of file sbndcode/sbndcode/CosmicId/Algs/ApaCrossCosmicIdAlg.cc.
139 if(crossTimeThrough != -99999 && (crossTimeThrough < fBeamTimeMin || crossTimeThrough >
fBeamTimeMax))
return true;
143 if(crossTimeThrough != -99999 && (crossTimeThrough < fBeamTimeMin || crossTimeThrough >
fBeamTimeMax))
return true;
int DetectedInTPC(std::vector< art::Ptr< recob::Hit >> hits)
double T0FromApaCross(detinfo::DetectorPropertiesData const &detProp, recob::Track track, std::vector< double > t0List, int tpc)
Definition at line 98 of file sbndcode/sbndcode/CosmicId/Algs/ApaCrossCosmicIdAlg.cc.
101 std::vector<double> t0List {
t0};
std::pair< double, double > MinApaDistance(detinfo::DetectorPropertiesData const &detProp, recob::Track track, std::vector< double > t0List, int tpc)
int DetectedInTPC(std::vector< art::Ptr< recob::Hit >> hits)
Definition at line 36 of file sbndcode/sbndcode/CosmicId/Algs/ApaCrossCosmicIdAlg.cc.
39 double crossTime = -99999;
42 double minDist = 99999;
43 double startX = track.
Vertex().X();
44 double endX = track.
End().X();
52 if(tpc == 0 && endX < startX) point = track.
End();
55 if(tpc == 1 && endX > startX) point = track.
End();
58 if(tpc == -1)
return std::make_pair(minDist, crossTime);
61 for(
auto const&
t0 : t0List){
64 double shiftedX = point.X();
66 if(tpc == 0) shiftedX = point.X() -
shift;
67 if(tpc == 1) shiftedX = point.X() +
shift;
79 return std::make_pair(minDist, crossTime);
Point_t const & Vertex() const
constexpr double dist(const TReal *x, const TReal *y, const unsigned int dimension)
Point_t const & End() const
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
Definition at line 111 of file sbndcode/sbndcode/CosmicId/Algs/ApaCrossCosmicIdAlg.cc.
123 return std::make_pair(-99999, -99999);
std::pair< double, double > MinApaDistance(detinfo::DetectorPropertiesData const &detProp, recob::Track track, std::vector< double > t0List, int tpc)
int DetectedInTPC(std::vector< art::Ptr< recob::Hit >> hits)
void sbnd::ApaCrossCosmicIdAlg::reconfigure |
( |
const Config & |
config | ) |
|
double sbnd::ApaCrossCosmicIdAlg::fBeamTimeMax |
|
private |
double sbnd::ApaCrossCosmicIdAlg::fBeamTimeMin |
|
private |
double sbnd::ApaCrossCosmicIdAlg::fDistanceLimit |
|
private |
double sbnd::ApaCrossCosmicIdAlg::fMaxApaDistance |
|
private |
The documentation for this class was generated from the following files: