Map value.  
 More...
#include <JHistogramToolkit.hh>
Map value. 
Definition at line 69 of file JHistogramToolkit.hh.
 
◆ JValue() [1/2]
◆ JValue() [2/2]
  
  
      
        
          | JValue::JValue  | 
          ( | 
          TH1D *  | 
          hA,  | 
         
        
           | 
           | 
          TH1D *  | 
          hB,  | 
         
        
           | 
           | 
          TH1D *  | 
          hC,  | 
         
        
           | 
           | 
          TH1D *  | 
          hD,  | 
         
        
           | 
           | 
          bool  | 
          logx = false  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | hA | pointer to histogram  | 
    | hB | pointer to histogram  | 
    | hC | pointer to histogram  | 
    | hD | pointer to histogram  | 
    | logx | log10(x) filling mode  | 
  
   
Definition at line 91 of file JHistogramToolkit.hh.
 
 
◆ Fill()
  
  
      
        
          | void JValue::Fill  | 
          ( | 
          const Double_t  | 
          xA,  | 
         
        
           | 
           | 
          const Double_t  | 
          xB,  | 
         
        
           | 
           | 
          const bool  | 
          option  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Fill histograms. 
- Parameters
 - 
  
    | xA | first abscissa value  | 
    | xB | second abscissa value  | 
    | option | option  | 
  
   
Definition at line 112 of file JHistogramToolkit.hh.
  114     hA->Fill(
logx ? log10(xA) : xA);
 
  115     hB->Fill(
logx ? log10(xB) : xB);
 
  117       hC->Fill(
logx ? log10(xB/xA) : xB - xA);
 
  119       hD->Fill(
logx ? log10(xB/xA) : xB - xA);
 
 
 
 
◆ Scale()
Scale histograms. 
Definition at line 126 of file JHistogramToolkit.hh.
  128     if (
hA->GetEntries() != 0) { 
hA->Scale(1.0/
hA->GetEntries()); }
 
  129     if (
hB->GetEntries() != 0) { 
hB->Scale(1.0/
hB->GetEntries()); }
 
  130     if (
hC->GetEntries() != 0) { 
hC->Scale(1.0/
hC->GetEntries()); }
 
  131     if (
hD->GetEntries() != 0) { 
hD->Scale(1.0/
hD->GetEntries()); }
 
 
 
 
◆ Write()
  
  
      
        
          | void JValue::Write  | 
          ( | 
          TFile &  | 
          out | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Write histograms to file. 
- Parameters
 - 
  
  
 
Definition at line 140 of file JHistogramToolkit.hh.
  142     out.WriteTObject(
hA);
 
  143     out.WriteTObject(
hB);
 
  144     out.WriteTObject(
hC);
 
  145     out.WriteTObject(
hD);
 
 
 
 
◆ hA
◆ hB
◆ hC
◆ hD
◆ logx
The documentation for this struct was generated from the following file: