3 Int_t secondsPerYear = 60*60*24*365;
4 return (
double)interactionRate/simEvents * secondsPerYear * dutyCycle;
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");
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.
TString GetVolumeID(TString name)
returns the volume ID for a given volume name
double CalcEventsPerYear(Int_t simEvents, Int_t interactionRate=2 *1E7, Double_t dutyCycle=0.5)
int drawMvdHistos(TString fileName, TString selector, Int_t columns=2, Int_t mult=1)