Jpp
software
JTimeslice
JTimesliceL0.hh
Go to the documentation of this file.
1
#ifndef __JTIMESLICE__JTIMESLICEL0__
2
#define __JTIMESLICE__JTIMESLICEL0__
3
4
#include "
JDAQ/JDAQ.hh
"
5
#include "
JDAQ/JDAQTimeslice.hh
"
6
7
#include "
JDetector/JPMTDefaultSimulatorInterface.hh
"
8
#include "
JDetector/JPMTIdentifier.hh
"
9
10
11
/**
12
* \file
13
* Auxiliaries for creation of time slice data.
14
*
15
* \author mdejong
16
*/
17
namespace
KM3NETDAQ
{
18
19
using
JDETECTOR::JPMTDefaultSimulatorInterface
;
20
21
22
/**
23
* Auxiliary class for time slice data.
24
*/
25
struct
JTimesliceL0
:
26
public
JDAQTimesliceL0
27
{
28
/**
29
* Default constructor.
30
*/
31
JTimesliceL0
()
32
{}
33
34
35
/**
36
* Apply high-rate veto.
37
*
38
* \param pmtSimulator PMT simulator
39
*/
40
void
applyHighRateVeto
(
const
JPMTDefaultSimulatorInterface
& pmtSimulator)
41
{
42
using namespace
JPP
;
43
44
for
(
iterator
frame = this->begin(); frame != this->end(); ++frame) {
45
46
for
(
int
pmt = 0; pmt !=
NUMBER_OF_PMTS
; ++pmt) {
47
48
const
JPMTIdentifier
id(frame->getModuleID(), pmt);
49
50
const
bool
status = pmtSimulator.
getPMTstatus
(
id
);
51
52
frame->setHighRateVeto(pmt, !status);
53
}
54
}
55
}
56
};
57
}
58
59
#endif
60
JDAQ.hh
std::iterator
Definition:
JSTDTypes.hh:18
KM3NETDAQ::NUMBER_OF_PMTS
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition:
JDAQ.hh:26
JDAQTimeslice.hh
KM3NETDAQ::JTimesliceL0
Auxiliary class for time slice data.
Definition:
JTimesliceL0.hh:25
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition:
JAAnetToolkit.hh:37
JPMTIdentifier.hh
KM3NETDAQ::JDAQTimesliceL0
Timeslice data structure for L0 data.
Definition:
JDAQTimeslice.hh:313
JDETECTOR::JPMTIdentifier
PMT identifier.
Definition:
JPMTIdentifier.hh:30
JDETECTOR::JPMTDefaultSimulatorInterface
Default PMT simulation interface.
Definition:
JPMTDefaultSimulatorInterface.hh:24
JPMTDefaultSimulatorInterface.hh
KM3NETDAQ
KM3NeT DAQ data structures and auxiliaries.
Definition:
DataQueue.cc:39
KM3NETDAQ::JTimesliceL0::applyHighRateVeto
void applyHighRateVeto(const JPMTDefaultSimulatorInterface &pmtSimulator)
Apply high-rate veto.
Definition:
JTimesliceL0.hh:40
KM3NETDAQ::JTimesliceL0::JTimesliceL0
JTimesliceL0()
Default constructor.
Definition:
JTimesliceL0.hh:31
JDETECTOR::JPMTDefaultSimulatorInterface::getPMTstatus
virtual bool getPMTstatus(const JPMTIdentifier &id) const
Get PMT status.
Definition:
JPMTDefaultSimulatorInterface.hh:57
Generated by
1.8.16