Auxiliary class to manage set of histograms.  
 More...
#include <JHistogramToolkit.hh>
 | 
| void  | insert (const JKey &key, const Int_t nx, const Double_t xmin, const Double_t xmax, const double logx=false) | 
|   | Insert set of histograms.  More...
  | 
|   | 
| void  | Fill (const JFit &fA, const JFit &fB, const bool option) | 
|   | Fill histograms.  More...
  | 
|   | 
| void  | Scale () | 
|   | Scale histograms.  More...
  | 
|   | 
| void  | Write (TFile &out) | 
|   | Write histograms to file.  More...
  | 
|   | 
| void  | Write (const char *file_name) | 
|   | Write histograms to file.  More...
  | 
|   | 
Auxiliary class to manage set of histograms. 
Definition at line 160 of file JHistogramToolkit.hh.
 
◆ insert()
  
  
      
        
          | void JManager::insert  | 
          ( | 
          const JKey &  | 
          key,  | 
         
        
           | 
           | 
          const Int_t  | 
          nx,  | 
         
        
           | 
           | 
          const Double_t  | 
          xmin,  | 
         
        
           | 
           | 
          const Double_t  | 
          xmax,  | 
         
        
           | 
           | 
          const double  | 
          logx = false  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Insert set of histograms. 
- Parameters
 - 
  
    | key | key  | 
    | nx | number of bins  | 
    | xmin | minimal abscissa value  | 
    | xmax | maximal abscissa value  | 
    | logx | log10(x)  | 
  
   
Definition at line 172 of file JHistogramToolkit.hh.
  178     TH1D* hA = 
new TH1D((
"[A " + key.
name + 
"]").c_str(), NULL, nx,  xmin, xmax);
 
  179     TH1D* hB = 
new TH1D((
"[B " + key.
name + 
"]").c_str(), NULL, nx,  xmin, xmax);
 
  180     TH1D* hC = 
new TH1D((
"[C " + key.
name + 
"]").c_str(), NULL, nx, -xmax, xmax);
 
  181     TH1D* hD = 
new TH1D((
"[D " + key.
name + 
"]").c_str(), NULL, nx, -xmax, xmax);
 
 
 
 
◆ Fill()
  
  
      
        
          | void JManager::Fill  | 
          ( | 
          const JFit &  | 
          fA,  | 
         
        
           | 
           | 
          const JFit &  | 
          fB,  | 
         
        
           | 
           | 
          const bool  | 
          option  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Fill histograms. 
- Parameters
 - 
  
    | fA | first fit result  | 
    | fB | second fit result  | 
    | option | option  | 
  
   
Definition at line 194 of file JHistogramToolkit.hh.
  196     for (
iterator i = begin(); i != end(); ++i) {
 
  198       const int index = i->first.index;
 
  201         i->second.Fill(fA.
getQ(),      fB.
getQ(),      option);
 
  202       } 
else if (fA.
hasW(index) && fB.
hasW(index)) {
 
  203         i->second.Fill(fA.
getW(index), fB.
getW(index), option);
 
 
 
 
◆ Scale()
◆ Write() [1/2]
  
  
      
        
          | void JManager::Write  | 
          ( | 
          TFile &  | 
          out | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Write histograms to file. 
- Parameters
 - 
  
  
 
Definition at line 225 of file JHistogramToolkit.hh.
  227     for (
iterator i = this->begin(); i != this->end(); ++i) {
 
  228       i->second.Write(out);
 
 
 
 
◆ Write() [2/2]
  
  
      
        
          | void JManager::Write  | 
          ( | 
          const char *  | 
          file_name | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Write histograms to file. 
- Parameters
 - 
  
  
 
Definition at line 238 of file JHistogramToolkit.hh.
  240     TFile out(file_name, 
"RECREATE");
 
 
 
 
The documentation for this struct was generated from the following file: