Make the macro compatible with AliRun
authormariana <mariana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Mar 2001 14:14:46 +0000 (14:14 +0000)
committermariana <mariana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Mar 2001 14:14:46 +0000 (14:14 +0000)
ITS/AliITSFindClusters.C
ITS/AliITSHits2Digits.C

index 03305f4..90c4399 100644 (file)
@@ -23,6 +23,7 @@ Int_t AliITSFindClusters() {
    Int_t ver = ITS->IsVersion(); 
    cerr<<"ITS version "<<ver<<" has been found !\n";
 
+   ITS->MakeTreeC();
 // Set the models for cluster finding
    AliITSgeom *geom = ITS->GetITSgeom();
 
@@ -66,8 +67,8 @@ Int_t AliITSFindClusters() {
    AliITSDetType *iDetType=ITS->DetType(2);
    AliITSsegmentationSSD *seg2=(AliITSsegmentationSSD*)iDetType->GetSegmentationModel();
    TClonesArray *dig2  = ITS->DigitsAddress(2);
-   TClonesArray *recp2  = ITS->ClustersAddress(2);
-   AliITSClusterFinderSSD *rec2=new AliITSClusterFinderSSD(seg2,dig2,recp2);
+   //TClonesArray *recp2  = ITS->ClustersAddress(2);
+   AliITSClusterFinderSSD *rec2=new AliITSClusterFinderSSD(seg2,dig2);
    ITS->SetReconstructionModel(2,rec2);
    // test
    printf("SSD dimensions %f %f \n",seg2->Dx(),seg2->Dz());
@@ -75,6 +76,9 @@ Int_t AliITSFindClusters() {
 
 
 
+   if(!gAlice->TreeR()) gAlice->MakeTree("R");
+   //make branch
+   ITS->MakeBranch("R");
 
    TStopwatch timer;
 
index 80b6e03..1f9bbcf 100644 (file)
@@ -94,6 +94,11 @@ Int_t AliITSHits2Digits()
   ITS->SetSimulationModel(2,sim2);
 
   cerr<<"Digitizing ITS...\n";
+
+   if(!gAlice->TreeD()) gAlice->MakeTree("D");
+   printf("TreeD %p\n",gAlice->TreeD());
+   //make branch
+   ITS->MakeBranch("D");
   
   TStopwatch timer;
   timer.Start();