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 KM3NETDAQ::JSummaryslice which in turn derives from KM3NETDAQ::JDAQSummaryslice so that:
Definition at line 34 of file JTrigger/JSummaryRouter.hh.
JTRIGGER::JSummaryRouter::JSummaryRouter |
( |
| ) |
|
|
inline |
Update router.
- Parameters
-
ps | pointer to new summary slice (will be overwritten) |
Definition at line 51 of file JTrigger/JSummaryRouter.hh.
57 for (
iterator i = this->begin();
i != this->end(); ++
i) {
67 for (
iterator i = this->begin();
i != this->end(); ++
i) {
JTOOLS::JRouter< int > router
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
void setDAQChronometer(const JDAQChronometer &chronometer)
Set DAQ chronometer.
Get address of module.
- Parameters
-
- Returns
- address
Definition at line 80 of file JTrigger/JSummaryRouter.hh.
JTOOLS::JRouter< int > router
int getModuleID() const
Get module identifier.
Get summary frame.
- Parameters
-
- Returns
- summary frame
Definition at line 92 of file JTrigger/JSummaryRouter.hh.
const int getAddress(const JDAQModuleIdentifier &module) const
Get address of module.
Has summary frame.
- Parameters
-
- Returns
- true if module present; else false
Definition at line 104 of file JTrigger/JSummaryRouter.hh.
JTOOLS::JRouter< int > router
int getModuleID() const
Get module identifier.
Correct measured singles rates for the probability that a hit survives the simulation of the PMT.
- Parameters
-
Definition at line 148 of file JSummaryslice.hh.
151 using namespace KM3NETDAQ;
153 for (
iterator frame = this->begin(); frame != this->end(); ++frame) {
162 (*frame)[pmt].div(P);
164 (*frame)[pmt].setValue(0.0);
virtual double getSurvivalProbability(const int NPE) const
Probability that a hit survives the simulation of the PMT.
virtual const JPMTSignalProcessorInterface & getPMTSignalProcessor(const JPMTIdentifier &pmt) const
Get PMT signal processor.
static const int NPE
Number of photo-electrons corresponding to singles rate.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
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;
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
static void KM3NETDAQ::JDAQSummaryslice::actionAtFileOpen |
( |
int |
version | ) |
|
|
inlinestaticinherited |
Action method at file open.
- Parameters
-
Definition at line 122 of file JDAQSummaryslice.hh.
static int ROOT_IO_VERSION
Streamer version of JDAQSummaryslice as obtained from ROOT file.
KM3NETDAQ::JDAQHeader::ClassDef |
( |
JDAQHeader |
, |
|
|
2 |
|
|
) |
| |
|
inherited |
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>();
friend size_t getSizeof()
Definition of method to get size of data type.
int KM3NETDAQ::JDAQAbstractPreamble::getLength |
( |
| ) |
const |
|
inlineinherited |
int KM3NETDAQ::JDAQAbstractPreamble::getDataType |
( |
| ) |
const |
|
inlineinherited |
const JDAQHeader& KM3NETDAQ::JDAQHeader::getDAQHeader |
( |
| ) |
const |
|
inlineinherited |
Get DAQ header.
- Returns
- DAQ header
Definition at line 49 of file JDAQHeader.hh.
void KM3NETDAQ::JDAQHeader::setDAQHeader |
( |
const JDAQHeader & |
header | ) |
|
|
inlineinherited |
const JDAQChronometer& KM3NETDAQ::JDAQChronometer::getDAQChronometer |
( |
| ) |
const |
|
inlineinherited |
void KM3NETDAQ::JDAQChronometer::setDAQChronometer |
( |
const JDAQChronometer & |
chronometer | ) |
|
|
inlineinherited |
Set DAQ chronometer.
- Parameters
-
chronometer | DAQ chronometer |
Definition at line 99 of file JDAQChronometer.hh.
int KM3NETDAQ::JDAQChronometer::getDetectorID |
( |
| ) |
const |
|
inlineinherited |
int KM3NETDAQ::JDAQChronometer::getRunNumber |
( |
| ) |
const |
|
inlineinherited |
int KM3NETDAQ::JDAQChronometer::getFrameIndex |
( |
| ) |
const |
|
inlineinherited |
Get start of timeslice.
- Returns
- timeslice start
Definition at line 144 of file JDAQChronometer.hh.
JDAQUTCExtended timeslice_start
void KM3NETDAQ::JDAQChronometer::setRunNumber |
( |
const int |
run | ) |
|
|
inlineinherited |
void KM3NETDAQ::JDAQChronometer::setFrameIndex |
( |
const int |
frame_index | ) |
|
|
inlineinherited |
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.
JDAQUTCExtended timeslice_start
const int KM3NETDAQ::JSummaryslice::NPE = 1 |
|
staticinherited |
Number of photo-electrons corresponding to singles rate.
Definition at line 169 of file JSummaryslice.hh.
int KM3NETDAQ::JDAQAbstractPreamble::length |
|
protectedinherited |
int KM3NETDAQ::JDAQAbstractPreamble::type |
|
protectedinherited |
int KM3NETDAQ::JDAQChronometer::detector_id |
|
protectedinherited |
int KM3NETDAQ::JDAQChronometer::run |
|
protectedinherited |
int KM3NETDAQ::JDAQChronometer::frame_index |
|
protectedinherited |
The documentation for this class was generated from the following file: