]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Possibility of selecting one subdetector when making recpoints starting from raw...
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 24 Aug 2007 21:19:27 +0000 (21:19 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 24 Aug 2007 21:19:27 +0000 (21:19 +0000)
ITS/AliITSDetTypeRec.cxx
ITS/AliITSDetTypeRec.h

index 0239d6f0cc8b040a71548d178ef19217e0dd3c60..0ac224f403329a4a33263e4f532953a81e229df0 100644 (file)
@@ -749,7 +749,7 @@ void AliITSDetTypeRec::DigitsToRecPoints(TTree *treeD,TTree *treeR,Int_t lastent
   } 
 }
 //______________________________________________________________________
-void AliITSDetTypeRec::DigitsToRecPoints(AliRawReader* rawReader,TTree *treeR){
+void AliITSDetTypeRec::DigitsToRecPoints(AliRawReader* rawReader,TTree *treeR,Option_t *opt){
   // cluster finding and reconstruction of space points
   // the condition below will disappear when the geom class will be
   // initialized for all versions - for the moment it is only for v5 !
@@ -761,6 +761,9 @@ void AliITSDetTypeRec::DigitsToRecPoints(AliRawReader* rawReader,TTree *treeR){
   //      none.
   // Return:
   //      none.
+  const char *all = strstr(opt,"All");
+  const char *det[3] = {strstr(opt,"SPD"),strstr(opt,"SDD"),
+                        strstr(opt,"SSD")};
   AliITSClusterFinderV2 *rec     = 0;
   Int_t id=0;
 
@@ -773,6 +776,7 @@ void AliITSDetTypeRec::DigitsToRecPoints(AliRawReader* rawReader,TTree *treeR){
     clusters[iModule] = NULL;
   }
   for(id=0;id<3;id++){
+    if (!all && !det[id]) continue;
     rec = (AliITSClusterFinderV2*)GetReconstructionModel(id);
     if (!rec)
       AliFatal("The reconstruction class was not instanciated");
@@ -782,6 +786,8 @@ void AliITSDetTypeRec::DigitsToRecPoints(AliRawReader* rawReader,TTree *treeR){
   Int_t nClusters =0;
   TClonesArray *emptyArray=new TClonesArray("AliITSRecPoint");
   for(Int_t iModule=0;iModule<GetITSgeom()->GetIndexMax();iModule++){
+    id = GetITSgeom()->GetModuleType(iModule);
+    if (!all && !det[id]) continue;
     array = clusters[iModule];
     if(!array){
       AliDebug(1,Form("data for module %d missing!",iModule));
index d95a7a0cebba36334cdd758fce13003db1aed51d..466efd1cd3a29ed712fcdea75ae8176abebff812 100644 (file)
@@ -87,7 +87,7 @@ class AliITSDetTypeRec : public TObject {
     TClonesArray  *RecPoints()   {return fRecPoints;}
     void MakeBranchRF(TTree *treeR){MakeBranchR(treeR,"Fast");}
     void DigitsToRecPoints(TTree *treeD,TTree *treeR,Int_t lastEntry,Option_t *det,Bool_t v2=kFALSE);
-    void DigitsToRecPoints(AliRawReader* rawReader,TTree *treeR);
+    void DigitsToRecPoints(AliRawReader* rawReader,TTree *treeR,Option_t *det="All");
 
   private:
     // private methods