Acoustic event.  
 More...
#include <JEvent.hh>
Acoustic event. 
Definition at line 31 of file JAcoustics/JEvent.hh.
 
  
  
      
        
          | JACOUSTICS::JEvent::JEvent  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
template<class T > 
  
  
      
        
          | JACOUSTICS::JEvent::JEvent  | 
          ( | 
          const std::string &  | 
          oid,  | 
         
        
           | 
           | 
          const int  | 
          counter,  | 
         
        
           | 
           | 
          const int  | 
          id,  | 
         
        
           | 
           | 
          T  | 
          __begin,  | 
         
        
           | 
           | 
          T  | 
          __end  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
The transmissions will be sorted to ensure proper functioning of method JEvent::merge and class JEventOverlap.
- Parameters
 - 
  
    | oid | detector identifier  | 
    | counter | counter  | 
    | id | identifier  | 
    | __begin | begin of data  | 
    | __end | end of data  | 
  
   
Definition at line 83 of file JAcoustics/JEvent.hh.
   95       for (
T i = __begin; i != __end; ++i) {
 
   99       sort(this->begin(), this->end());
 
JCounter()
Default constructor. 
 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
 
 
 
  
  
      
        
          | virtual JACOUSTICS::JEvent::~JEvent  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
  
  
      
        
          | const std::string& JACOUSTICS::JEvent::getOID  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | int JACOUSTICS::JEvent::getCounter  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | int JACOUSTICS::JEvent::getOverlays  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | int JACOUSTICS::JEvent::getID  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | void JACOUSTICS::JEvent::merge  | 
          ( | 
          const JEvent &  | 
          event | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Merge event. 
It is assumed that the transmissions in both events are ordered according the default less-than operator.
- Parameters
 - 
  
  
 
Definition at line 162 of file JAcoustics/JEvent.hh.
  168       const_iterator __hit1 = 
this ->begin();
 
  169       const_iterator __end1 = 
this ->end();
 
  171       const_iterator __hit2 = 
event.begin();
 
  172       const_iterator __end2 = 
event.end();
 
  174       buffer.resize(this->size() + event.size());
 
  178       while (__hit1 != __end1 && __hit2 != __end2) {
 
  180         if        (*__hit1 < *__hit2) {
 
  185         } 
else if (*__hit2 < *__hit1) {
 
  203       out = 
copy(__hit1, __end1, out);
 
  204       out = 
copy(__hit2, __end2, out);
 
  206       buffer.resize(
distance(buffer.begin(), out));
 
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance. 
 
void copy(const Head &from, JHead &to)
Copy header from from to to. 
 
 
 
 
      
        
          | JACOUSTICS::JEvent::ClassDef  | 
          ( | 
          JEvent  | 
          ,  | 
        
        
           | 
           | 
          3  | 
            | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
  
  
      
        
          | JACOUSTICS::JCounter::ClassDefNV  | 
          ( | 
          JCounter  | 
          ,  | 
         
        
           | 
           | 
          1  | 
            | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inherited   | 
  
 
 
  
  
      
        
          | std::ostream& operator<<  | 
          ( | 
          std::ostream &  | 
          out,  | 
         
        
           | 
           | 
          const JEvent &  | 
          event  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Write event to output stream. 
- Parameters
 - 
  
    | out | output stream  | 
    | event | event  | 
  
   
- Returns
 - output stream 
 
Definition at line 221 of file JAcoustics/JEvent.hh.
  225       out << 
event.getOID()                 << endl;
 
  226       out << setw(8) << 
event.getCounter()  << endl;
 
  227       out << setw(2) << 
event.getOverlays() << endl;
 
  228       out << setw(3) << 
event.getID()       << endl;
 
  230       for (const_iterator i = event.begin(); i != 
event.end(); ++i) {
 
  232         out << setw(10) << i->getID()        << 
' '  
  233             << setw(10) << i->getRunNumber() << 
' '  
  234             << fixed << setw(12) << setprecision(6) << i->getToA()  << 
' ' 
  235             << fixed << setw(12) << setprecision(6) << i->getToE()  << 
' ' 
  236             << fixed << setw(8)  << setprecision(0) << i->getQ()    << 
' ' 
  237             << fixed << setw(8)  << setprecision(0) << i->getW()    << endl;
 
 
 
 
  
  
      
        
          | int JACOUSTICS::JEvent::overlays | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | int JACOUSTICS::JEvent::id | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | int JACOUSTICS::JCounter::counter | 
         
       
   | 
  
protectedinherited   | 
  
 
 
The documentation for this struct was generated from the following file: