Go to the source code of this file.
      
        
          | double CalcEventsPerYear | ( | Int_t | simEvents, | 
        
          |  |  | Int_t | interactionRate = 2*1E7, | 
        
          |  |  | Double_t | dutyCycle = 0.5 | 
        
          |  | ) |  |  | 
      
 
Definition at line 1 of file drawMvdHistos.C.
Referenced by drawMvdHistos().
    3         Int_t secondsPerYear = 60*60*24*365;
 
    4         return (
double)interactionRate/simEvents * secondsPerYear * dutyCycle;
 
 
 
 
      
        
          | int drawMvdHistos | ( | TString | fileName, | 
        
          |  |  | TString | selector, | 
        
          |  |  | Int_t | columns = 2, | 
        
          |  |  | Int_t | mult = 1 | 
        
          |  | ) |  |  | 
      
 
Definition at line 8 of file drawMvdHistos.C.
References c1, c2, CalcEventsPerYear(), f, f1, PndGeoHandling::GetVolumeID(), gGeoManager, h1, htemp, i, max(), mult, TransformHisto(), and TString.
   10         gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
 
   11         gROOT->LoadMacro(
"$VMCWORKDIR/macro/mvd/TransformHisto.C");
 
   12         gStyle->SetPalette(1);
 
   17         TGeoManager* fGeoMan = 
new TGeoManager(
"geoMan",
"geoMan");
 
   18         fGeoMan->Import(
"Mvd_GridUrqmdSim.root");
 
   21         TString id = gH->GetVolumeID(selector);
 
   25         TList* l = 
f.GetListOfKeys();
 
   30         double max = 0, oldMax = 0;
 
   34                 if (
TString(ob->GetName()).Contains(
id)){
 
   36                                 TH2D* histo = (TH2D*)(
f.Get(ob->GetName()));
 
   37                                 max = histo->GetMaximum();
 
   44         TCanvas *
c1 = 
new TCanvas();
 
   45         c1->Divide(columns, NHistos/columns);
 
   50                 if (
TString(ob->GetName()).Contains(
id)){
 
   51                         TH2D* histo = (TH2D*)(
f.Get(ob->GetName()));
 
   52                         TF1* 
f1 = 
new TF1(
"f1",
"1",-100,100);
 
   55                         histo->DrawCopy(
"colz");
 
   60         TCanvas *
c2 = 
new TCanvas();
 
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
TGeoManager * gGeoManager
Class to access the naming information of the MVD. 
double CalcEventsPerYear(Int_t simEvents, Int_t interactionRate=2 *1E7, Double_t dutyCycle=0.5)