// Pedestal Subtraction
Int_t pedmeanrms =
fCalibPed->GetPedMeanRms(idet,ismn,irow,icol);
- Int_t pedrms1 = (Int_t) pedmeanrms%1000;
+ Int_t pedrms1 = (Int_t) pedmeanrms%100;
Float_t pedrms = (Float_t)pedrms1/10.;
Float_t pedmean = (Float_t) (pedmeanrms - pedrms1)/1000.0;
Float_t isig = isig1 - (pedmean + 3.0*pedrms);
// Pedestal Subtraction
Int_t pedmeanrms = fCalibPed->GetPedMeanRms(det,smn,xpos,ypos);
- Int_t pedrms1 = (Int_t) pedmeanrms%1000;
+ Int_t pedrms1 = (Int_t) pedmeanrms%100;
Float_t pedrms = (Float_t)pedrms1/10.;
Float_t pedmean = (Float_t) (pedmeanrms - pedrms1)/1000.0;
//printf("%f %f\n",pedmean, pedrms);
// Pedestal Subtraction
Int_t pedmeanrms = fCalibPed->GetPedMeanRms(det,smn,row,col);
- Int_t pedrms1 = (Int_t) pedmeanrms%1000;
+ Int_t pedrms1 = (Int_t) pedmeanrms%100;
Float_t pedrms = (Float_t)pedrms1/10.;
Float_t pedmean = (Float_t) (pedmeanrms - pedrms1)/1000.0;
}
// Pedestal Subtraction
Int_t pedmeanrms = fCalibPed->GetPedMeanRms(det,smn,row,col);
- Int_t pedrms1 = (Int_t) pedmeanrms%1000;
+ Int_t pedrms1 = (Int_t) pedmeanrms%100;
Float_t pedrms = (Float_t)pedrms1/10.;
Float_t pedmean = (Float_t) (pedmeanrms - pedrms1)/1000.0;
Int_t Ncell=1;
for (Int_t ii = 0; ii < cellCount[kcl]; ii++)
{
- Float_t xx = x[cellXY[ii][kcl]];
- Float_t yy = y[cellXY[ii][kcl]];
-
- rr=Distance(xclust[kcl],yclust[kcl],xx,yy);
- // Natasha
- // We store only the nearest and nest-nearest neighbours
- if(rr<2.2)
+ if(ii<18)
{
clxy[Ncell] = t[cellXY[ii][kcl]];
Ncell++;
// Pedestal Decalibration
Int_t pedmeanrms =
fCalibPed->GetPedMeanRms(idet,ism,jrow,kcol);
- Int_t pedrms1 = (Int_t) pedmeanrms%1000;
+ Int_t pedrms1 = (Int_t) pedmeanrms%100;
Float_t pedrms = (Float_t)pedrms1/10.;
Float_t pedmean =
(Float_t) (pedmeanrms - pedrms1)/1000.0;
- //printf("%f %f\n",pedmean, pedrms);
if (adc > 0.)
{
adc += (pedmean + 3.0*pedrms);
}
// Pedestal Decalibration
Int_t pedmeanrms = fCalibPed->GetPedMeanRms(det,smn,irow,icol);
- Int_t pedrms1 = (Int_t) pedmeanrms%1000;
+ Int_t pedrms1 = (Int_t) pedmeanrms%100;
Float_t pedrms = (Float_t)pedrms1/10.;
Float_t pedmean = (Float_t) (pedmeanrms - pedrms1)/1000.0;
- //printf("%f %f\n",pedmean, pedrms);
-
if(adc > 0.)
{
adc += (pedmean + 3.0*pedrms);
// Pedestal Decalibration
Int_t pedmeanrms =
fCalibPed->GetPedMeanRms(idet,ism,jrow,kcol);
- Int_t pedrms1 = (Int_t) pedmeanrms%1000;
+ Int_t pedrms1 = (Int_t) pedmeanrms%100;
Float_t pedrms = (Float_t)pedrms1/10.;
Float_t pedmean =
(Float_t) (pedmeanrms - pedrms1)/1000.0;
- //printf("%f %f\n",pedmean, pedrms);
if (adc > 0.)
{
adc += (pedmean + 3.0*pedrms);
{
fClusData[i] = 0.;
}
- for (Int_t i = 0; i < 15; i++)
+ for (Int_t i = 0; i < 19; i++)
{
fClusCellDataX[i] = 0;
fClusCellDataY[i] = 0;
{
fClusData[i] = clusdata[i];
}
- for (Int_t i = 0; i < 15; i++)
+ for (Int_t i = 0; i < 19; i++)
{
fClusCellDataX[i] = celldataX[i];
fClusCellDataY[i] = celldataY[i];
{
this->fClusData[i] = pmdcluster.fClusData[i];
}
- for(Int_t i=0; i<15; i++)
+ for(Int_t i=0; i<19; i++)
{
this->fClusCellDataX[i] = pmdcluster.fClusCellDataX[i];
this->fClusCellDataY[i] = pmdcluster.fClusCellDataY[i];
{
this->fClusData[i] = pmdcluster.fClusData[i];
}
- for(Int_t i=0; i<15; i++)
+ for(Int_t i=0; i<19; i++)
{
this->fClusCellDataX[i] = pmdcluster.fClusCellDataX[i];
this->fClusCellDataY[i] = pmdcluster.fClusCellDataY[i];
Int_t fDet; // Detector No (0:PRE, 1:CPV)
Int_t fSMN; // Serial Module No.
- Int_t fClusCellDataX[15]; // Array containing cell X
- Int_t fClusCellDataY[15]; // Array containing cell Y
+ Int_t fClusCellDataX[19]; // Array containing cell X
+ Int_t fClusCellDataY[19]; // Array containing cell Y
Float_t fClusData[6]; // Array containing cluster information
/*
fDet : Det (0:PRE, 1:CPV), fSMN : SerialModuleNo