*/
#include <iostream.h>
+#include <TArrayI.h>
#include "AliRun.h"
//
-AliITSClusterFinderSSD::AliITSClusterFinderSSD(AliITSsegmentation *seg, TClonesArray *digits, TClonesArray *recp)
+AliITSClusterFinderSSD::AliITSClusterFinderSSD(AliITSsegmentation *seg, TClonesArray *digits)
{
//Standard constructor
fSegmentation=seg;
- this->SetDigits(digits);
- fRecPoints=recp;
+ fDigits=digits;
- fMap = new AliITSMapA1(fSegmentation,Digits());
+ fMap = new AliITSMapA1(fSegmentation,fDigits);
fITS=(AliITS*)gAlice->GetModule("ITS");
Int_t N;
Int_t i;
- N = NDigits();
+ N = fDigits->GetEntriesFast();
Int_t* PSidx = new Int_t [N*sizeof(Int_t)];
Int_t* NSidx = new Int_t [N*sizeof(Int_t)];
{
// create the recpoints
+
const Float_t kdEdXtoQ = 2.778e+8;
const Float_t kconv = 1.0e-4;
const Float_t kRMSx = 20.0*kconv; // microns->cm ITS TDR Table 1.3
fSegmentation->GetPadIxz(P,N,stripP,stripN);
digP = (AliITSdigitSSD*)fMap->GetHit(1,stripP);
digN = (AliITSdigitSSD*)fMap->GetHit(0,stripN);
- printf("SSD: digP digN %p %p\n",digP,digN);
+ //printf("SSD: digP digN %p %p\n",digP,digN);
if(digP) sigP = digP->fSignal;
else sigP=0;
if(digN) sigN = digN->fSignal;
{
// reconstruct remaining non-crossing clusters
+ //printf("ReconstructNotConsumedClusters !!!\n");
+
Int_t i;
AliITSclusterSSD *cluster;
Float_t pos;
GetCrossing (x2,z2);
fSegmentation->GetPadIxz((x1+x2)/2,(z1+z2)/2,stripP,stripN);
dig = (AliITSdigitSSD*)fMap->GetHit(1,stripP);
+ //printf("dig %p\n",dig);
if (!dig) printf("SSD: check the digit! dig %p\n",dig);
if(!dig) continue;
AliITSRawClusterSSD cnew;
*/
cnew.fQErr=sigerr;
//cnew.fProbability=0.75;
+ //printf("AddCluster: %p nstripsP %d\n",&cnew,nstripsP);
fITS->AddCluster(2,&cnew);
// add the rec point info
AliITSRecPoint rnew;
* See cxx source for full Copyright notice */
-#include <TArrayS.h>
-#include <TRandom.h>
#include <TMath.h>
-//#include "AliITSclusterSSD.h"
-//#include "AliITSpackageSSD.h"
#include "AliITSClusterFinder.h"
+class TArrayI;
+
class AliITSclusterSSD;
class AliITSpackageSSD;
public:
- AliITSClusterFinderSSD(AliITSsegmentation *seg, TClonesArray *digits, TClonesArray *recp);
+ AliITSClusterFinderSSD(AliITSsegmentation *seg, TClonesArray *digits);
virtual ~AliITSClusterFinderSSD();
AliITS *fITS; //!Pointer to AliITS object
- TClonesArray *fRecPoints; //!Pointer to TClonesArray of rec points
-
TClonesArray *fClusterP; //!
Int_t fNClusterP; //!Number of P side clusters in the array