#include <GeometryCosmicIdAlg.h>
sbnd::GeometryCosmicIdAlg::GeometryCosmicIdAlg |
( |
const Config & |
config | ) |
|
sbnd::GeometryCosmicIdAlg::GeometryCosmicIdAlg |
( |
const fhicl::ParameterSet & |
pset | ) |
|
|
inline |
sbnd::GeometryCosmicIdAlg::~GeometryCosmicIdAlg |
( |
| ) |
|
bool sbnd::GeometryCosmicIdAlg::GeometryCosmicId |
( |
recob::Track |
track, |
|
|
std::vector< art::Ptr< recob::Hit >> |
hits, |
|
|
bool |
tpc0Flash, |
|
|
bool |
tpc1Flash |
|
) |
| |
Definition at line 28 of file sbndcode/sbndcode/CosmicId/Algs/GeometryCosmicIdAlg.cc.
32 double startX = track.
Start().X();
33 double endX = track.
End().X();
36 if(tpc == -1)
return false;
39 if(tpc == 0 && (startX>0 || endX>0))
return true;
40 else if(tpc == 1 && (startX<0 || endX<0))
return true;
43 if(tpc0Flash && !tpc1Flash && tpc == 1)
return true;
44 if(tpc1Flash && !tpc0Flash && tpc == 0)
return true;
Point_t const & Start() const
Access to track position at different points.
int DetectedInTPC(std::vector< art::Ptr< recob::Hit >> hits)
Point_t const & End() const
void sbnd::GeometryCosmicIdAlg::reconfigure |
( |
const Config & |
config | ) |
|
The documentation for this class was generated from the following files: