Public Member Functions | Private Attributes | List of all members
CRT::Trigger Class Reference

#include <CRTTrigger.h>

Public Member Functions

 Trigger (const unsigned short channel, const unsigned long long timestamp, std::vector< CRT::Hit > &&hits)
 
 Trigger ()
 
unsigned short Channel () const
 
unsigned long long Timestamp () const
 
const std::vector< CRT::Hit > & Hits () const
 
bool IsDefault () const
 
template<class STREAM >
void dump (STREAM &stream) const
 

Private Attributes

unsigned short fChannel
 
unsigned long long fTimestamp
 
std::vector< CRT::HitfHits
 

Detailed Description

Definition at line 80 of file CRTTrigger.h.

Constructor & Destructor Documentation

CRT::Trigger::Trigger ( const unsigned short  channel,
const unsigned long long  timestamp,
std::vector< CRT::Hit > &&  hits 
)
inline

Definition at line 86 of file CRTTrigger.h.

87  : fChannel(channel), /*fDetName(detName),*/ fTimestamp(timestamp), fHits(hits)
88  {}
unsigned long long fTimestamp
Definition: CRTTrigger.h:123
unsigned short fChannel
Definition: CRTTrigger.h:117
uint8_t channel
Definition: CRTFragment.hh:201
std::vector< CRT::Hit > fHits
Definition: CRTTrigger.h:125
CRT::Trigger::Trigger ( )
inline

Definition at line 90 of file CRTTrigger.h.

90  : fChannel(std::numeric_limits<decltype(fChannel)>::max()), /*fDetName(""),*/
91  fTimestamp(std::numeric_limits<decltype(fTimestamp)>::max()), fHits() {} //Default constructor to satisfy ROOT.
unsigned long long fTimestamp
Definition: CRTTrigger.h:123
unsigned short fChannel
Definition: CRTTrigger.h:117
static int max(int a, int b)
std::vector< CRT::Hit > fHits
Definition: CRTTrigger.h:125

Member Function Documentation

unsigned short CRT::Trigger::Channel ( ) const
inline

Definition at line 94 of file CRTTrigger.h.

94 { return fChannel; }
unsigned short fChannel
Definition: CRTTrigger.h:117
template<class STREAM >
void CRT::Trigger::dump ( STREAM &  stream) const
inline

Definition at line 104 of file CRTTrigger.h.

105  {
106  stream << "CRT::Trigger dump:\n"
107  << "Channel: " << fChannel << "\n"
108  //<< "Detector Name: " << fDetName << "\n"
109  << "Timestamp: " << fTimestamp << "\n"
110  << "Hits:\n";
111  for(const auto& hit: fHits) hit.dump(stream);
112 
113  return stream;
114  }
unsigned long long fTimestamp
Definition: CRTTrigger.h:123
unsigned short fChannel
Definition: CRTTrigger.h:117
Detector simulation of raw signals on wires.
std::vector< CRT::Hit > fHits
Definition: CRTTrigger.h:125
const std::vector<CRT::Hit>& CRT::Trigger::Hits ( ) const
inline

Definition at line 97 of file CRTTrigger.h.

97 { return fHits; }
std::vector< CRT::Hit > fHits
Definition: CRTTrigger.h:125
bool CRT::Trigger::IsDefault ( ) const
inline

Definition at line 100 of file CRTTrigger.h.

unsigned short fChannel
Definition: CRTTrigger.h:117
static int max(int a, int b)
unsigned long long CRT::Trigger::Timestamp ( ) const
inline

Definition at line 96 of file CRTTrigger.h.

96 { return fTimestamp; }
unsigned long long fTimestamp
Definition: CRTTrigger.h:123

Member Data Documentation

unsigned short CRT::Trigger::fChannel
private

Definition at line 117 of file CRTTrigger.h.

std::vector<CRT::Hit> CRT::Trigger::fHits
private

Definition at line 125 of file CRTTrigger.h.

unsigned long long CRT::Trigger::fTimestamp
private

Definition at line 123 of file CRTTrigger.h.


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