#include "TParticle.h"
#endif
-Int_t AliITSFindClustersV2() {
+Int_t AliITSFindClustersV2(Char_t SlowOrFast='f') {
/****************************************************************
* This macro converts AliITSRecPoint(s) to AliITSclusterV2(s) *
****************************************************************/
TTree *pTree=gAlice->TreeR();
if (!pTree) { cerr<<"Can't get TreeR !\n"; return 5; }
- TBranch *branch=pTree->GetBranch("ITSRecPoints");
+ TBranch *branch = 0;
+ if (SlowOrFast=='f') {
+ branch = pTree->GetBranch("ITSRecPointsF");
+ }
+ else {
+ branch = pTree->GetBranch("ITSRecPoints");
+ }
if (!branch) { cerr<<"Can't get ITSRecPoints branch !\n"; return 6; }
TClonesArray *points=new TClonesArray("AliITSRecPoint",10000);
branch->SetAddress(&points);
TClonesArray &cl=*clusters;
Int_t nclusters=0;
- Int_t nentr=(Int_t)pTree->GetEntries();
+ Int_t nentr=(Int_t)branch->GetEntries();
cerr<<"Number of entries: "<<nentr<<endl;
for (Int_t i=0; i<nentr; i++) {
points->Clear();
- pTree->GetEvent(i);
+ branch->GetEvent(i);
Int_t ncl=points->GetEntriesFast(); if (ncl==0){cTree->Fill();continue;}
Int_t lay,lad,det; geom->GetModuleId(i,lay,lad,det);
Float_t x,y,zshift; geom->GetTrans(lay,lad,det,x,y,zshift);
/*
$Log$
+Revision 1.10 2002/06/10 17:30:24 nilsen
+A new CreateFastRecPoints has been made and the old one made compatible.
+
Revision 1.9 2001/10/01 19:36:03 nilsen
fixed a compilation warning about unused variable.
locals[0] += deltaXl;
locals[2] += deltaZl;
AliITSRecPoint rp;
- // rp.fTracks[0]=hit->GetTrack();
- rp.fTracks[0]=mod->GetHitTrackIndex(ihit);
+ rp.fTracks[0]=hit->GetTrack();
+ // rp.fTracks[0]=mod->GetHitTrackIndex(ihit);
rp.fTracks[1]=-3;
rp.fTracks[2]=-3;
rp.SetX(locals[0]);
-Int_t AliITStestV2(Char_t SlowOrFast='s') {
+Int_t AliITStestV2(Char_t SlowOrFast='f') {
Int_t rc=0;
if (gAlice) {delete gAlice; gAlice=0;}
AliITSHits2SDigits();
gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSSDigits2Digits.C");
AliITSSDigits2Digits();
- gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSDigits2Recpoints.C");
- AliITSdigits2RecPoints();
+ gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSDigits2RecPoints.C");
+ AliITSDigits2RecPoints();
}
-
gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClustersV2.C");
- if (rc=AliITSFindClustersV2()) return rc;
+ if (rc=AliITSFindClustersV2(SlowOrFast)) return rc;
gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindTracksV2.C");
if (rc=AliITSFindTracksV2()) return rc;