All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
sbn::TrackCaloSkimmerSelectAnode2CathodeTrack Class Reference
Inheritance diagram for sbn::TrackCaloSkimmerSelectAnode2CathodeTrack:
sbn::ITCSSelectionTool

Public Member Functions

 TrackCaloSkimmerSelectAnode2CathodeTrack (const fhicl::ParameterSet &p)
 
 ~TrackCaloSkimmerSelectAnode2CathodeTrack ()
 
bool Select (const TrackInfo &t) override
 For children to implement: Whether to select a given track. More...
 
- Public Member Functions inherited from sbn::ITCSSelectionTool
 ITCSSelectionTool (const fhicl::ParameterSet &p)
 
 fRequireT0 (p.get< bool >("RequireT0", true))
 
 fInvert (p.get< bool >("Invert", false))
 
 fNPreScale (p.get< unsigned >("PreScale", 1))
 
 fISelect (0)
 
virtual ~ITCSSelectionTool () noexcept=default
 
bool DoSelect (const TrackInfo &t)
 For external modules to call: run the actual selection. More...
 
unsigned GetPrescale () const
 

Private Attributes

double fTickCut
 

Additional Inherited Members

- Protected Attributes inherited from sbn::ITCSSelectionTool
std::vector< bool > fAllowT0
 
bool fRequireT0
 
bool fInvert
 
unsigned fNPreScale
 
unsigned fISelect
 

Detailed Description

Definition at line 9 of file TrackCaloSkimmerSelectAnode2CathodeTrack_tool.cc.

Constructor & Destructor Documentation

sbn::TrackCaloSkimmerSelectAnode2CathodeTrack::TrackCaloSkimmerSelectAnode2CathodeTrack ( const fhicl::ParameterSet &  p)

Definition at line 22 of file TrackCaloSkimmerSelectAnode2CathodeTrack_tool.cc.

22  :
24  fTickCut(p.get<double>("TickCut"))
25 {}
ITCSSelectionTool(const fhicl::ParameterSet &p)
pdgs p
Definition: selectors.fcl:22
sbn::TrackCaloSkimmerSelectAnode2CathodeTrack::~TrackCaloSkimmerSelectAnode2CathodeTrack ( )
inline

Definition at line 13 of file TrackCaloSkimmerSelectAnode2CathodeTrack_tool.cc.

13 {}

Member Function Documentation

bool sbn::TrackCaloSkimmerSelectAnode2CathodeTrack::Select ( const TrackInfo t)
overridevirtual

For children to implement: Whether to select a given track.

Implements sbn::ITCSSelectionTool.

Definition at line 27 of file TrackCaloSkimmerSelectAnode2CathodeTrack_tool.cc.

27  {
28  // use the collection plane
29  return std::max(abs(t.hit_max_time_p2_tpcE - t.hit_min_time_p2_tpcE), abs(t.hit_max_time_p2_tpcW - t.hit_min_time_p2_tpcW)) > fTickCut;
30 
31 }
T abs(T value)

Member Data Documentation

double sbn::TrackCaloSkimmerSelectAnode2CathodeTrack::fTickCut
private

The documentation for this class was generated from the following file: