Reve::Track* track = new Reve::Track(&rt, lt->GetRnrStyle());
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ char form[1000];
if (mt->GetMatchTrigger()) {
- track->SetName(Form("MUONTrack %2d (MT)", rt.label));
+ //PH track->SetName(Form("MUONTrack %2d (MT)", rt.label));
+ sprintf(form,"MUONTrack %2d (MT)", rt.label);
+ track->SetName(form);
track->SetLineColor(7);
} else {
- track->SetName(Form("MUONTrack %2d ", rt.label));
+ //PH track->SetName(Form("MUONTrack %2d ", rt.label));
+ sprintf(form,"MUONTrack %2d ", rt.label);
+ track->SetName(form);
track->SetLineColor(6);
}
clusters->SetMarkerStyle(2);
clusters->SetMarkerSize(0.5);
clusters->SetMarkerColor(4);
- clusters->SetName(Form("Clusters lab=%d", label));
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH clusters->SetName(Form("Clusters lab=%d", label));
+ char form[1000];
+ sprintf(form,"Clusters lab=%d", label);
+ clusters->SetName(form);
using namespace Reve;
gReve->AddRenderElement(clusters);
points->SetPointId(av);
}
- points->SetTitle(Form("N=%d", points->Size()));
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH points->SetTitle(Form("N=%d", points->Size()));
+ char form[1000];
+ sprintf(form,"N=%d", points->Size());
+ points->SetTitle(form);
points->SetMarkerStyle(4);
points->SetMarkerSize(1);
points->SetMarkerColor((Color_t)30);
rt.beta = ep/TMath::Sqrt(ep*ep + mc*mc);
Reve::Track* track = new Reve::Track(&rt, rnrStyle);
- track->SetName(Form("ESDTrack %d", rt.label));
- track->SetTitle(Form("pT=%.3f, pZ=%.3f; V=(%.3f, %.3f, %.3f)",
- rt.sign*TMath::Hypot(rt.P.x, rt.P.y), rt.P.z,
- rt.V.x, rt.V.y, rt.V.z));
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH track->SetName(Form("ESDTrack %d", rt.label));
+ //PH track->SetTitle(Form("pT=%.3f, pZ=%.3f; V=(%.3f, %.3f, %.3f)",
+ //PH rt.sign*TMath::Hypot(rt.P.x, rt.P.y), rt.P.z,
+ //PH rt.V.x, rt.V.y, rt.V.z));
+ char form[1000];
+ sprintf(form,"ESDTrack %d", rt.label);
+ track->SetName(form);
+ sprintf(form,"pT=%.3f, pZ=%.3f; V=(%.3f, %.3f, %.3f)",
+ rt.sign*TMath::Hypot(rt.P.x, rt.P.y), rt.P.z,
+ rt.V.x, rt.V.y, rt.V.z);
+ track->SetTitle(form);
return track;
}
gReve->AddRenderElement(cont, track);
}
- const Text_t* tooltip = Form("pT ~ (%.2lf, %.2lf), N=%d", min_pt, max_pt, count);
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH const Text_t* tooltip = Form("pT ~ (%.2lf, %.2lf), N=%d", min_pt, max_pt, count);
+ char tooltip[1000];
+ sprintf(tooltip,"pT ~ (%.2lf, %.2lf), N=%d", min_pt, max_pt, count);
cont->SetTitle(tooltip); // Not broadcasted automatically ...
cont->UpdateItems();
gReve->AddRenderElement(cont, track);
}
- const Text_t* tooltip = Form("N=%d", count);
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH const Text_t* tooltip = Form("N=%d", count);
+ const tooltip[1000];
+ sprintf(tooltip,"N=%d", count);
cont->SetTitle(tooltip); // Not broadcasted automatically ...
cont->UpdateItems();
++count;
Reve::Track* track = esd_make_track(tlist->GetRnrStyle(), at, tp);
- track->SetName(Form("track %d, sigma=%5.3f", at->GetLabel(), s));
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH track->SetName(Form("track %d, sigma=%5.3f", at->GetLabel(), s));
+ char form[1000];
+ sprintf(form,"track %d, sigma=%5.3f", at->GetLabel(), s);
+ track->SetName(form);
gReve->AddRenderElement(tlist, track);
}
for (Int_t ti=0; ti<5; ++ti) {
Reve::TrackList* tlist = tl[ti];
- const Text_t* tooltip = Form("N tracks=%d", tc[ti]);
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH const Text_t* tooltip = Form("N tracks=%d", tc[ti]);
+ char tooltip[1000];
+ sprintf(tooltip,"N tracks=%d", tc[ti]);
tlist->SetTitle(tooltip); // Not broadcasted automatically ...
tlist->UpdateItems();
tlist->MakeTracks();
tlist->MakeMarkers();
}
- cont->SetTitle(Form("N all tracks = %d", count));
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH cont->SetTitle(Form("N all tracks = %d", count));
+ char form[1000];
+ sprintf(form,"N all tracks = %d", count);
+ cont->SetTitle(form);
cont->UpdateItems();
gReve->Redraw3D();
TTree* ht = rl->GetTreeH("FMD", false);
- Reve::PointSet* points = new Reve::PointSet(Form("FMD Hits '%s'", selection));
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH Reve::PointSet* points = new Reve::PointSet(Form("FMD Hits '%s'", selection));
+ char form[1000];
+ sprintf(form,"FMD Hits '%s'", selection);
+ Reve::PointSet* points = new Reve::PointSet(form);
TPointSelector ps(ht, points, varexp, selection);
ps.Select();
- points->SetTitle(Form("N=%d", points->Size()));
+ //PH points->SetTitle(Form("N=%d", points->Size()));
+ sprintf(form,"N=%d", points->Size());
+ points->SetTitle(form);
points->SetMarkerSize(.5);
points->SetMarkerColor((Color_t)2);
TGeoNode* node;
Reve::GeoTopNodeRnrEl* re;
- node = gGeoManager->GetTopVolume()->FindNode(Form("F%dMT_%d", i, i));
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH node = gGeoManager->GetTopVolume()->FindNode(Form("F%dMT_%d", i, i));
+ char form[1000];
+ sprintf(form,"F%dMT_%d", i, i);
+ node = gGeoManager->GetTopVolume()->FindNode(form);
re = new Reve::GeoTopNodeRnrEl(gGeoManager, node);
re->SetUseNodeTrans(kTRUE);
gReve->AddGlobalRenderElement(list, re);
- node = gGeoManager->GetTopVolume()->FindNode(Form("F%dMB_%d", i, i));
+ sprintf(form,"F%dMB_%d", i, i);
+ node = gGeoManager->GetTopVolume()->FindNode(form);
re = new Reve::GeoTopNodeRnrEl(gGeoManager, node);
re->SetUseNodeTrans(kTRUE);
gReve->AddGlobalRenderElement(list, re);
gGeoManager = gReve->GetGeometry("$REVESYS/alice-data/alice_fullgeo.root");
for(Int_t i=1; i<=5; ++i) {
- TGeoNode* node = gGeoManager->GetTopVolume()->FindNode(Form("PHOS_%d", i));
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH TGeoNode* node = gGeoManager->GetTopVolume()->FindNode(Form("PHOS_%d", i));
+ char form[1000];
+ sprintf(form,"PHOS_%d", i);
+ TGeoNode* node = gGeoManager->GetTopVolume()->FindNode(form);
Reve::GeoTopNodeRnrEl* re = new Reve::GeoTopNodeRnrEl(gGeoManager, node);
re->SetUseNodeTrans(kTRUE);
gGeoManager = gReve->GetGeometry("$REVESYS/alice-data/alice_fullgeo.root");
for(Int_t i=1; i<=4; ++i) {
- TGeoNode* node = gGeoManager->GetTopVolume()->FindNode(Form("EPM%d_1", i));
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH TGeoNode* node = gGeoManager->GetTopVolume()->FindNode(Form("EPM%d_1", i));
+ char form[1000];
+ sprintf(form,"EPM%d_1", i);
+ TGeoNode* node = gGeoManager->GetTopVolume()->FindNode(form);
Reve::GeoTopNodeRnrEl* re = new Reve::GeoTopNodeRnrEl(gGeoManager, node);
re->SetUseNodeTrans(kTRUE);
gReve->AddGlobalRenderElement(list);
for(Int_t i=1; i<=7; ++i) {
- TGeoNode* node = gGeoManager->GetTopVolume()->FindNode(Form("RICH_%d", i));
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH TGeoNode* node = gGeoManager->GetTopVolume()->FindNode(Form("RICH_%d", i));
+ char form[1000];
+ sprintf(form,"RICH_%d", i);
+ TGeoNode* node = gGeoManager->GetTopVolume()->FindNode(form);
Reve::GeoTopNodeRnrEl* re = new Reve::GeoTopNodeRnrEl(gGeoManager, node);
re->SetUseNodeTrans(kTRUE);
{
Reve::PointSet* h;
Reve::LoadMacro("its_hits.C");
- h = its_hits("fX:fY:fZ", Form("ITS.fTrack==%d", label));
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH h = its_hits("fX:fY:fZ", Form("ITS.fTrack==%d", label));
+ char form[1000];
+ sprintf(form,"ITS.fTrack==%d", label);
+ h = its_hits("fX:fY:fZ", form);
h->SetMarkerSize(1);
Reve::LoadMacro("tpc_hits.C");
- h = tpc_hits("TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ",
- Form("TPC2.fArray.fTrackID==%d", label));
+ sprintf(form,"TPC2.fArray.fTrackID==%d", label);
+ h = tpc_hits("TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ",form);
+ //PH h = tpc_hits("TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ",
+ //PH Form("TPC2.fArray.fTrackID==%d", label));
h->SetMarkerSize(1);
gReve->Redraw3D();
TTree* ht = rl->GetTreeH("ITS", false);
- Reve::PointSet* points = new Reve::PointSet(Form("ITS Hits '%s'", selection));
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH Reve::PointSet* points = new Reve::PointSet(Form("ITS Hits '%s'", selection));
+ char form[1000];
+ sprintf(form,"ITS Hits '%s'", selection);
+ Reve::PointSet* points = new Reve::PointSet(form);
TPointSelector ps(ht, points, varexp, selection);
ps.Select();
- points->SetTitle(Form("N=%d", points->Size()));
+ //PH points->SetTitle(Form("N=%d", points->Size()));
+ sprintf(form,"N=%d", points->Size());
+ points->SetTitle(form);
points->SetMarkerSize(.5);
points->SetMarkerColor((Color_t)2);
++count;
Reve::Track* track = new Reve::Track(p, i, rnrStyle);
- track->SetName(Form("%s [%d]", p->GetName(), i));
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH track->SetName(Form("%s [%d]", p->GetName(), i));
+ char form[1000];
+ sprintf(form,"%s [%d]", p->GetName(), i);
+ track->SetName(form);
gReve->AddRenderElement(cont, track);
}
- const Text_t* tooltip = Form("pT ~ (%.2lf, %.2lf), N=%d", min_pt, max_pt, count);
+ //PH const Text_t* tooltip = Form("pT ~ (%.2lf, %.2lf), N=%d", min_pt, max_pt, count);
+ char tooltip[1000];
+ sprintf(tooltip,"pT ~ (%.2lf, %.2lf), N=%d", min_pt, max_pt, count);
cont->SetTitle(tooltip); // Not broadcasted automatically ...
cont->UpdateItems();
TTree* ht = rl->GetTreeH("PMD", false);
- Reve::PointSet* points = new Reve::PointSet(Form("PMD Hits '%s'", selection));
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH Reve::PointSet* points = new Reve::PointSet(Form("PMD Hits '%s'", selection));
+ char form[1000];
+ sprintf(form,"PMD Hits '%s'", selection);
+ Reve::PointSet* points = new Reve::PointSet(form);
TPointSelector ps(ht, points, varexp, selection);
ps.Select();
- points->SetTitle(Form("N=%d", points->Size()));
+ //PH points->SetTitle(Form("N=%d", points->Size()));
+ sprintf(form,"N=%d", points->Size());
+ points->SetTitle(form);
points->SetMarkerSize(.5);
points->SetMarkerColor((Color_t)2);
TTree* ht = rl->GetTreeH("TPC", false);
- Reve::PointSet* points = new Reve::PointSet(Form("TPC Hits '%s'", selection));
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH Reve::PointSet* points = new Reve::PointSet(Form("TPC Hits '%s'", selection));
+ char form[1000];
+ sprintf(form,"TPC Hits '%s'", selection);
+ Reve::PointSet* points = new Reve::PointSet(form);
points->SetSourceCS(TPointSelectorConsumer::TVT_RPhiZ);
TPointSelector ps(ht, points, varexp, selection);
ps.Select();
- points->SetTitle(Form("N=%d", points->Size()));
+ //PH points->SetTitle(Form("N=%d", points->Size()));
+ sprintf(form,"N=%d", points->Size());
+ points->SetTitle(form);
points->SetMarkerSize(.5);
points->SetMarkerColor((Color_t)3);
TTree* ht = rl->GetTreeH("TRD", false);
- Reve::PointSet* points = new Reve::PointSet(Form("TRD Hits '%s'", selection));
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH Reve::PointSet* points = new Reve::PointSet(Form("TRD Hits '%s'", selection));
+ char form[1000];
+ sprintf(form,"TRD Hits '%s'", selection);
+ Reve::PointSet* points = new Reve::PointSet(form);
TPointSelector ps(ht, points, varexp, selection);
ps.Select();
- points->SetTitle(Form("N=%d", points->Size()));
+ //PH points->SetTitle(Form("N=%d", points->Size()));
+ sprintf(form,"N=%d", points->Size());
+ points->SetTitle(form);
points->SetMarkerSize(.5);
points->SetMarkerColor((Color_t)7);
TTree* ht = rl->GetTreeH("VZERO", false);
- Reve::PointSet* points = new Reve::PointSet(Form("VZERO Hits '%s'", selection));
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH Reve::PointSet* points = new Reve::PointSet(Form("VZERO Hits '%s'", selection));
+ char form[1000];
+ sprintf(form,"VZERO Hits '%s'", selection);
+ Reve::PointSet* points = new Reve::PointSet(form);
TPointSelector ps(ht, points, varexp, selection);
ps.Select();
- points->SetTitle(Form("N=%d", points->Size()));
+ //PH points->SetTitle(Form("N=%d", points->Size()));
+ sprintf(form,"N=%d", points->Size());
+ points->SetTitle(form);
points->SetMarkerSize(.5);
points->SetMarkerColor((Color_t)2);