Temporary replacement of Form by sprintf to avoid problems on some platforms (alpahli...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Nov 2006 14:15:14 +0000 (14:15 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Nov 2006 14:15:14 +0000 (14:15 +0000)
16 files changed:
EVE/alice-macros/MUON_digits.C
EVE/alice-macros/clusters_from_label.C
EVE/alice-macros/esd_V0_points.C
EVE/alice-macros/esd_tracks.C
EVE/alice-macros/fmd_hits.C
EVE/alice-macros/geom_fmd.C
EVE/alice-macros/geom_phos.C
EVE/alice-macros/geom_pmd.C
EVE/alice-macros/geom_rich.C
EVE/alice-macros/hits_from_label.C
EVE/alice-macros/its_hits.C
EVE/alice-macros/kine_tracks.C
EVE/alice-macros/pmd_hits.C
EVE/alice-macros/tpc_hits.C
EVE/alice-macros/trd_hits.C
EVE/alice-macros/vzero_hits.C

index 8776890ec86216b2c9755de8ceb09aaf7de7f493..d141ef45aa97f4a03de61fa9deca781b27aac981 100644 (file)
@@ -144,11 +144,19 @@ void MUON_tracks() {
 
     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);
     }
 
index 07a6019513c39b0f689a01d511298f70f13611cd..eee09f93f6cf78d2c446028ae5cef5cbcadae7b6 100644 (file)
@@ -29,7 +29,13 @@ void clusters_from_label(Int_t label=0)
   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);
index 8fafcf265f123ba37419582c6d0ec9a728986c61..bd0626c0b099f8834a25da88d3f7206d8ed3c93c 100644 (file)
@@ -14,7 +14,13 @@ esd_V0_points()
     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);
index f523df46de48085145dcd7bed2dd15a66b85c579..fa13a8b72e8b25be2ef8c72db65910b4d42d241f 100644 (file)
@@ -21,10 +21,20 @@ Reve::Track* esd_make_track(Reve::TrackRnrStyle* rnrStyle,
   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;
 }
 
@@ -69,7 +79,12 @@ Reve::TrackList* esd_tracks(Double_t min_pt=0.1, Double_t max_pt=100)
     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();
 
@@ -115,7 +130,12 @@ Reve::TrackList* esd_tracks_from_array(TCollection* col, AliESD* esd=0)
     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();
 
@@ -251,20 +271,37 @@ Reve::RenderElementList* esd_tracks_vertex_cut()
     ++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();
 
index 563943d431a85ff8bef523daea5abef840d7b525..15f85e6f745dd8254ff7e89f6ede41b5649b4633 100644 (file)
@@ -9,12 +9,20 @@ fmd_hits(const char *varexp    = "fX:fY:fZ",
 
   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);
 
index 77e68de5ccaa4bb01ad4cdac7891cddcb09dd428..69926934ec1279396940139f67a00474666c1277 100644 (file)
@@ -13,12 +13,19 @@ void geom_fmd()
     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);
index bb6f467da32b0d70cb57dcd47217a6c30954faa4..77a65a5da41a4821ce0fc6f5dd718ad316bb7768 100644 (file)
@@ -7,7 +7,13 @@ void geom_phos()
   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);
index bdd960abb1db38552c2adc2b06be1b8fbd3711b8..feb8b46e7115718d49e358b23c0b343622239de7 100644 (file)
@@ -7,7 +7,13 @@ void geom_pmd()
   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);
index 61e5dfe18620edbe62a3bceea3963d6cc85ff5be..b6440c27dc12dac4e222298ab5a3e8d1b0feaf67 100644 (file)
@@ -10,7 +10,13 @@ void geom_rich()
   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);
index 6349395eb18f61759d2b03673b843d92c4b22917..9f71b4bd4f9174e5d3f887da8d483cca3eab86dc 100644 (file)
@@ -4,12 +4,20 @@ void hits_from_label(Int_t label=0)
 {
   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();
index fbda6d5d65815d6bee808aafa10ce83b574918a4..60bf89719046b049f1489b573e065160fe0d0057 100644 (file)
@@ -9,12 +9,20 @@ its_hits(const char *varexp    = "fX:fY:fZ",
 
   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);
 
index 3fefa9ed950dd60c6ed38932a22801ab3064255d..ba4bef87a6a909f9a71aaa36119671229cdde8d7 100644 (file)
@@ -29,11 +29,19 @@ Reve::TrackList* kine_tracks(Double_t min_pt=0.5, Double_t max_pt=100)
 
     ++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();
 
index e8fb368353a06727c6ea3c164e72a6498d920d05..0bb18eef687f19d4809886f5ab38125c6d038f7c 100644 (file)
@@ -9,12 +9,20 @@ pmd_hits(const char *varexp    = "fX:fY:fZ",
 
   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);
 
index 9d00d698496403b40304d470d188c1876275c5bb..f85082af6b5b7faf5a6a4cc1b24eb0219e04ef54 100644 (file)
@@ -12,13 +12,21 @@ tpc_hits(const char *varexp    = "TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ"
 
   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);
 
index bf90b706e3b8140173b6ebe190025b5fc42d2c2c..51b0cdf71b66057b53a81756ebcacdd2b606f57c 100644 (file)
@@ -9,12 +9,20 @@ trd_hits(const char *varexp    = "fX:fY:fZ",
 
   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);
 
index ea69e38d14d5cb7a55974698e5671171e36870f3..9db426445c84c3abe0f8ddc20aa83577b6da3947 100644 (file)
@@ -9,12 +9,20 @@ vzero_hits(const char *varexp    = "fX:fY:fZ",
 
   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);