]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSFindClustersV2.cxx
Adapted to the new set of libraries
[u/mrichter/AliRoot.git] / ITS / AliITSFindClustersV2.cxx
index 77949b10cf9f2eb10016388e9136945fd631882b..15e3710dbf6f9f0d677b1fc38ac1b859d71a48f6 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
  
-/*
-$Log$
-Revision 1.3.4.2  2002/12/11 10:00:15  hristov
-Merging with v3-09-04 (P.Skowronski)
+/* $Id$ */
 
-Revision 1.3.4.1  2002/11/26 16:58:52  hristov
-Merging NewIO with v3-09-04
-
-Revision 1.3  2002/10/14 14:57:00  hristov
-Merging the VirtualMC branch to the main development branch (HEAD)
-
-Revision 1.2.2.1  2002/10/14 13:14:08  hristov
-Updating VirtualMC to v3-09-02
-
-Revision 1.2  2002/09/23 13:25:52  hristov
-Typo corrected (HP)
-
-Revision 1.1  2002/09/09 17:36:05  nilsen
-new TTask to replace non-working AliITSFindClusterV2.C macro.
-
-*/
 #include <TROOT.h>
 #include <TFile.h>
 #include <TTree.h>
@@ -49,6 +30,7 @@ new TTask to replace non-working AliITSFindClusterV2.C macro.
 #include "AliITSFindClustersV2.h"
 #include "AliITSclusterV2.h"
 #include "AliITSgeom.h"
+#include "AliMC.h"
 
 ClassImp(AliITSFindClustersV2)
 
@@ -287,7 +269,7 @@ void AliITSFindClustersV2::Exec(const Option_t *opt){
     Char_t name[50];
 
     if(!fInit){
-       Warning("Exec","Initilization not succesfull. Aborting.");
+       Warning("Exec","(opt=%s) Initilization not succesfull. Aborting.\n",opt);
        return;
     } // end if !fInit
 
@@ -357,7 +339,7 @@ void AliITSFindClustersV2::Exec(const Option_t *opt){
            lab[3] = i;
            lad = lab[0];
            if(lad>=0){
-               part = (TParticle*) fAr->Particle(lad);
+               part = (TParticle*) fAr->GetMCApp()->Particle(lad);
                lad = -3;
                while(part->P() < 0.005){
                    if(part->GetFirstMother()<0){
@@ -365,13 +347,14 @@ void AliITSFindClustersV2::Exec(const Option_t *opt){
                        break;
                    } // end if part->GetFirstMother()<0
                    lad = part->GetFirstMother();
-                   part = (TParticle*) fAr->Particle(lad);
+                   part = (TParticle*) fAr->GetMCApp()->Particle(lad);
                } // end while part->P() < 0.005
                if(lab[1]<0) lab[1] = lad;
                else if(lab[2]<0) lab[2] = lad;
                else Warning("Exec","No empty lables!");
            } // end if lab>=0
-           new(cl[j]) AliITSclusterV2(lab,lp);
+           Int_t info[3]={0,0,0};
+           new(cl[j]) AliITSclusterV2(lab,lp,info);
        } // end for j
        cTree->Fill();
        cluster->Delete();