#include "JSupport/JSupport.hh"
#include "JSupport/JSupportToolkit.hh"
#include "JTrigger/JTriggerInterface.hh"
#include "JTrigger/JTriggerBits.hh"
#include "JDetector/JModuleRouter.hh"
#include "JDetector/JDetectorToolkit.hh"
#include "JDAQ/JDAQClock.hh"
#include "JDAQ/JDAQ.hh"
#include "JDAQ/JDAQTimeslice.hh"
#include "JGizmo/JManager.hh"
#include "TH1D.h"
#include "TH2D.h"
#include "TProfile2D.h"
#include "TAxis.h"
#include "TCanvas.h"
#include "TPaveText.h"
#include "TStyle.h"
#include "TString.h"
#include "TMath.h"
#include "TColor.h"
#include "TDirectory.h"
#include "TPRegexp.h"
#include "TObjArray.h"
#include "TObjString.h"
 
Go to the source code of this file.
 | 
| template<class T >  | 
| void  | BinLogX (T *h) | 
|   | 
| template<class T >  | 
| void  | normalize (T *h, double n=1.0) | 
|   | 
◆ BinLogX()
Definition at line 48 of file JRunHistograms.hh.
   50   TAxis *axis = h->GetXaxis();
 
   52   int bins = axis->GetNbins();
 
   54   Axis_t from = axis->GetXmin();
 
   56   Axis_t to = axis->GetXmax();
 
   58   Axis_t width = (to - from) / bins;
 
   60   Axis_t *new_bins = 
new Axis_t[bins + 1];
 
   62   for (
int i = 0; i <= bins; i++) {
 
   64     new_bins[i] = TMath::Power(10, from + i * width);
 
   68   axis->Set(bins, new_bins);
 
 
 
 
◆ normalize()
template<class T > 
      
        
          | void normalize  | 
          ( | 
          T *  | 
          h,  | 
        
        
           | 
           | 
          double  | 
          n = 1.0  | 
        
        
           | 
          ) | 
           |  |