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 trun 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.
 
  
  
      
        
          | JTRIGGER::JSummaryRouter::JSummaryRouter  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 39 of file JSummaryRouter.hh.
JTOOLS::JRouter< int > router
 
 
 
 
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) {
 
   66           router.put(i->getModuleID(), distance(this->begin(), i));
 
JTOOLS::JRouter< int > router
 
void setDAQChronometer(const JDAQChronometer &chronometer)
Set DAQ chronometer. 
 
 
 
 
Get address of module. 
- Parameters
 - 
  
  
 
- Returns
 - address 
 
Definition at line 78 of file JSummaryRouter.hh.
   80       return router.get(module.getModuleID());
 
JTOOLS::JRouter< int > router
 
 
 
 
Get summary frame. 
- Parameters
 - 
  
  
 
- Returns
 - summary frame 
 
Definition at line 90 of file 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 102 of file JSummaryRouter.hh.
  104       return router.has(module.getModuleID());
 
JTOOLS::JRouter< int > router
 
 
 
 
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 | 
         
       
   | 
  
staticinherited   | 
  
 
 
  
  
      
        
          | 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 class was generated from the following file: