Auxiliary class for TDC constraints.  
 More...
#include <JTDC_t.hh>
Auxiliary class for TDC constraints. 
Definition at line 37 of file JTDC_t.hh.
 
Type definition for range of TDC constraints of a given module identfier. 
Definition at line 45 of file JTDC_t.hh.
 
 
Wild card for module identifier and TDC. 
Definition at line 51 of file JTDC_t.hh.
 
 
  
  
      
        
          | 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. 
 
 
 
 
  
  
      
        
          | 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. 
 
 
 
 
  
  
      
        
          | 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.
  105       if (range.first == range.second) {
 
  106         range = multimap_type::equal_range(
WILDCARD);
 
z range($ZMAX-$ZMIN)< $MINIMAL_DZ." fi fi typeset -Z 4 STRING typeset -Z 2 FLOOR JPlot1D -f $
 
std::pair< const_iterator, const_iterator > range_type
Type definition for range of TDC constraints of a given module identfier. 
 
 
 
 
  
  
      
        
          | 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) {
 
z range($ZMAX-$ZMIN)< $MINIMAL_DZ." fi fi typeset -Z 4 STRING typeset -Z 2 FLOOR JPlot1D -f $
 
std::pair< const_iterator, const_iterator > range_type
Type definition for range of TDC constraints of a given module identfier. 
 
range_type equal_range(const int id)
Get range of constraints for given module. 
 
 
 
 
  
  
      
        
          | 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. 
 
void insert(const value_type &value)
Insert constraint. 
 
static const int NUMBER_OF_PMTS
Total number of PMTs in module. 
 
 
 
 
  
  
      
        
          | 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) {
 
  178             THROW(JValueOutOfRange, 
"Invalid module identifier: " << 
i->first << 
" < " << 
WILDCARD);
 
  187             THROW(JValueOutOfRange, 
"Invalid TDC: " << 
i->second << 
" {0, .., " << 
NUMBER_OF_PMTS - 1 << 
"}");
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
static const int NUMBER_OF_PMTS
Total number of PMTs in module. 
 
 
 
 
  
  
      
        
          | 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.
  210       JStringStream 
is(
in);
 
  218       for (
int id, pmt; 
is >> 
id >> pmt; ) {
 
  219         tdc.
insert(JTDC_t::value_type(
id, pmt));
 
static JStat getFileStatus
Function object for file status. 
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
 
void insert(const value_type &value)
Insert constraint. 
 
 
 
 
  
  
      
        
          | 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;
 
 
 
 
The documentation for this struct was generated from the following file: