#include <JTestRuns_t.hh>
Definition at line 12 of file JTestRuns_t.hh.
 
  
  
      
        
          | JTestRuns_t::JTestRuns_t  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | JTestResult JTestRuns_t::JRunsTest  | 
          ( | 
          TH1 *  | 
          h1,  | 
         
        
           | 
           | 
          TH1 *  | 
          h2,  | 
         
        
           | 
           | 
          double  | 
          threshold,  | 
         
        
           | 
           | 
          bool  | 
          logX,  | 
         
        
           | 
           | 
          bool  | 
          logY  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Definition at line 24 of file JTestRuns_t.hh.
   28     if(
h1 -> GetNbinsX() != h2 -> GetNbinsX())
 
   29       ERROR(
"Histograms with different bining. The objects: " << 
h1 -> GetName() << 
" can not be compared." << endl);
 
   31     double R = 
h1->Integral();
 
   32     double T = h2->Integral();
 
   38     bool a = ((T/
R)*
h1->GetBinContent(1) - h2->GetBinContent(1)) < 0;
 
   42     for (
int i = 2 ; i<
h1->GetNbinsX() ; ++i){
 
   44       bool b = ((T/
R)*
h1->GetBinContent(i) - h2->GetBinContent(i)) < 0;
 
   54     double N = 1 + 2*p*q/(p+q) ;
 
   55     double s = sqrt( 2*p*q*(2*p*q-p-q)/(p+q)/(p+q)/(p+q-1) );
 
   58     (fabs(d) > threshold ? r.
passed = 
false : r.
passed = 
true);
 
   61                             " HA: " << 
h1->GetUniqueID() << 
" " << 
h1->GetName() <<
 
   62                             " HB: " << h2->GetUniqueID() << 
" " << h2->GetName() <<
 
   63                             " Threshold: " << threshold << 
" Result: " << fabs(d) << 
" " << (r.
passed ? 
"PASSED" : 
"FAILED"));
 
   65     TH2D* h3 = (TH2D*)
h1->Clone(
h1->GetName()==h2->GetName() ?
 
   69     for (
int i=1 ; i<
h1->GetNbinsX() ; ++i) {
 
   70       h3->SetBinContent(i , (T/R)*
h1->GetBinContent(i) - h2->GetBinContent(i)); 
 
   75     h3->SetTitle(title.getTitle().c_str());    
 
#define MAKE_CSTRING(A)
Make C-string. 
 
then for HISTOGRAM in h0 h1
 
fi JEventTimesliceWriter a
 
#define MAKE_STRING(A)
Make string. 
 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
then print_variable DETECTOR INPUT_FILE INTERMEDIATE_FILE check_input_file $DETECTOR $INPUT_FILE check_output_file $INTERMEDIATE_FILE $OUTPUT_FILE JMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
 
then usage $script[distance] fi case set_variable R
 
alias put_queue eval echo n
 
std::string to_string(const T &value)
Convert value to string. 
 
then usage $script[input file[working directory[option]]] nWhere option can be N
 
 
 
 
The documentation for this class was generated from the following file: