while ( (digit = (AliPHOSDigit *)next()) ) {
-// cout << " clusterizerv1 " << endl ;
-// int nprim = digit->GetNprimary() ;
-// int * aprim = digit->GetPrimary() ;
-// for ( int ii = 0 ; ii < nprim ; ii++)
-// cout << ii << " prim = " << aprim[ii] << endl ;
-
Int_t id = digit->GetId() ;
Float_t ene = Calibrate(digit->GetAmp()) ;
fGeom->AbsToRelNumbering(id, relid) ;
//____________________________________________________________________________
Bool_t AliPHOSClusterizerv1::IsInPpsd(AliPHOSDigit * digit)
{
- // Tells if (true) or not (false) the digit is in a PHOS-EMC module
+ // Tells if (true) or not (false) the digit is in a PHOS-PPSD module
Bool_t rv = kFALSE ;
//____________________________________________________________________________
Bool_t AliPHOSClusterizerv1::IsInCpv(AliPHOSDigit * digit)
{
- // Tells if (true) or not (false) the digit is in a PHOS-EMC module
+ // Tells if (true) or not (false) the digit is in a PHOS-CPV module
Bool_t rv = kFALSE ;
//____________________________________________________________________________
void AliPHOSClusterizerv1::MakeClusters(const DigitsList * dl,
AliPHOSRecPoint::RecPointsList * emcl,
- AliPHOSRecPoint::RecPointsList * ppsdl,
- AliPHOSRecPoint::RecPointsList * cpvl)
+ AliPHOSRecPoint::RecPointsList * ppsdl)
{
// Steering method to construct the clusters stored in a list of Reconstructed Points
// A cluster is defined as a list of neighbour digits
} else {
- // start a new PPSD cluster
+ // start a new PPSD/CPV cluster
if(fNumberOfPpsdClusters >= ppsdl->GetSize()) ppsdl->Expand(2*fNumberOfPpsdClusters+1);
- if(fNumberOfCpvClusters >= cpvl ->GetSize()) cpvl ->Expand(2*fNumberOfCpvClusters +1);
- if (IsInPpsd(digit)) {
+ if (IsInPpsd(digit))
(*ppsdl)[fNumberOfPpsdClusters] = new AliPHOSPpsdRecPoint() ;
- clu = (AliPHOSPpsdRecPoint *) ppsdl->At(fNumberOfPpsdClusters) ;
- fNumberOfPpsdClusters++ ;
- }
- else if (IsInCpv(digit) ) {
- (*cpvl) [fNumberOfCpvClusters] = new AliPHOSCpvRecPoint(fW0CPV, fLocMaxCutCPV) ;
- clu = (AliPHOSCpvRecPoint *) cpvl ->At(fNumberOfCpvClusters) ;
- fNumberOfCpvClusters++ ;
- }
- else {
- cout << "AliPHOSClusterizerv1::MakeClusters: unknown configuration " << fGeom->GetName() << endl;
- assert(0==1);
- }
+ else
+ (*ppsdl)[fNumberOfPpsdClusters] = new AliPHOSCpvRecPoint(fW0CPV, fLocMaxCutCPV) ;
+ clu = (AliPHOSPpsdRecPoint *) ppsdl->At(fNumberOfPpsdClusters) ;
+ fNumberOfPpsdClusters++ ;
+
clu->AddDigit(*digit, Calibrate(digit->GetAmp()) ) ;
clusterdigitslist[iDigitInCluster] = digit ;
iDigitInCluster++ ;
nextdigit.Reset() ;
// Here we remove resting EMC digits, which cannot make cluster
-
+
if( notremoved ) {
while( ( digit = (AliPHOSDigit *)nextdigit() ) ) {
if( IsInEmc(digit) )
} // else
nextdigit.Reset() ;
-
+
AliPHOSDigit * digitN ;
index = 0 ;
while (index < iDigitInCluster){ // scan over digits already in cluster
} // switch
} // while digitN
-
+
endofloop: ;
nextdigit.Reset() ;