1 /***************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
20 ////////////////////////////////////////////////////////////////////////
21 // This class defines the "Standard" reconstruction for the ITS //
24 ////////////////////////////////////////////////////////////////////////
25 #include "TObjArray.h"
28 #include "AliITSClusterFinder.h"
29 #include "AliITSClusterFinderV2.h"
30 #include "AliITSClusterFinderV2SPD.h"
31 #include "AliITSClusterFinderV2SDD.h"
32 #include "AliITSClusterFinderV2SSD.h"
33 #include "AliITSClusterFinderSPD.h"
34 #include "AliITSClusterFinderSDD.h"
35 #include "AliITSClusterFinderSSD.h"
36 #include "AliITSclusterV2.h"
37 #include "AliITSgeom.h"
38 #include "AliITSDetTypeRec.h"
39 #include "AliITSRawCluster.h"
40 #include "AliITSRawClusterSPD.h"
41 #include "AliITSRawClusterSDD.h"
42 #include "AliITSRawClusterSSD.h"
43 #include "AliITSRecPoint.h"
44 #include "AliITSresponseSPD.h"
45 #include "AliITSresponseSDD.h"
46 #include "AliITSresponseSSD.h"
47 #include "AliITSsegmentationSPD.h"
48 #include "AliITSsegmentationSDD.h"
49 #include "AliITSsegmentationSSD.h"
52 const Int_t AliITSDetTypeRec::fgkNdettypes = 3;
53 ClassImp(AliITSDetTypeRec)
55 //________________________________________________________________
56 AliITSDetTypeRec::AliITSDetTypeRec(): TObject(),
58 fReconstruction(),// [NDet]
59 fSegmentation(), // [NDet]
60 fCalibration(), // [NMod]
61 fPreProcess(), // [] e.g. Find Calibration values
62 fPostProcess(), // [] e.g. find primary vertex
63 fDigits(), //! [NMod][NDigits]
64 fClusterClassName(), // String with Cluster class name
65 fDigClassName(), // String with digit class name.
66 fRecPointClassName(){// String with RecPoint class name
67 // Default Constructor
73 // A properly zero-ed AliITSDetTypeRec class.
76 fReconstruction = new TObjArray(fgkNdettypes);
81 fDigits = new TObjArray(fgkNdettypes);
82 fNdtype = new Int_t[fgkNdettypes];
83 fCtype = new TObjArray(fgkNdettypes);
84 fNctype = new Int_t[fgkNdettypes];
85 fRecPoints = new TClonesArray("AliITSRecPoint",1000);
87 fClustersV2 = new TClonesArray("AliITSclusterV2",3000);
90 for(Int_t i=0;i<fgkNdettypes;i++){
98 //______________________________________________________________________
99 AliITSDetTypeRec::AliITSDetTypeRec(const AliITSDetTypeRec &/*rec*/):TObject(/*rec*/){
102 Error("Copy constructor","Copy constructor not allowed");
105 //______________________________________________________________________
106 AliITSDetTypeRec& AliITSDetTypeRec::operator=(const AliITSDetTypeRec& /*source*/){
107 // Assignment operator. This is a function which is not allowed to be
109 Error("operator=","Assignment operator not allowed\n");
113 //_____________________________________________________________________
114 AliITSDetTypeRec::~AliITSDetTypeRec(){
117 if(fGeom) delete fGeom;
118 if(fReconstruction) delete fReconstruction;
119 if(fSegmentation) delete fSegmentation;
120 if(fCalibration) delete fCalibration;
121 if(fPreProcess) delete fPreProcess;
122 if(fPostProcess) delete fPostProcess;
130 fRecPoints->Delete();
135 fClustersV2->Delete();
145 if(fLoader) delete fLoader;
148 //___________________________________________________________________
149 void AliITSDetTypeRec::SetReconstructionModel(Int_t dettype,AliITSClusterFinder *clf){
151 //Set reconstruction model for detector type
153 if(fReconstruction==0) fReconstruction = new TObjArray(fgkNdettypes);
154 if(fReconstruction->At(dettype)!=0) delete fReconstruction->At(dettype);
155 fReconstruction->AddAt(clf,dettype);
157 //______________________________________________________________________
158 AliITSClusterFinder* AliITSDetTypeRec::GetReconstructionModel(Int_t dettype){
160 //Get reconstruction model for detector type
161 if(fReconstruction==0) {
162 Warning("GetReconstructionModel","fReconstruction is 0!");
165 return (AliITSClusterFinder*)fReconstruction->At(dettype);
168 //______________________________________________________________________
169 void AliITSDetTypeRec::SetSegmentationModel(Int_t dettype,AliITSsegmentation *seg){
171 //Set segmentation model for detector type
173 if(fSegmentation==0) fSegmentation = new TObjArray(fgkNdettypes);
174 if(fSegmentation->At(dettype)!=0) delete fSegmentation->At(dettype);
175 fSegmentation->AddAt(seg,dettype);
178 //______________________________________________________________________
179 AliITSsegmentation* AliITSDetTypeRec::GetSegmentationModel(Int_t dettype){
181 //Get segmentation model for detector type
183 if(fSegmentation==0) {
184 Warning("GetSegmentationModel","fSegmentation is 0!");
187 return (AliITSsegmentation*)fSegmentation->At(dettype);
190 //_______________________________________________________________________
191 void AliITSDetTypeRec::SetCalibrationModel(Int_t module,AliITSresponse *resp){
194 //Set segmentation model for module number
195 if(fCalibration==0) fCalibration = new TObjArray(fGeom->GetIndexMax());
196 if(fCalibration->At(module)!=0) delete fCalibration->At(module);
197 fCalibration->AddAt(resp,module);
200 //_______________________________________________________________________
201 AliITSresponse* AliITSDetTypeRec::GetCalibrationModel(Int_t module){
203 //Get segmentation model for module number
205 if(fCalibration==0) {
206 Warning("GetalibrationModel","fResponse is 0!");
209 return (AliITSresponse*)fCalibration->At(module);
212 //______________________________________________________________________
213 void AliITSDetTypeRec::SetTreeAddress(){
214 // Set branch address for the Trees.
216 TTree *treeR = fLoader->TreeR();
217 TTree *treeD = fLoader->TreeD();
219 SetTreeAddressD(treeD);
220 SetTreeAddressR(treeR);
222 //______________________________________________________________________
223 void AliITSDetTypeRec::SetTreeAddressD(TTree *treeD){
224 // Set branch address for the tree of digits.
226 const char *det[4] = {"SPD","SDD","SSD","ITS"};
233 if (fDigits == 0x0) fDigits = new TObjArray(fgkNdettypes);
234 for (i=0; i<fgkNdettypes; i++) {
235 digclass = GetDigitClassName(i);
236 if(!(fDigits->At(i))) {
237 fDigits->AddAt(new TClonesArray(digclass,1000),i);
241 if (fgkNdettypes==3) sprintf(branchname,"%sDigits%s",det[3],det[i]);
242 else sprintf(branchname,"%sDigits%d",det[3],i+1);
244 branch = treeD->GetBranch(branchname);
245 if (branch) branch->SetAddress(&((*fDigits)[i]));
250 //_______________________________________________________________________
251 TBranch* AliITSDetTypeRec::MakeBranchInTree(TTree *tree, const char* name,
252 const char *classname,
253 void* address,Int_t size,
254 Int_t splitlevel, const char */*file*/)
257 // Makes branch in given tree and diverts them to a separate file
263 Error("MakeBranchInTree","Making Branch %s Tree is NULL",name);
266 TBranch *branch = tree->GetBranch(name);
271 branch = tree->Branch(name,classname,address,size,splitlevel);
274 branch = tree->Bronch(name, "TClonesArray", address, size, splitlevel);
280 //____________________________________________________________________
281 void AliITSDetTypeRec::SetDefaults(){
283 //Set defaults for segmentation and response
287 Warning("SetDefaults","fGeom is 0!");
291 AliITSsegmentation* seg;
294 for(Int_t dettype=0;dettype<fgkNdettypes;dettype++){
296 seg = new AliITSsegmentationSPD(fGeom);
297 SetSegmentationModel(dettype,seg);
300 res = new AliITSresponseSDD("simulated");
301 seg = new AliITSsegmentationSDD(fGeom,res);
302 SetSegmentationModel(dettype,seg);
305 AliITSsegmentationSSD* seg2 = new AliITSsegmentationSSD(fGeom);
306 seg2->SetAngles(0.0075,0.0275); // strip angels rad P and N side.
307 seg2->SetAnglesLay5(0.0075,0.0275); // strip angels rad P and N side.
308 seg2->SetAnglesLay6(0.0275,0.0075); // strip angels rad P and N side.
310 SetSegmentationModel(dettype,seg2);
315 for(Int_t imod=0;imod<fGeom->GetIndexMax();imod++){
316 Int_t dettype = fGeom->GetModuleType(imod);
319 SetCalibrationModel(imod,new AliITSresponseSPD());
320 SetDigitClassName(dettype,"AliITSdigitSPD");
321 SetClusterClassName(dettype,"AliITSRawClusterSPD");
325 SetCalibrationModel(imod,new AliITSresponseSDD("simulated"));
326 const char *kopt = GetCalibrationModel(imod)->ZeroSuppOption();
327 if((!strstr(kopt,"2D"))&&(!strstr(kopt,"1D"))) SetDigitClassName(dettype,"AliITSdigit");
328 else SetDigitClassName(dettype,"AliITSdigitSDD");
329 SetClusterClassName(dettype,"AliITSRawClusterSDD");
333 SetCalibrationModel(imod,new AliITSresponseSSD("simulated"));
334 SetDigitClassName(dettype,"AliITSdigitSSD");
335 SetClusterClassName(dettype,"AliITSRawClusterSSD");
343 //________________________________________________________________
344 void AliITSDetTypeRec::SetDefaultClusterFinders(){
346 //set defaults for standard cluster finder
349 Warning("SetDefaults","fGeom is 0!");
353 AliITSsegmentation* seg;
355 AliITSClusterFinder *clf;
359 for(Int_t imod=0;imod<fGeom->GetIndexMax();imod++){
360 Int_t dettype = fGeom->GetModuleType(imod);
363 if(!GetReconstructionModel(dettype)){
364 seg = (AliITSsegmentation*)GetSegmentationModel(dettype);
365 TClonesArray *dig0 = DigitsAddress(0);
366 TClonesArray *rec0 = ClustersAddress(0);
367 clf = new AliITSClusterFinderSPD(seg,dig0,rec0);
368 SetReconstructionModel(dettype,clf);
373 if(!GetReconstructionModel(dettype)){
374 seg = (AliITSsegmentation*)GetSegmentationModel(dettype);
375 res = (AliITSresponse*)GetCalibrationModel(imod);
376 TClonesArray *dig1 = DigitsAddress(1);
377 TClonesArray *rec1 = ClustersAddress(1);
378 clf = new AliITSClusterFinderSDD(seg,res,dig1,rec1);
379 SetReconstructionModel(dettype,clf);
385 if(!GetReconstructionModel(dettype)){
386 seg = (AliITSsegmentation*)GetSegmentationModel(dettype);
387 TClonesArray* dig2 = DigitsAddress(2);
388 clf = new AliITSClusterFinderSSD(seg,dig2);
389 clf->SetITSgeom(fGeom);
390 SetReconstructionModel(dettype,clf);
399 //________________________________________________________________
400 void AliITSDetTypeRec::SetDefaultClusterFindersV2(){
402 //Set defaults for cluster finder V2
405 Warning("SetDefaults","fGeom is 0!");
409 AliITSsegmentation* seg;
410 AliITSClusterFinder *clf;
413 for(Int_t imod=0;imod<fGeom->GetIndexMax();imod++){
414 Int_t dettype = fGeom->GetModuleType(imod);
417 if(!GetReconstructionModel(dettype)){
418 seg = (AliITSsegmentation*)GetSegmentationModel(dettype);
419 clf = new AliITSClusterFinderV2SPD(fGeom);
421 clf->SetSegmentation(seg);
422 clf->SetDigits(DigitsAddress(0));
423 SetReconstructionModel(dettype,clf);
429 if(!GetReconstructionModel(dettype)){
430 seg = (AliITSsegmentation*)GetSegmentationModel(dettype);
431 clf = new AliITSClusterFinderV2SDD(fGeom);
433 clf->SetSegmentation(seg);
434 clf->SetDigits(DigitsAddress(1));
435 SetReconstructionModel(dettype,clf);
442 if(!GetReconstructionModel(dettype)){
443 seg = (AliITSsegmentation*)GetSegmentationModel(dettype);
444 clf = new AliITSClusterFinderV2SSD(fGeom);
446 clf->SetSegmentation(seg);
447 clf->SetDigits(DigitsAddress(2));
448 SetReconstructionModel(dettype,clf);
455 //______________________________________________________________________
456 void AliITSDetTypeRec::MakeBranch(Option_t* option){
458 //Creates branches for clusters and recpoints
459 Bool_t cR = (strstr(option,"R")!=0);
460 Bool_t cRF = (strstr(option,"RF")!=0);
461 Bool_t v2 = (strstr(option,"v2")!=0);
465 if(cR) MakeBranchR(0);
466 if(cRF) MakeBranchRF(0);
467 if(v2) MakeBranchR(0,"v2");
471 //_____________________________________________________________
472 void AliITSDetTypeRec::MakeTreeC(){
474 //Create a separate tree to store the clusters
476 Warning("MakeTreeC","ITS loader is null!");
479 if(fLoader->TreeC()== 0x0) fLoader->MakeTree("C");
483 //______________________________________________________________
484 void AliITSDetTypeRec::MakeBranchC(){
486 //Make branches in the tree of clusters
489 Warning("MakeBranchC","ITS loader is null!");
492 TTree* lTC = fLoader->TreeC();
494 Error("MakeTreeC","Can not get TreeC from loader");
498 Int_t buffersize = 4000;
499 Char_t branchname[30];
501 const char *det[4]={"SPD","SDD","SSD","ITS"};
503 for(Int_t i=0;i<fgkNdettypes;i++){
504 cluclass = GetClusterClassName(i);
505 if(fCtype==0x0) fCtype = new TObjArray(fgkNdettypes);
506 if(!ClustersAddress(i)){
507 fCtype->AddAt(new TClonesArray(cluclass,1000),i);
509 if(fgkNdettypes==3) sprintf(branchname,"%sClusters%s",det[3],det[i]);
510 else sprintf(branchname,"%sClusters%d",det[3],i+1);
512 if(lTC->GetBranch(branchname)){
513 Warning("MakeBranchC","Branch %s already exists in TreeC",branchname);
515 Info("MakeBranchC","Creating branch %s in TreeC",branchname);
516 lTC->Branch(branchname,&((*fCtype)[i]),buffersize);
524 //_______________________________________________________________
525 void AliITSDetTypeRec::GetTreeC(Int_t event){
527 //Get the clusters tree for this event and
528 //sets the branch address
532 Warning("GetTreeC","ITS loader is null!");
536 Char_t branchname[30];
537 const char *det[4] = {"SPD","SDD","SSD","ITS"};
538 TTree* lTC = fLoader->TreeC();
541 if(lTC) fLoader->CleanRawClusters();
546 for(Int_t i=0;i<fgkNdettypes;i++){
547 cluclass = GetClusterClassName(i);
548 if(fCtype==0x0) fCtype = new TObjArray(fgkNdettypes);
549 if(!fCtype->At(i)) fCtype->AddAt(new TClonesArray(cluclass,1000),i);
550 if(fgkNdettypes==3) sprintf(branchname,"%sClusters%s",det[3],det[i]);
551 else sprintf(branchname,"%sClusters%d",det[3],i+1);
553 branch = lTC->GetBranch(branchname);
554 if(branch) branch->SetAddress(&((*fCtype)[i]));
558 Error("GetTreeC","cannot find clusters Tree for vent %d",event);
563 //___________________________________________________________________
564 void AliITSDetTypeRec::AddCluster(Int_t id, AliITSRawCluster *c){
566 // Adds a raw cluster to the list
567 TClonesArray &lc = *((TClonesArray*)fCtype->At(id));
570 new(lc[fNctype[id]++]) AliITSRawClusterSPD(*((AliITSRawClusterSPD*)c));
573 new(lc[fNctype[id]++]) AliITSRawClusterSDD(*((AliITSRawClusterSDD*)c));
576 new(lc[fNctype[id]++]) AliITSRawClusterSSD(*((AliITSRawClusterSSD*)c));
580 //___________________________________________________________________
581 void AliITSDetTypeRec::ResetDigits(){
582 // Reset number of digits and the digits array for the ITS detector.
585 for(Int_t i=0;i<fgkNdettypes;i++){
589 //___________________________________________________________________
590 void AliITSDetTypeRec::ResetDigits(Int_t branch){
591 // Reset number of digits and the digits array for this branch.
593 if(fDigits->At(branch)) ((TClonesArray*)fDigits->At(branch))->Clear();
594 if(fNdtype) fNdtype[branch]=0;
598 //__________________________________________________________________
599 void AliITSDetTypeRec::ResetClusters(){
601 //Resets number of clusters and the cluster array
602 for(Int_t i=0;i<fgkNdettypes;i++){
607 //__________________________________________________________________
608 void AliITSDetTypeRec::ResetClusters(Int_t i){
610 //Resets number of clusters and the cluster array for this branch
612 if (fCtype->At(i)) ((TClonesArray*)fCtype->At(i))->Clear();
613 if (fNctype) fNctype[i]=0;
615 //__________________________________________________________________
616 void AliITSDetTypeRec::MakeBranchR(const char *file, Option_t *opt){
618 //Creates tree branches for recpoints
620 // cont char *file File name where RecPoints branch is to be written
621 // to. If blank it write the SDigits to the same
622 // file in which the Hits were found.
625 Warning("MakeBranchR","ITS loader is null!");
632 // only one branch for rec points for all detector types
633 Bool_t oFast= (strstr(opt,"Fast")!=0);
634 Bool_t v2 = (strstr(opt,"v2")!=0);
636 Char_t detname[10] = "ITS";
640 sprintf(branchname,"%sRecPointsF",detname);
642 sprintf(branchname,"Clusters");
644 sprintf(branchname,"%sRecPoints",detname);
649 if(!fClustersV2)fClustersV2 = new TClonesArray("AliITSclusterV2",3000);
650 if(fLoader->TreeR()){
651 if(fClustersV2==0x0) fClustersV2 = new TClonesArray("AliITSclusterV2",3000);
652 MakeBranchInTree(fLoader->TreeR(),branchname,0,&fClustersV2,buffsz,99,file);
656 if(!fRecPoints)fRecPoints = new TClonesArray("AliITSRecPoint",1000);
657 if (fLoader->TreeR()) {
658 if(fRecPoints==0x0) fRecPoints = new TClonesArray("AliITSRecPoint",
660 MakeBranchInTree(fLoader->TreeR(),branchname,0,&fRecPoints,buffsz,99,file);
665 //______________________________________________________________________
666 void AliITSDetTypeRec::SetTreeAddressR(TTree *treeR){
667 // Set branch address for the Reconstructed points Trees.
669 // TTree *treeR Tree containing the RecPoints.
675 Char_t namedet[10]="ITS";
678 if(fRecPoints==0x0) fRecPoints = new TClonesArray("AliITSRecPoint",1000);
680 sprintf(branchname,"Clusters");
681 branch1 = treeR->GetBranch(branchname);
683 if(fClustersV2==0x0) fClustersV2 = new TClonesArray("AliITSclusterV2",3000);
684 branch1->SetAddress(&fClustersV2);
688 sprintf(branchname,"%sRecPoints",namedet);
689 branch = treeR->GetBranch(branchname);
691 branch->SetAddress(&fRecPoints);
693 sprintf(branchname,"%sRecPointsF",namedet);
694 branch = treeR->GetBranch(branchname);
696 branch->SetAddress(&fRecPoints);
701 //____________________________________________________________________
702 void AliITSDetTypeRec::AddRecPoint(const AliITSRecPoint &r){
703 // Add a reconstructed space point to the list
705 // const AliITSRecPoint &r RecPoint class to be added to the tree
706 // of reconstructed points TreeR.
712 TClonesArray &lrecp = *fRecPoints;
713 new(lrecp[fNRecPoints++]) AliITSRecPoint(r);
715 //______________________________________________________________________
716 void AliITSDetTypeRec::AddClusterV2(const AliITSclusterV2 &r){
717 // Add a reconstructed space point to the list
719 // const AliITSClusterV2 &r class to be added to the tree
720 // of reconstructed points TreeR.
726 TClonesArray &lrecp = *fClustersV2;
727 new(lrecp[fNClustersV2++]) AliITSclusterV2(r);
730 //______________________________________________________________________
731 void AliITSDetTypeRec::DigitsToRecPoints(Int_t evNumber,Int_t lastentry,Option_t *opt, Bool_t v2){
732 // cluster finding and reconstruction of space points
733 // the condition below will disappear when the geom class will be
734 // initialized for all versions - for the moment it is only for v5 !
735 // 7 is the SDD beam test version
737 // Int_t evNumber Event number to be processed.
738 // Int_t lastentry Offset for module when not all of the modules
740 // Option_t *opt String indicating which ITS sub-detectors should
741 // be processed. If ="All" then all of the ITS
742 // sub detectors are processed.
745 Warning("DigitsToRecPoints","fGeom is null!");
749 Warning("DigitsToRecPoints","ITS loader is null!");
753 const char *all = strstr(opt,"All");
754 const char *det[3] = {strstr(opt,"SPD"),strstr(opt,"SDD"),
756 if(!v2) SetDefaultClusterFinders();
757 else SetDefaultClusterFindersV2();
760 TTree *treeC=fLoader->TreeC();
765 AliITSClusterFinder *rec = 0;
766 Int_t id,module,first=0;
767 for(module=0;module<fGeom->GetIndexMax();module++){
768 id = fGeom->GetModuleType(module);
769 if (!all && !det[id]) continue;
770 if(det[id]) first = fGeom->GetStartDet(id);
771 rec = (AliITSClusterFinder*)GetReconstructionModel(id);
772 TClonesArray *itsDigits = DigitsAddress(id);
774 Error("DigitsToRecPoints",
775 "The reconstruction class was not instanciated! event=%d",
780 TTree *lTD = fLoader->TreeD();
782 lTD->GetEvent(lastentry+module);
784 lTD->GetEvent(lastentry+(module-first));
786 Int_t ndigits = itsDigits->GetEntriesFast();
788 rec->SetDetTypeRec(this);
789 rec->SetITSgeom(fGeom);
790 rec->SetDigits(DigitsAddress(id));
791 rec->SetClusters(ClustersAddress(id));
792 rec->FindRawClusters(module);
794 fLoader->TreeR()->Fill();
801 fLoader->WriteRecPoints("OVERWRITE");
802 fLoader->WriteRawClusters("OVERWRITE");
804 //______________________________________________________________________
805 void AliITSDetTypeRec::DigitsToRecPoints(AliRawReader* rawReader){
806 // cluster finding and reconstruction of space points
807 // the condition below will disappear when the geom class will be
808 // initialized for all versions - for the moment it is only for v5 !
809 // 7 is the SDD beam test version
811 // Int_t evNumber Event number to be processed.
812 // Int_t lastentry Offset for module when not all of the modules
814 // Option_t *opt String indicating which ITS sub-detectors should
815 // be processed. If ="All" then all of the ITS
816 // sub detectors are processed.
822 Warning("DigitsToRecPoints","fGeom is null!");
826 Warning("DigitsToRecPoints","ITS loader is null!");
830 SetDefaultClusterFindersV2();
832 AliITSClusterFinderV2 *rec = 0;
835 if(!fLoader->TreeR()) fLoader->MakeTree("R");
836 TTree* cTree = fLoader->TreeR();
837 TClonesArray *array=new TClonesArray("AliITSclusterV2",1000);
838 cTree->Branch("Clusters",&array);
841 TClonesArray** clusters = new TClonesArray*[fGeom->GetIndexMax()];
842 for (Int_t iModule = 0; iModule < fGeom->GetIndexMax(); iModule++) {
843 clusters[iModule] = NULL;
846 rec = (AliITSClusterFinderV2*)GetReconstructionModel(id);
847 rec->SetITSgeom(fGeom);
849 Error("DigitsToRecPoints",
850 "The reconstruction class was not instanciated");
853 rec->RawdataToClusters(rawReader,clusters);
856 for(Int_t iModule=0;iModule<fGeom->GetIndexMax();iModule++){
857 array = clusters[iModule];
859 Error("DigitsToRecPoints","data for module %d missing!",iModule);
860 array = new TClonesArray("AliITSclusterV2");
862 cTree->SetBranchAddress("Clusters",&array);
864 nClusters+=array->GetEntriesFast();
867 fLoader->WriteRecPoints("OVERWRITE");
870 Info("DigitsToRecPoints", "total number of found clustersV2 in ITS: %d\n",