Router for fast addressing of summary data in JDAQSummaryslice data structure as a function of the optical module identifier.
More...
#include <JSummaryRouter.hh>
Router for fast addressing of summary data in JDAQSummaryslice data structure as a function of the optical module identifier.
Note that this class derives from KM3NETDAQ::JSummaryslice which in turn derives from KM3NETDAQ::JDAQSummaryslice so that:
Definition at line 34 of file JTrigger/JSummaryRouter.hh.
◆ JSummaryRouter()
| JTRIGGER::JSummaryRouter::JSummaryRouter |
( |
| ) |
|
|
inline |
◆ update()
Update router.
- Parameters
-
| ps | pointer to new summary slice |
Definition at line 51 of file JTrigger/JSummaryRouter.hh.
52 {
54
55
56
57 for (
iterator i = this->begin(); i != this->end(); ++i) {
58 router.put(i->getModuleID(),
router.getDefaultAddress());
59 }
60
62
63
64
65 for (
iterator i = this->begin(); i != this->end(); ++i) {
66 router.put(i->getModuleID(), std::distance(this->begin(), i));
67 }
68 }
69 }
Template definition of a multi-dimensional oscillation probability interpolation table.
◆ getAddress()
◆ getSummaryFrame()
Get summary frame.
- Parameters
-
- Returns
- summary frame
Definition at line 90 of file JTrigger/JSummaryRouter.hh.
91 {
93 }
const int getAddress(const JDAQModuleIdentifier &module) const
Get address of module.
◆ hasSummaryFrame()
◆ correct()
Correct measured singles rates for the probability that a hit survives the simulation of the PMT.
- Parameters
-
Definition at line 151 of file JSummaryslice.hh.
152 {
155
156 for (
iterator frame = this->begin(); frame != this->end(); ++frame) {
157
159
161
162 const double P =
simulator.getPMTSignalProcessor(
id).getSurvivalProbability(
NPE,
false);
163
164 if (P > 0.0)
165 (*frame)[pmt].div(P);
166 else
167 (*frame)[pmt].setValue(0.0);
168 }
169 }
170 }
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
static const int NPE
Number of photo-electrons corresponding to singles rate.
◆ print()
| std::ostream & KM3NETDAQ::JDAQSummaryslice::print |
( |
std::ostream & | out, |
|
|
const bool | lpr = false ) const |
|
inlineinherited |
Print DAQ summary.
- Parameters
-
| out | output stream |
| lpr | long print |
- Returns
- output stream
Definition at line 88 of file JDAQSummaryslice.hh.
89 {
91
95
96 for (JDAQSummaryslice::const_iterator
module = this->begin();
module != this->end(); ++
module) {
97
98 out <<
' ' <<
setw(10) <<
module->getModuleID();
99 out <<
' ' <<
setw(8) <<
setfill(
'0') <<
hex <<
module->getStatus() << dec << setfill(' ');
100 out <<
'|' <<
setw(8) <<
setfill(
'0') <<
hex <<
module->getFIFOStatus() << dec << setfill(' ');
101 out <<
' ' <<
setw(2) <<
module->getUDPNumberOfReceivedPackets();
102 out <<
' ' <<
setw(2) <<
module->getUDPMaximalSequenceNumber();
103
107 }
108 }
109
111 }
112
113 return out;
114 }
◆ actionAtFileOpen()
| static void KM3NETDAQ::JDAQSummaryslice::actionAtFileOpen |
( |
int | version | ) |
|
|
inlinestaticinherited |
Action method at file open.
- Parameters
-
Definition at line 122 of file JDAQSummaryslice.hh.
123 {
125 }
static int ROOT_IO_VERSION
Streamer version of JDAQSummaryslice as obtained from ROOT file.
◆ ClassDef() [1/5]
◆ ClassDef() [2/5]
◆ ClassDef() [3/5]
◆ ClassDef() [4/5]
| KM3NETDAQ::JDAQHeader::ClassDef |
( |
JDAQHeader | , |
|
|
2 | ) |
|
inherited |
◆ ClassDef() [5/5]
◆ getDAQPreamble()
Get DAQ preamble.
This method should be used for binary I/O to get the actual data for the given object.
To this end, the following method should be overloaded for the corresponding data type.
size_t getSizeof(const T&);
- Parameters
-
- Returns
- preamble
Definition at line 76 of file JDAQPreamble.hh.
77 {
79
82
83 return preamble;
84 }
friend size_t getSizeof()
Definition of method to get size of data type.
◆ getLength()
| int KM3NETDAQ::JDAQAbstractPreamble::getLength |
( |
| ) |
const |
|
inlineinherited |
◆ getDataType()
| int KM3NETDAQ::JDAQAbstractPreamble::getDataType |
( |
| ) |
const |
|
inlineinherited |
◆ ClassDefNV()
◆ getDAQSummarysliceHeader()
◆ getDAQHeader()
Get DAQ header.
- Returns
- DAQ header
Definition at line 49 of file JDAQHeader.hh.
◆ setDAQHeader()
◆ getDAQChronometer()
◆ setDAQChronometer()
Set DAQ chronometer.
- Parameters
-
| chronometer | DAQ chronometer |
Definition at line 99 of file JDAQChronometer.hh.
◆ getDetectorID()
| int KM3NETDAQ::JDAQChronometer::getDetectorID |
( |
| ) |
const |
|
inlineinherited |
◆ getRunNumber()
| int KM3NETDAQ::JDAQChronometer::getRunNumber |
( |
| ) |
const |
|
inlineinherited |
◆ getFrameIndex()
| int KM3NETDAQ::JDAQChronometer::getFrameIndex |
( |
| ) |
const |
|
inlineinherited |
◆ getTimesliceStart()
Get start of timeslice.
- Returns
- timeslice start
Definition at line 144 of file JDAQChronometer.hh.
145 {
147 }
JDAQUTCExtended timeslice_start
◆ setRunNumber()
| void KM3NETDAQ::JDAQChronometer::setRunNumber |
( |
const int | run | ) |
|
|
inlineinherited |
◆ setFrameIndex()
| void KM3NETDAQ::JDAQChronometer::setFrameIndex |
( |
const int | frame_index | ) |
|
|
inlineinherited |
◆ setTimesliceStart()
Set timeslice start time.
- Parameters
-
| timeslice_start | timeslice start time |
Definition at line 177 of file JDAQChronometer.hh.
◆ router
◆ NPE
| const int KM3NETDAQ::JSummaryslice::NPE = 1 |
|
staticinherited |
Number of photo-electrons corresponding to singles rate.
Definition at line 172 of file JSummaryslice.hh.
◆ length
| int KM3NETDAQ::JDAQAbstractPreamble::length |
|
protectedinherited |
◆ type
| int KM3NETDAQ::JDAQAbstractPreamble::type |
|
protectedinherited |
◆ detector_id
| int KM3NETDAQ::JDAQChronometer::detector_id |
|
protectedinherited |
◆ run
| int KM3NETDAQ::JDAQChronometer::run |
|
protectedinherited |
◆ frame_index
| int KM3NETDAQ::JDAQChronometer::frame_index |
|
protectedinherited |
◆ timeslice_start
The documentation for this class was generated from the following file: