]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix in a macro that was crashing due to missing segmentationSPD object
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 May 2010 16:38:13 +0000 (16:38 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 May 2010 16:38:13 +0000 (16:38 +0000)
ITS/DoVerticesSPD.C

index dd441f7c9594d6834f549f7f8db6005a9d2401b5..616e294109a7f7fc60b71d62ecd36a49244edf5d 100644 (file)
@@ -12,6 +12,7 @@
 #include "AliTracker.h"
 #include "AliHeader.h"
 #include "AliITSLoader.h"
+#include "AliITSsegmentationSPD.h"
 #include "AliVertexerTracks.h"
 #include "AliCDBManager.h"
 #include "AliGeomManager.h"
@@ -42,6 +43,7 @@ Bool_t DoVerticesSPD(Int_t pileupalgo=1, Int_t optdebug=0){
   if (!man->IsDefaultStorageSet()) {
     printf("Setting a local default storage and run number 0\n");
     man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+    //    man->SetSpecificStorage("GRP/GRP/Data",Form("local://%s",gSystem->pwd()));
     man->SetRun(0);
   }
   else {
@@ -93,6 +95,9 @@ Bool_t DoVerticesSPD(Int_t pileupalgo=1, Int_t optdebug=0){
   printf("Magnetic field set to %f T\n",AliTracker::GetBz()/10.);
 
   AliITSDetTypeRec* detTypeRec = new AliITSDetTypeRec();
+  AliITSsegmentation* seg = new AliITSsegmentationSPD();  
+  detTypeRec->SetSegmentationModel(0,seg);
+
   Double_t xnom=0.,ynom=0.;
   AliITSVertexerZ *vertz = new AliITSVertexerZ(xnom,ynom);
   vertz->Init("default");