Jpp in_tag_pdf_generation
the software that should make you happy
Loading...
Searching...
No Matches
JSUPERNOVA::JVeto Class Reference

Auxiliary class to define a veto time window on a set of optical modules. More...

#include <JSupernova.hh>

Public Member Functions

 JVeto (const JDAQEvent &event, const JDAQHitRouter &hitRouter)
 Default constructor.
 
double getLength ()
 Get length of veto time range.
 
bool operator() (const JCoincidenceSN &in) const
 Determines if a coincidence is vetoed.
 

Private Attributes

JTimeRange timeRange
 
JModuleSet moduleSet
 

Detailed Description

Auxiliary class to define a veto time window on a set of optical modules.

Definition at line 151 of file JSupernova.hh.

Constructor & Destructor Documentation

◆ JVeto()

JSUPERNOVA::JVeto::JVeto ( const JDAQEvent & event,
const JDAQHitRouter & hitRouter )
inline

Default constructor.

Parameters
eventDAQ event
hitRouterhit router as source of hit time calibration

Definition at line 165 of file JSupernova.hh.

165 {
166
168
170
172 hit != event.end<hit_type>();
173 ++hit) {
174
175 moduleSet.insert(hit->getModuleID());
176
177 timeRange.include(getTime(*hit, hitRouter.getPMT(*hit)));
178
179 }
180 }
const JPMT & getPMT(const JDAQKeyHit &hit) const
Get PMT parameters.
JTimeRange timeRange
JModuleSet moduleSet
static JRange< double, std::less< double > > DEFAULT_RANGE()
Definition JRange.hh:555
range_type & include(argument_type x)
Include given value to range.
Definition JRange.hh:397
Template const_iterator.
Definition JDAQEvent.hh:68
const_iterator< T > end() const
Get end of data.
const_iterator< T > begin() const
Get begin of data.
const char * getTime()
Get current local time conform ISO-8601 standard.
Acoustic hit.
Definition JBillabong.cc:70

Member Function Documentation

◆ getLength()

double JSUPERNOVA::JVeto::getLength ( )
inline

Get length of veto time range.

Definition at line 186 of file JSupernova.hh.

186 {
187 return timeRange.getLength();
188 }
T getLength() const
Get length (difference between upper and lower limit).
Definition JRange.hh:289

◆ operator()()

bool JSUPERNOVA::JVeto::operator() ( const JCoincidenceSN & in) const
inline

Determines if a coincidence is vetoed.

Parameters
incoincidence under test

Definition at line 194 of file JSupernova.hh.

194 {
195 return timeRange(in.getTime()) &&
196 (moduleSet.find(in.getModule()) != moduleSet.end());
197 }

Member Data Documentation

◆ timeRange

JTimeRange JSUPERNOVA::JVeto::timeRange
private

Definition at line 154 of file JSupernova.hh.

◆ moduleSet

JModuleSet JSUPERNOVA::JVeto::moduleSet
private

Definition at line 155 of file JSupernova.hh.


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