Auxiliary class for TDC constraints.  
 More...
#include <JTDC_t.hh>
Auxiliary class for TDC constraints. 
Definition at line 37 of file JTDC_t.hh.
 
◆ multimap_type
◆ range_type
Type definition for range of TDC constraints of a given module identfier. 
Definition at line 45 of file JTDC_t.hh.
 
 
◆ anonymous enum
Wild card for module identifier and TDC. 
Definition at line 51 of file JTDC_t.hh.
 
 
◆ insert() [1/2]
  
  
      
        
          | void JCALIBRATE::JTDC_t::insert  | 
          ( | 
          const value_type &  | 
          value | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Insert constraint. 
Note that if TDC equals JTDC_t::WILDCARD, all possible TDCs in the given module are inserted.
- Parameters
 - 
  
    | value | module identifier and TDC  | 
  
   
Definition at line 62 of file JTDC_t.hh.
   67           multimap_type::insert(value_type(value.first, pmt));
 
   72         multimap_type::insert(value);
 
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
 
 
 
 
◆ insert() [2/2]
  
  
      
        
          | void JCALIBRATE::JTDC_t::insert  | 
          ( | 
          const int  | 
          id,  | 
         
        
           | 
           | 
          const int  | 
          tdc  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Insert constraint. 
Note that if TDC equals JTDC_t::WILDCARD, all possible TDCs in the given module are inserted.
- Parameters
 - 
  
    | id | module identifier  | 
    | tdc | TDC  | 
  
   
Definition at line 86 of file JTDC_t.hh.
   88       this->
insert(value_type(
id, tdc));
 
void insert(const value_type &value)
Insert constraint.
 
 
 
 
◆ equal_range()
  
  
      
        
          | range_type JCALIBRATE::JTDC_t::equal_range  | 
          ( | 
          const int  | 
          id | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Get range of constraints for given module. 
Note that if no data are available for given module identifier, the data corresponding to JTDC_t::WILDCARD are returned.
- Parameters
 - 
  
  
 
- Returns
 - range of constraints 
 
Definition at line 101 of file JTDC_t.hh.
  103       range_type range = multimap_type::equal_range(
id);
 
  106         range = multimap_type::equal_range(
WILDCARD);
 
 
 
 
◆ has()
  
  
      
        
          | bool JCALIBRATE::JTDC_t::has  | 
          ( | 
          const int  | 
          id,  | 
         
        
           | 
           | 
          const int  | 
          tdc  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Check if TDC is constraint. 
- Parameters
 - 
  
    | id | module identifier  | 
    | tdc | TDC channel  | 
  
   
- Returns
 - true if given TDC is constraint; else false 
 
Definition at line 120 of file JTDC_t.hh.
  124       for (JTDC_t::const_iterator i = range.
first; i != range.
second; ++i) {
 
  125         if (tdc == i->second) {
 
range_type equal_range(const int id)
Get range of constraints for given module.
 
 
 
 
◆ reverse()
  
  
      
        
          | void JCALIBRATE::JTDC_t::reverse  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Reverse constraints. 
Definition at line 137 of file JTDC_t.hh.
  141       for (JTDC_t::const_iterator p = this->begin(); p != this->end(); ) {
 
  143         JTDC_t::const_iterator q = p;
 
  145         for ( ; q != this->end() && q->first == p->first; ++q) {}
 
  149           JTDC_t::const_iterator i = p;
 
  151           for ( ; i != q && i->second != pmt; ++i) {}
 
  154             buffer.
insert(value_type(p->first, pmt));
 
Auxiliary class for TDC constraints.
 
 
 
 
◆ is_valid()
  
  
      
        
          | bool JCALIBRATE::JTDC_t::is_valid  | 
          ( | 
          const bool  | 
          option = false | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Check validity of TDC constrants. 
- Parameters
 - 
  
    | option | option (if true, throw exception if not valid)  | 
  
   
- Returns
 - true if valid; else false 
 
Definition at line 171 of file JTDC_t.hh.
  173       for (const_iterator i = this->begin(); i != this->end(); ++i) {
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
 
Exception for accessing a value in a collection that is outside of its range.
 
 
 
 
◆ operator>>
  
  
      
        
          | std::istream& operator>>  | 
          ( | 
          std::istream &  | 
          in,  | 
         
        
           | 
           | 
          JTDC_t &  | 
          tdc  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Read TDC constraints from input. 
- Parameters
 - 
  
    | in | input stream  | 
    | tdc | TDC constraints  | 
  
   
- Returns
 - input stream 
 
Definition at line 205 of file JTDC_t.hh.
  218       for (
int id, pmt; is >> 
id >> pmt; ) {
 
  219         tdc.
insert(JTDC_t::value_type(
id, pmt));
 
Wrapper class around STL stringstream class to facilitate optional loading of data from file.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
static JStat getFileStatus
Function object for file status.
 
 
 
 
◆ operator<<
  
  
      
        
          | std::ostream& operator<<  | 
          ( | 
          std::ostream &  | 
          out,  | 
         
        
           | 
           | 
          const JTDC_t &  | 
          tdc  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Write TDC constraints to output. 
- Parameters
 - 
  
    | out | output stream  | 
    | tdc | TDC constraints  | 
  
   
- Returns
 - output stream 
 
Definition at line 233 of file JTDC_t.hh.
  239       for (JTDC_t::const_iterator i = tdc.begin(); i != tdc.end(); ++i) {
 
  240         out << setw(10) << i->first << 
' ' << setw(2) << i->second << endl;
 
 
 
 
◆ comment
The documentation for this struct was generated from the following file: