3 TList* l = f->GetListOfKeys();
8 double max, oldMax = 0;
10 if (
TString(ob->GetName()).Contains(select)) {
11 TH2D* histo = (TH2D*) (f->Get(ob->GetName()));
12 max = histo->GetMaximum();
16 maxName = histo->GetName();
20 std::cout <<
"Maximum counts in: " << maxName <<
" " << oldMax << std::endl;
26 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
27 gSystem->Load(
"libEve");
28 gROOT->LoadMacro(
"DrawEveHisto.C");
30 TFile*
f =
new TFile(fileName);
31 TGeoManager* fGeoMan =
new TGeoManager(
"geoMan",
"geoMan");
32 fGeoMan->Import(
"Mvd_GridUrqmdSim.root");
35 TEveManager::Create();
39 TEveCompound* comp =
new TEveCompound(
"RadDamHistos");
40 TEveCompound* pixelBL1 =
new TEveCompound(
"PixelBL1");
41 TEveCompound* pixelBL2 =
new TEveCompound(
"PixelBL2");
42 TEveCompound* pixelSDK =
new TEveCompound(
"PixelSDK");
43 TEveCompound* pixelMDK =
new TEveCompound(
"PixelMDK");
44 TEveCompound* strip =
new TEveCompound(
"Strip");
45 TEveCompound* stripBL3 =
new TEveCompound(
"StripBL3");
46 TEveCompound* stripBL4 =
new TEveCompound(
"StripBL4");
47 TEveCompound* stripLDK =
new TEveCompound(
"StripLDK");
48 comp->AddElement(pixelBL1);
49 comp->AddElement(pixelBL2);
50 comp->AddElement(pixelSDK);
51 comp->AddElement(pixelMDK);
52 comp->AddElement(strip);
53 strip->AddElement(stripBL3);
54 strip->AddElement(stripBL4);
55 strip->AddElement(stripLDK);
57 double pixMax =
FindMax(f,
"1_1");
65 TList* l = f->GetListOfKeys();
70 if (
TString(ob->GetName()).Contains(
"1_1")){
71 TEveCompound* tempComp;
102 TH2D* histo = (TH2D*)(f->Get(ob->GetName()));
104 TGeoHMatrix* matrix = gH.GetMatrixId(sVec.Replace(
"o",
"/"));
111 TEveGeoTopNode *TNod=
new TEveGeoTopNode(
gGeoManager, N);
112 gEve->AddGlobalElement(TNod);
113 gEve->AddGlobalElement(comp);
114 gEve->Redraw3D(kTRUE);
void select(CandList &in, CandList &out, int chrg=0, int pdg=0, double mass=0.139)
double FindMax(TFile *f, TString select)
int plotDC02AnalyzedData(TString fileName)
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
TGeoManager * gGeoManager
int DrawEveHisto(TH2 *histo, TGeoHMatrix *matrix, double max=-1., TEveCompound *comp=0)
Class to access the naming information of the MVD.
TString GetVolumeID(TString name)
returns the volume ID for a given volume name