]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ACORDE/AliACORDEv1.cxx
Fixing problems dscovered by test/gun
[u/mrichter/AliRoot.git] / ACORDE / AliACORDEv1.cxx
index 30f4e3f0cbce86807b5956b3530aed27de545f47..38a4d0bedd8912476c7939d9a393c5de04dc1ca2 100644 (file)
@@ -44,6 +44,7 @@
 #include <TMath.h>
 #include <TString.h>
 #include <TSystem.h>
+#include <TTree.h>
 
 #include "AliConst.h"
 #include "AliRun.h"
@@ -270,7 +271,7 @@ void AliACORDEv1::CreateAcorde()
        boxLongSupport[2]=500.0;
 
        boxThinSupport[0]=1.0;
-       boxThinSupport[1]=7.0;
+       boxThinSupport[1]=5.0;
        boxThinSupport[2]=500.0;
 
        TGeoBBox *acordeLongSupport = new TGeoBBox("ACORDELONGSUPPORT",boxLongSupport[0],boxLongSupport[1],boxLongSupport[2]);
@@ -279,7 +280,7 @@ void AliACORDEv1::CreateAcorde()
        TGeoVolume *acordeLSupport = new TGeoVolume("ACORDELS",acordeLongSupport,aluminium);
        TGeoVolume *acordeTSupport = new TGeoVolume("ACORDETS",acordeThinSupport,aluminium);
        TGeoVolume *acordeMainSupport = new TGeoVolumeAssembly("ACORDE_SUPPORT"); 
-       acordeMainSupport->AddNode(acordeLSupport,1,new TGeoTranslation("ACOLSA",0,7.5,0));
+       acordeMainSupport->AddNode(acordeLSupport,1,new TGeoTranslation("ACOLSA",0,5.5,0));
        acordeMainSupport->AddNode(acordeLSupport,2,new TGeoTranslation("ACOLSB",0,-7.5,0));
        acordeMainSupport->AddNode(acordeTSupport,3);
 
@@ -821,7 +822,7 @@ void AliACORDEv1::MakeBranch(Option_t *option)
 // Creates new branches in the current Root Tree
     
   char branchname[10];
-  //sprintf(branchname,"%s",GetName());
+  snprintf(branchname,9,"%s",GetName());
   AliDebug(2,Form("fBufferSize = %d",fBufferSize));
   const char *cH = strstr(option,"H");
   if (fHits   && fLoader->TreeH() && cH) {