#include "AliPMDcluster.h"
#include "AliPMDrecpoint1.h"
#include "AliPMDrechit.h"
-#include "AliPMDisocell.h"
#include "AliPMDRawStream.h"
#include "AliPMDCalibData.h"
#include "AliPMDPedestal.h"
Int_t idet;
Float_t clusdata[6];
- AliPMDisocell *pmdiso = 0x0;
-
TObjArray *pmdcont = new TObjArray();
- TObjArray *pmdisocell = new TObjArray();
AliPMDClustering *pmdclust = new AliPMDClusteringV1();
// fEcut = fRecoParam->GetCosmicParam()->GetNoiseCut(imod);
pmdclust->SetEdepCut(fEcut);
-
-
- pmdclust->DoClust(idet,ismn,fCellTrack,fCellPid,fCellADC,
- pmdisocell,pmdcont);
+ pmdclust->DoClust(idet,ismn,fCellTrack,fCellPid,fCellADC,pmdcont);
Int_t nentries1 = pmdcont->GetEntries();
}
pmdcont->Delete();
- // Added single isolated cell for offline gain calibration
- nentries1 = pmdisocell->GetEntries();
- AliDebug(1,Form("Total number of isolated single cell clusters = %d",nentries1));
-
- for (Int_t ient1 = 0; ient1 < nentries1; ient1++)
- {
- pmdiso = (AliPMDisocell*)pmdisocell->UncheckedAt(ient1);
- idet = pmdiso->GetDetector();
- ismn = pmdiso->GetSmn();
- clusdata[0] = (Float_t) pmdiso->GetRow();
- clusdata[1] = (Float_t) pmdiso->GetCol();
- clusdata[2] = pmdiso->GetADC();
- clusdata[3] = 1.;
- clusdata[4] = -99.;
- clusdata[5] = -99.;
-
- AddRecPoint(idet,ismn,clusdata);
- }
- pmdisocell->Delete();
-
branch1->Fill();
ResetRecpoint();
// delete the pointers
delete pmdclust;
delete pmdcont;
- delete pmdisocell;
-
}
// ------------------------------------------------------------------------- //
Float_t clusdata[6];
AliPMDcluster *pmdcl = 0x0;
- AliPMDisocell *pmdiso = 0x0;
TObjArray *pmdcont = new TObjArray();
- TObjArray *pmdisocell = new TObjArray();
+
AliPMDClustering *pmdclust = new AliPMDClusteringV1();
// Fetch the reco param object
pmdclust->SetEdepCut(fEcut);
-
- pmdclust->DoClust(idet,ismn,fCellTrack,fCellPid,fCellADC,
- pmdisocell,pmdcont);
+ pmdclust->DoClust(idet,ismn,fCellTrack,fCellPid,fCellADC,pmdcont);
Int_t nentries1 = pmdcont->GetEntries();
AddRecPoint(idet,ismn,clusdata);
Int_t ncell = (Int_t) clusdata[3];
+ if (ncell > 19) ncell = 19;
for(Int_t ihit = 0; ihit < ncell; ihit++)
{
Int_t celldataX = pmdcl->GetClusCellX(ihit);
}
pmdcont->Delete();
- // Added single isolated cell for offline gain calibration
- nentries1 = pmdisocell->GetEntries();
- AliDebug(1,Form("Total number of isolated single cell clusters = %d",nentries1));
-
- for (Int_t ient1 = 0; ient1 < nentries1; ient1++)
- {
- pmdiso = (AliPMDisocell*)pmdisocell->UncheckedAt(ient1);
- idet = pmdiso->GetDetector();
- ismn = pmdiso->GetSmn();
- clusdata[0] = (Float_t) pmdiso->GetRow();
- clusdata[1] = (Float_t) pmdiso->GetCol();
- clusdata[2] = pmdiso->GetADC();
- clusdata[3] = 1.;
- clusdata[4] = -99.;
- clusdata[5] = -99.;
-
- AddRecPoint(idet,ismn,clusdata);
- }
- pmdisocell->Delete();
-
branch1->Fill();
ResetRecpoint();
// delete the pointers
delete pmdclust;
delete pmdcont;
- delete pmdisocell;
}
// ------------------------------------------------------------------------- //
AliPMDddldata *pmdddl = 0x0;
AliPMDcluster *pmdcl = 0x0;
- AliPMDisocell *pmdiso = 0x0;
-
Float_t clusdata[6];
TObjArray pmdddlcont;
TObjArray *pmdcont = new TObjArray();
- TObjArray *pmdisocell = new TObjArray();
AliPMDClustering *pmdclust = new AliPMDClusteringV1();
pmdclust->SetEdepCut(fEcut);
-
- pmdclust->DoClust(idet,ismn,fCellTrack,fCellPid,fCellADC,
- pmdisocell,pmdcont);
+ pmdclust->DoClust(idet,ismn,fCellTrack,fCellPid,fCellADC,pmdcont);
Int_t nentries1 = pmdcont->GetEntries();
AddRecPoint(idet,ismn,clusdata);
Int_t ncell = (Int_t) clusdata[3];
+ if (ncell > 19) ncell = 19;
for(Int_t ihit = 0; ihit < ncell; ihit++)
{
Int_t celldataX = pmdcl->GetClusCellX(ihit);
}
pmdcont->Delete();
-
- // Added single isolated cell for offline gain calibration
- nentries1 = pmdisocell->GetEntries();
- AliDebug(1,Form("Total number of isolated single cell clusters = %d",nentries1));
-
- for (Int_t ient1 = 0; ient1 < nentries1; ient1++)
- {
- pmdiso = (AliPMDisocell*)pmdisocell->UncheckedAt(ient1);
- idet = pmdiso->GetDetector();
- ismn = pmdiso->GetSmn();
- clusdata[0] = (Float_t) pmdiso->GetRow();
- clusdata[1] = (Float_t) pmdiso->GetCol();
- clusdata[2] = pmdiso->GetADC();
- clusdata[3] = 1.;
- clusdata[4] = -99.;
- clusdata[5] = -99.;
-
- AddRecPoint(idet,ismn,clusdata);
- }
- pmdisocell->Delete();
-
branch1->Fill();
ResetRecpoint();
// delete the pointers
delete pmdclust;
delete pmdcont;
- delete pmdisocell;
-
}
// ------------------------------------------------------------------------- //
TObjArray pmdddlcont;
AliPMDcluster *pmdcl = 0x0;
- AliPMDisocell *pmdiso = 0x0;
-
TObjArray *pmdcont = new TObjArray();
- TObjArray *pmdisocell = new TObjArray();
AliPMDClustering *pmdclust = new AliPMDClusteringV1();
}
}
ResetCellADC();
-
Int_t indexsmn = 0;
Int_t ientries = pmdddlcont.GetEntries();
pmdclust->SetEdepCut(fEcut);
- pmdclust->DoClust(idet,ismn,fCellTrack,fCellPid,fCellADC,
- pmdisocell,pmdcont);
+ pmdclust->DoClust(idet,ismn,fCellTrack,fCellPid,fCellADC,pmdcont);
Int_t nentries1 = pmdcont->GetEntries();
}
pmdcont->Delete();
- // Added single isolated cell for offline gain calibration
- nentries1 = pmdisocell->GetEntries();
- AliDebug(1,Form("Total number of isolated single cell clusters = %d",nentries1));
-
- for (Int_t ient1 = 0; ient1 < nentries1; ient1++)
- {
- pmdiso = (AliPMDisocell*)pmdisocell->UncheckedAt(ient1);
- idet = pmdiso->GetDetector();
- ismn = pmdiso->GetSmn();
- clusdata[0] = (Float_t) pmdiso->GetRow();
- clusdata[1] = (Float_t) pmdiso->GetCol();
- clusdata[2] = pmdiso->GetADC();
- clusdata[3] = 1.;
- clusdata[4] = -99.;
- clusdata[5] = -99.;
-
- AddRecPoint(idet,ismn,clusdata);
- }
- pmdisocell->Delete();
-
branch1->Fill();
ResetRecpoint();
// delete the pointers
delete pmdclust;
delete pmdcont;
- delete pmdisocell;
}
// ------------------------------------------------------------------------- //
void AliPMDClusterFinder::SetCellEdepCut(Float_t ecut)