Router for fast addressing of summary data in JDAQSummaryslice data structure as a function of the optical module identifier.
More...
#include <JSummaryRouter.hh>
|
static const int | NPE = 1 |
| Number of photo-electrons corresponding to singles rate. More...
|
|
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 JSUPPORT::JSummaryslice which in turn derives from KM3NETDAQ::JDAQSummaryslice so that the summary data can efficiently be updated (JSummaryRouter::update) and a posteriori corrected (JSummaryslice::correct).
Definition at line 32 of file JSummaryRouter.hh.
◆ JSummaryRouter()
JTRIGGER::JSummaryRouter::JSummaryRouter |
( |
| ) |
|
|
inline |
◆ update()
Update router.
- Parameters
-
ps | pointer to new summary slice (will be overwritten) |
Definition at line 49 of file JSummaryRouter.hh.
55 for (
iterator i = this->begin(); i != this->end(); ++i) {
56 router.put(i->getModuleID(),
router.getDefaultAddress());
65 for (
iterator i = this->begin(); i != this->end(); ++i) {
◆ getAddress()
Get address of module.
- Parameters
-
- Returns
- address
Definition at line 78 of file JSummaryRouter.hh.
◆ getSummaryFrame()
Get summary frame.
- Parameters
-
- Returns
- summary frame
Definition at line 90 of file JSummaryRouter.hh.
◆ hasSummaryFrame()
Has summary frame.
- Parameters
-
- Returns
- true if module present; else false
Definition at line 102 of file JSummaryRouter.hh.
◆ correct()
Correct measured singles rates for the probability that a hit survives the simulation of the PMT.
- Parameters
-
Definition at line 121 of file JSummaryslice.hh.
125 for (
iterator i = this->begin(); i != this->end(); ++i) {
136 (*i)[pmt].setValue(0.0);
◆ 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.
92 out << this->ClassName() << endl;
93 out << dynamic_cast<const JDAQPreamble&> (*
this) << endl;
94 out << dynamic_cast<const JDAQChronometer&>(*
this) << endl;
96 for (JDAQSummaryslice::const_iterator module = this->begin(); module != this->end(); ++module) {
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();
106 out <<
' ' << fixed << showpoint << setw(4) << setprecision(1) << module->getRate(pmt) * 1.0e-3;
◆ actionAtFileOpen()
static void KM3NETDAQ::JDAQSummaryslice::actionAtFileOpen |
( |
int |
version | ) |
|
|
inlinestaticinherited |
◆ ClassDef() [1/5]
◆ ClassDef() [2/5]
◆ ClassDef() [3/5]
◆ ClassDef() [4/5]
KM3NETDAQ::JDAQHeader::ClassDef |
( |
JDAQHeader |
, |
|
|
2 |
|
|
) |
| |
|
inherited |
◆ ClassDef() [5/5]
◆ getDAQPreamble()
template<class T >
static JDAQPreamble KM3NETDAQ::JDAQPreamble::getDAQPreamble |
( |
const T & |
object | ) |
|
|
inlinestaticinherited |
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.
81 preamble.
type = KM3NETDAQ::getDataType<T>();
◆ getLength()
int KM3NETDAQ::JDAQAbstractPreamble::getLength |
( |
| ) |
const |
|
inlineinherited |
◆ getDataType()
int KM3NETDAQ::JDAQAbstractPreamble::getDataType |
( |
| ) |
const |
|
inlineinherited |
◆ ClassDefNV()
◆ getDAQSummarysliceHeader()
Get DAQ summary slice header.
- Returns
- DAQ summary slice header
Definition at line 44 of file JDAQSummarysliceHeader.hh.
46 return static_cast<const JDAQSummarysliceHeader&>(*
this);
◆ getDAQHeader()
const JDAQHeader& KM3NETDAQ::JDAQHeader::getDAQHeader |
( |
| ) |
const |
|
inlineinherited |
Get DAQ header.
- Returns
- DAQ header
Definition at line 49 of file JDAQHeader.hh.
51 return static_cast<const JDAQHeader&>(*
this);
◆ setDAQHeader()
void KM3NETDAQ::JDAQHeader::setDAQHeader |
( |
const JDAQHeader & |
header | ) |
|
|
inlineinherited |
Set DAQ header.
- Parameters
-
Definition at line 60 of file JDAQHeader.hh.
62 static_cast<JDAQHeader&>(*
this) = header;
◆ getDAQChronometer()
const JDAQChronometer& KM3NETDAQ::JDAQChronometer::getDAQChronometer |
( |
| ) |
const |
|
inlineinherited |
Get DAQ chronometer.
- Returns
- DAQ chronometer
Definition at line 88 of file JDAQChronometer.hh.
90 return static_cast<const JDAQChronometer&>(*
this);
◆ setDAQChronometer()
void KM3NETDAQ::JDAQChronometer::setDAQChronometer |
( |
const JDAQChronometer & |
chronometer | ) |
|
|
inlineinherited |
Set DAQ chronometer.
- Parameters
-
chronometer | DAQ chronometer |
Definition at line 99 of file JDAQChronometer.hh.
101 static_cast<JDAQChronometer&>(*
this) = chronometer;
◆ getDetectorID()
int KM3NETDAQ::JDAQChronometer::getDetectorID |
( |
| ) |
const |
|
inlineinherited |
◆ getRunNumber()
int KM3NETDAQ::JDAQChronometer::getRunNumber |
( |
| ) |
const |
|
inlineinherited |
◆ getFrameIndex()
int KM3NETDAQ::JDAQChronometer::getFrameIndex |
( |
| ) |
const |
|
inlineinherited |
◆ getTimesliceStart()
◆ setRunNumber()
void KM3NETDAQ::JDAQChronometer::setRunNumber |
( |
const int |
run | ) |
|
|
inlineinherited |
◆ setFrameIndex()
void KM3NETDAQ::JDAQChronometer::setFrameIndex |
( |
const int |
frame_index | ) |
|
|
inlineinherited |
◆ setTimesliceStart()
void KM3NETDAQ::JDAQChronometer::setTimesliceStart |
( |
const JDAQUTCExtended & |
timeslice_start | ) |
|
|
inlineinherited |
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 141 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:
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.