Example class for data analysis.  
 More...
Example class for data analysis. 
Definition at line 43 of file JDAQTimesliceSelector.cc.
 
◆ JAnalysis()
Constructor. 
Definition at line 49 of file JDAQTimesliceSelector.cc.
   49              :
   50    
   51    
   52    
   53    h0(
"h0", NULL, numeric_limits<JDAQHit::JPMT_t>::max(), -0.5, numeric_limits<JDAQHit::JPMT_t>::max() - 0.5),
 
   54    h1(
"h1", NULL, numeric_limits<JDAQHit::JTOT_t>::max(), -0.5, numeric_limits<JDAQHit::JTOT_t>::max() - 0.5),
 
   56    
   58  {}
double getFrameTime()
Get frame time duration.
 
 
 
 
◆ ~JAnalysis()
  
  
      
        
          | JAnalysis::~JAnalysis  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ put() [1/2]
Process data. 
- Parameters
 - 
  
  
 
- Returns
 - true 
 
Definition at line 85 of file JDAQTimesliceSelector.cc.
   86  {
   88    
   89    for (JDAQTimeslice::const_iterator frame = timeslice.begin(); frame != timeslice.end(); ++frame) {
   91        
   93          h0.Fill(hit->getPMT());
 
   94          h1.Fill(hit->getToT());
 
   96        }
   97      }
   98    }
   99    
  100    return true;
  101  }
JDAQPMTIdentifier PMT
Command line options.
 
#define DEBUG(A)
Message macros.
 
static bool compare(const JDAQPMTIdentifier &first, const JDAQPMTIdentifier &second)
Compare PMT identifiers.
 
 
 
 
◆ put() [2/2]
Object output. 
- Parameters
 - 
  
  
 
- Returns
 - true if OK; else false 
 
 
 
◆ h0
◆ h1
◆ h2
◆ counter
The documentation for this struct was generated from the following file: