Auxiliary class to create summary data.
More...
#include <JSummarysliceSupportkit.hh>
|
| JSummaryslice () |
| Default constructor. More...
|
|
| JSummaryslice (const JDAQChronometer &chronometer, JObjectIterator< JDAQSummaryslice > &input, const JDetector &detector) |
| Constructor. More...
|
|
| JSummaryslice (const JDAQChronometer &chronometer, const JDetectorSimulator &simbad) |
| Constructor. More...
|
|
void | correct (const JPMTDefaultSimulatorInterface &simulator) |
| Correct measured singles rates for the probability that a hit survives the simulation of the PMT. More...
|
|
std::ostream & | print (std::ostream &out, const bool lpr=false) const |
| Print DAQ summary. More...
|
|
virtual int | getSize () const |
| Get size of object. More...
|
|
| ClassDef (JDAQSummaryslice, 6) |
|
| ClassDef (JDAQPreamble, 1) |
|
| ClassDef (JDAQSummarysliceHeader, 2) |
|
| ClassDef (JDAQHeader, 2) |
|
| ClassDef (JDAQChronometer, 3) |
|
int | getLength () const |
| Get length. More...
|
|
int | getDataType () const |
| Get data type. More...
|
|
| ClassDefNV (JDAQAbstractPreamble, 1) |
|
const JDAQSummarysliceHeader & | getDAQSummarysliceHeader () const |
| Get DAQ summary slice header. More...
|
|
const JDAQHeader & | getDAQHeader () const |
| Get DAQ header. More...
|
|
void | setDAQHeader (const JDAQHeader &header) |
| Set DAQ header. More...
|
|
const JDAQChronometer & | getDAQChronometer () const |
| Get DAQ chronometer. More...
|
|
void | setDAQChronometer (const JDAQChronometer &chronometer) |
| Set DAQ chronometer. More...
|
|
int | getDetectorID () const |
| Get detector identifier. More...
|
|
int | getRunNumber () const |
| Get run number. More...
|
|
int | getFrameIndex () const |
| Get frame index. More...
|
|
const JDAQUTCExtended & | getTimesliceStart () const |
| Get start of timeslice. More...
|
|
void | setRunNumber (const int run) |
| Set run number. More...
|
|
void | setFrameIndex (const int frame_index) |
| Set frame index. More...
|
|
void | setTimesliceStart (const JDAQUTCExtended ×lice_start) |
| Set timeslice start time. More...
|
|
|
static const int | NPE = 1 |
| number of photo-electrons corresponding to singles rate More...
|
|
Auxiliary class to create summary data.
Definition at line 39 of file JSummarysliceSupportkit.hh.
JSUPPORT::JSummaryslice::JSummaryslice |
( |
| ) |
|
|
inline |
Constructor.
This constructor blends multiple KM3NETDAQ::JDAQSummaryslice's from an incomplete detector to a single KM3NETDAQ::JDAQSummaryslice for a complete detector.
- Parameters
-
chronometer | DAQ chronometer |
input | summary data |
detector | detector |
Definition at line 59 of file JSummarysliceSupportkit.hh.
64 for (JDetector::const_iterator module = detector.begin(); module != detector.end() && input.
hasNext(); ) {
68 for (const_iterator i = summary->begin(); i != summary->end() && module != detector.end(); ++i, ++module) {
72 rbegin()->setModuleIdentifier(module->getID());
JDAQSummaryslice()
Default constructor.
virtual const pointer_type & next()=0
Get next element.
virtual bool hasNext()=0
Check availability of next element.
Constructor.
This constructor directly creates a KM3NETDAQ::JDAQSummaryslice for a given detector simulation (i.e. without the need to create first a KM3NETDAQ::JDAQTimeslice).
- Parameters
-
chronometer | chronometer |
simbad | detector simulator |
Definition at line 87 of file JSummarysliceSupportkit.hh.
91 using namespace JDETECTOR;
92 using namespace KM3NETDAQ;
101 for (JDetector::const_iterator module = simbad->begin(); module != simbad->end(); ++module) {
114 this->rbegin()->setHighRateVeto(pmt, !status);
115 this->rbegin()->setRate (pmt, rate_Hz);
119 catch(
const std::exception& error) {};
JDAQSummaryslice()
Default constructor.
Default K40 simulator interface.
virtual bool getPMTstatus(const JPMTIdentifier &id) const
Get PMT status.
const JPMTSimulator & getPMTSimulator() const
Get PMT simulator.
virtual double getSurvivalProbability(const int NPE) const
Probability that a hit survives the simulation of the PMT.
static const int NPE
number of photo-electrons corresponding to singles rate
virtual const JPMTSignalProcessorInterface & getPMTSignalProcessor(const JPMTIdentifier &pmt) const
Get PMT signal processor.
Data storage class for rate measurements of all PMTs in one module.
virtual double getSinglesRate(const JPMTIdentifier &pmt) const =0
Get singles rate as a function of PMT.
void setDAQChronometer(const JDAQChronometer &chronometer)
Set DAQ chronometer.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Default PMT simulation interface.
const JK40Simulator & getK40Simulator() const
Get K40 simulator.
Correct measured singles rates for the probability that a hit survives the simulation of the PMT.
- Parameters
-
Definition at line 128 of file JSummarysliceSupportkit.hh.
130 using namespace JDETECTOR;
131 using namespace KM3NETDAQ;
133 for (iterator i = this->begin(); i != this->end(); ++i) {
144 (*i)[pmt].setValue(0.0);
virtual double getSurvivalProbability(const int NPE) const
Probability that a hit survives the simulation of the PMT.
static const int NPE
number of photo-electrons corresponding to singles rate
virtual const JPMTSignalProcessorInterface & getPMTSignalProcessor(const JPMTIdentifier &pmt) const
Get PMT signal processor.
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 125 of file JDAQSummaryslice.hh.
129 out << this->ClassName() << endl;
130 out << dynamic_cast<const JDAQPreamble&> (*this) << endl;
131 out << dynamic_cast<const JDAQChronometer&>(*this) << endl;
133 for (JDAQSummaryslice::const_iterator module = this->begin(); module != this->end(); ++module) {
135 out <<
' ' << setw(5) << module->getModuleID();
136 out <<
' ' << setw(8) << hex << module->getStatus() << dec;
137 out <<
' ' << setw(2) << module->getUDPNumberOfReceivedPackets();
138 out <<
' ' << setw(2) << module->getUDPMaximalSequenceNumber();
142 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.
virtual int KM3NETDAQ::JDAQSummaryslice::getSize |
( |
| ) |
const |
|
inlinevirtualinherited |
static void KM3NETDAQ::JDAQSummaryslice::actionAtFileOpen |
( |
int |
version | ) |
|
|
inlinestaticinherited |
Action method at file open.
- Parameters
-
Definition at line 177 of file JDAQSummaryslice.hh.
static int ROOT_IO_VERSION
Streamer version of JDAQSummaryslice as obtained from ROOT file.
KM3NETDAQ::JDAQHeader::ClassDef |
( |
JDAQHeader |
, |
|
|
2 |
|
|
) |
| |
|
inherited |
static int KM3NETDAQ::JDAQPreamble::sizeOf |
( |
| ) |
|
|
inlinestaticinherited |
Get size of object.
- Returns
- number of bytes
Definition at line 110 of file JDAQPreamble.hh.
static int sizeOf()
Get size of object.
static int KM3NETDAQ::JDAQHeader::sizeOf |
( |
| ) |
|
|
inlinestaticinherited |
Get size of object.
- Returns
- number of bytes
Definition at line 103 of file JDAQHeader.hh.
static int sizeOf()
Get size of object.
void KM3NETDAQ::JDAQPreamble::setLength |
( |
| ) |
|
|
inlineprotectedinherited |
Set length.
Definition at line 134 of file JDAQPreamble.hh.
virtual int getSize() const
Get size of object.
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 51 of file JDAQHeader.hh.
void KM3NETDAQ::JDAQHeader::setDAQHeader |
( |
const JDAQHeader & |
header | ) |
|
|
inlineinherited |
const JDAQChronometer& KM3NETDAQ::JDAQChronometer::getDAQChronometer |
( |
| ) |
const |
|
inlineinherited |
Get DAQ chronometer.
- Returns
- DAQ chronometer
Definition at line 88 of file JDAQChronometer.hh.
JDAQChronometer()
Default constructor.
void KM3NETDAQ::JDAQChronometer::setDAQChronometer |
( |
const JDAQChronometer & |
chronometer | ) |
|
|
inlineinherited |
Set DAQ chronometer.
- Parameters
-
chronometer | DAQ chronometer |
Definition at line 99 of file JDAQChronometer.hh.
JDAQChronometer()
Default constructor.
int KM3NETDAQ::JDAQChronometer::getDetectorID |
( |
| ) |
const |
|
inlineinherited |
int KM3NETDAQ::JDAQChronometer::getRunNumber |
( |
| ) |
const |
|
inlineinherited |
int KM3NETDAQ::JDAQChronometer::getFrameIndex |
( |
| ) |
const |
|
inlineinherited |
const JDAQUTCExtended& KM3NETDAQ::JDAQChronometer::getTimesliceStart |
( |
| ) |
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 JSUPPORT::JSummaryslice::NPE = 1 |
|
static |
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 |
JDAQUTCExtended KM3NETDAQ::JDAQChronometer::timeslice_start |
|
protectedinherited |
The documentation for this struct was generated from the following file: