Data structure to translate PMT physical to readout address.  
 More...
#include <JModuleAddressMap.hh>
 | 
| int  | tdc | 
|   | TDC channel.  
  | 
|   | 
| char  | ring | 
|   | ring number ['A','F']  
  | 
|   | 
| int  | position | 
|   | position within ring [1,6]  
  | 
|   | 
 | 
| template<class JHead_t , class JTail_t >  | 
| static bool  | lt (const JClass_t &first, const JClass_t &second, const JType< JTypeList< JHead_t, JTail_t > > &type) | 
|   | Less than method for composite data types.  
  | 
|   | 
| template<class JHead_t >  | 
| static bool  | lt (const JClass_t &first, const JClass_t &second, const JType< JTypeList< JHead_t, JNullType > > &type) | 
|   | Less than method for composite data types.  
  | 
|   | 
Data structure to translate PMT physical to readout address. 
Definition at line 31 of file JModuleAddressMap.hh.
 
◆ JPMTAddressTranslator()
Constructor. 
- Parameters
 - 
  
    | readout | readout address  | 
    | address | physical address  | 
  
   
Definition at line 42 of file JModuleAddressMap.hh.
   43                                                              :
   46    {}
JPMTPhysicalAddress()
Default constructor.
 
JPMTReadoutAddress()
Default constructor.
 
 
 
 
◆ toString() [1/2]
  
  
      
        
          | std::string JDETECTOR::JPMTAddressTranslator::toString  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Convert PMT address translator to string. 
- Returns
 - string 
 
Definition at line 54 of file JModuleAddressMap.hh.
   55    {
   57    }
std::string toString() const
Convert PMT address translator to string.
 
 
 
 
◆ toString() [2/2]
  
  
      
        
          | std::string JDETECTOR::JPMTAddressTranslator::toString  | 
          ( | 
          const std::string & |           fmt,  | 
         
        
           | 
           | 
          const std::string |           target = "%" ) const | 
         
       
   | 
  
inline   | 
  
 
Convert PMT address translator to string. 
The targets target in the format string fmt are consecutively replaced by tdc, ring and position.
- Parameters
 - 
  
  
 
- Returns
 - string 
 
Definition at line 70 of file JModuleAddressMap.hh.
   71    {
   73 
   74      buffer.replace(target, 
tdc,      1);
 
   75      buffer.replace(target, 
ring,     1);
 
   77 
   78      return buffer;
   79    }
char ring
ring number ['A','F']
 
int position
position within ring [1,6]
 
Wrapper class around STL string class.
 
 
 
 
◆ less() [1/2]
Less than method. 
- Parameters
 - 
  
    | address | PMT readout address  | 
  
   
- Returns
 - true if this address before given address; else false 
 
Definition at line 58 of file JPMTReadoutAddress.hh.
   59    {
   60      return this->
tdc < address.tdc;
 
   61    }
 
 
 
◆ getTDC()
  
  
      
        
          | int JDETECTOR::JPMTReadoutAddress::getTDC  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ less() [2/2]
Less than method. 
- Parameters
 - 
  
    | address | PMT physical address  | 
  
   
- Returns
 - true if this address before given address; else false 
 
Definition at line 63 of file JPMTPhysicalAddress.hh.
   64    {
   65      if (this->
ring == address.ring)
 
   66        return this->
position < address.position;
 
   67      else
   68        return this->
ring     < address.ring;
 
   69    }
 
 
 
◆ lt() [1/2]
template<class JClass_t , class JTypelist_t > 
template<class JHead_t , class JTail_t > 
  
  | 
      
   | 
  
inlinestaticprotectedinherited   | 
  
 
Less than method for composite data types. 
- Parameters
 - 
  
    | first | first object  | 
    | second | second object  | 
    | type | type  | 
  
   
- Returns
 - true if first object is less than second object; else false 
 
Definition at line 43 of file JMultiComparable.hh.
   46    {
   47      if      (static_cast<const JHead_t&>(first)  <
   48               static_cast<const JHead_t&>(second))
   49        return true;
   50      else if (static_cast<const JHead_t&>(second)  <
   51               static_cast<const JHead_t&>(first))
   52        return false;
   53      else
   54        return lt(first, second, JType<JTail_t>());
 
   55    }
static bool lt(const JClass_t &first, const JClass_t &second, const JType< JTypeList< JHead_t, JTail_t > > &type)
Less than method for composite data types.
 
 
 
 
◆ lt() [2/2]
template<class JClass_t , class JTypelist_t > 
template<class JHead_t > 
  
  | 
      
   | 
  
inlinestaticprotectedinherited   | 
  
 
Less than method for composite data types. 
- Parameters
 - 
  
    | first | first object  | 
    | second | second object  | 
    | type | type  | 
  
   
- Returns
 - true if first object is less than second object; else false 
 
Definition at line 67 of file JMultiComparable.hh.
   70    {
   71      return (static_cast<const JHead_t&>(first) <
   72              static_cast<const JHead_t&>(second));
   73    }
 
 
 
◆ tdc
  
  
      
        
          | int JDETECTOR::JPMTReadoutAddress::tdc | 
         
       
   | 
  
inherited   | 
  
 
 
◆ ring
  
  
      
        
          | char JDETECTOR::JPMTPhysicalAddress::ring | 
         
       
   | 
  
inherited   | 
  
 
 
◆ position
  
  
      
        
          | int JDETECTOR::JPMTPhysicalAddress::position | 
         
       
   | 
  
inherited   | 
  
 
 
The documentation for this struct was generated from the following file: