Public Member Functions | Private Attributes | List of all members
TriggerPrimitiveFinderTemplate Class Reference
Inheritance diagram for TriggerPrimitiveFinderTemplate:
TriggerPrimitiveFinderTool

Public Member Functions

 TriggerPrimitiveFinderTemplate (fhicl::ParameterSet const &p)
 
virtual std::vector< TriggerPrimitiveFinderTool::HitfindHits (const std::vector< unsigned int > &channel_numbers, const std::vector< std::vector< short >> &collection_samples)
 
- Public Member Functions inherited from TriggerPrimitiveFinderTool
virtual ~TriggerPrimitiveFinderTool ()=default
 

Private Attributes

int m_threshold
 

Detailed Description

Definition at line 9 of file TriggerPrimitiveFinderTemplate_tool.cc.

Constructor & Destructor Documentation

TriggerPrimitiveFinderTemplate::TriggerPrimitiveFinderTemplate ( fhicl::ParameterSet const &  p)
explicit

Definition at line 26 of file TriggerPrimitiveFinderTemplate_tool.cc.

29  : m_threshold(p.get<unsigned int>("Threshold"))
30 {
31  // Do any other constructing you want here
32 }
p
Definition: test.py:223

Member Function Documentation

std::vector< TriggerPrimitiveFinderTool::Hit > TriggerPrimitiveFinderTemplate::findHits ( const std::vector< unsigned int > &  channel_numbers,
const std::vector< std::vector< short >> &  collection_samples 
)
virtual

Implements TriggerPrimitiveFinderTool.

Definition at line 45 of file TriggerPrimitiveFinderTemplate_tool.cc.

47 {
48  // Make a return vector of TriggerPrimitiveFinderTool::Hit (see TriggerPrimitiveFinderTool.h)
49  auto hits=std::vector<TriggerPrimitiveFinderTool::Hit>();
50 
51  // Construct Hits like:
52  //
53  // 1. TriggerPrimitiveFinderTool::Hit hit(channel, startTime, charge, timeOverThreshold)
54  // or
55  // 2. TriggerPrimitiveFinderTool::Hit hit;
56  // hit.channel=...;
57  // hit.startTime=...;
58  // hit.charge=...;
59  // hit.timeOverThreshold=...;
60  //
61  // Then add each one to the vector of hits
62 
63  return hits;
64 }

Member Data Documentation

int TriggerPrimitiveFinderTemplate::m_threshold
private

Definition at line 22 of file TriggerPrimitiveFinderTemplate_tool.cc.


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