Auxiliary class for TDC constraints.  
 More...
#include <JTDC_t.hh>
Auxiliary class for TDC constraints. 
Definition at line 34 of file JTDC_t.hh.
Type definition for range of TDC constraints of a given module identfier. 
Definition at line 42 of file JTDC_t.hh.
 
 
Wild card for module identifier and TDC. 
Definition at line 48 of file JTDC_t.hh.
 
 
  
  | 
        
          | void JCALIBRATE::JTDC_t::insert | ( | const value_type & | value | ) |  |  | inline | 
 
Insert constraint. 
Note that if TDC equals JTDC_t::WILD_CARD, all possible TDCs in the given module are inserted.
- Parameters
- 
  
    | value | module identifier and TDC |  
 
Definition at line 59 of file JTDC_t.hh.
   64           multimap_type::insert(value_type(value.first, pmt));
 
   69         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::WILD_CARD, all possible TDCs in the given module are inserted.
- Parameters
- 
  
    | id | module identifier |  | tdc | TDC |  
 
Definition at line 83 of file JTDC_t.hh.
   85       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::WILD_CARD are returned.
- Parameters
- 
  
  
- Returns
- range of constraints 
Definition at line 98 of file JTDC_t.hh.
  102       if (range.first == range.second) {
 
  103         range = multimap_type::equal_range(
WILD_CARD);
 
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. 
 
 
 
  
  | 
        
          | void JCALIBRATE::JTDC_t::reverse | ( |  | ) |  |  | inline | 
 
Reverse constraints. 
Definition at line 113 of file JTDC_t.hh.
  117       for (JTDC_t::const_iterator p = this->begin(); p != this->end(); ) {
 
  119         JTDC_t::const_iterator q = p;
 
  121         for ( ; q != this->end() && q->first == p->first; ++q) {}
 
  125           JTDC_t::const_iterator i = p;
 
  127           for ( ; i != q && i->second != pmt; ++i) {}
 
  130             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 147 of file JTDC_t.hh.
  149       for (const_iterator i = this->begin(); i != this->end(); ++i) {
 
  154             THROW(JValueOutOfRange, 
"Invalid module identifier: " << i->first << 
" < " << 
WILD_CARD);
 
  163             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 181 of file JTDC_t.hh.
  186       JStringStream 
is(
in);
 
  192       for (
int id, pmt; 
is >> 
id >> pmt; ) {
 
  193         tdc.
insert(JTDC_t::value_type(
id, pmt));
 
static JStat getFileStatus
Function object for file status. 
void insert(const value_type &value)
Insert constraint. 
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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
 
 
 
  
  | 
        
          | 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 207 of file JTDC_t.hh.
  209       for (JTDC_t::const_iterator i = tdc.begin(); i != tdc.end(); ++i) {
 
  210         out << 
' ' << i->first 
 
 
 
 
The documentation for this struct was generated from the following file: