1 #ifndef __JSUPPORT__JSUMMARYSLICESUPPORTKIT__
2 #define __JSUPPORT__JSUMMARYSLICESUPPORTKIT__
22 namespace JPP {
using namespace JSUPPORT; }
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());
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) {};
130 using namespace JDETECTOR;
131 using namespace KM3NETDAQ;
133 for (iterator i = this->begin(); i != this->end(); ++i) {
144 (*i)[pmt].setValue(0.0);
Default K40 simulator interface.
Auxiliary class to create summary data.
virtual bool getPMTstatus(const JPMTIdentifier &id) const
Get PMT status.
Interface of object iteration for a single data type.
const JPMTSimulator & getPMTSimulator() const
Get PMT simulator.
Data structure for detector geometry and calibration.
JSummaryslice()
Default constructor.
virtual double getSurvivalProbability(const int NPE) const
Probability that a hit survives the simulation of the PMT.
virtual const pointer_type & next()=0
Get next element.
JSummaryslice(const JDAQChronometer &chronometer, const JDetectorSimulator &simbad)
Constructor.
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.
virtual bool hasNext()=0
Check availability of next element.
void setDAQChronometer(const JDAQChronometer &chronometer)
Set DAQ chronometer.
JSummaryslice(const JDAQChronometer &chronometer, JObjectIterator< JDAQSummaryslice > &input, const JDetector &detector)
Constructor.
void correct(const JPMTDefaultSimulatorInterface &simulator)
Correct measured singles rates for the probability that a hit survives the simulation of the PMT...
KM3NeT DAQ constants, bit handling, etc.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Default PMT simulation interface.
const JK40Simulator & getK40Simulator() const
Get K40 simulator.