TClonesArray *tofDigits = new TClonesArray("AliTOFdigit",10000);
fTree = new TTree();
- Int_t bufsize = 32000;
- //TBranch *branch = fTree->Branch("TOF", &tofDigits, bufsize);
- fTree->Branch("TOF", &tofDigits, bufsize);
+ fTree->Branch("TOF", &tofDigits, 32000);
fTree->GetEntry(0);
TClonesArray * clonesRawData = 0x0;
clonesRawData = (TClonesArray*)stream.GetRawData();
- //if (clonesRawData->GetEntriesFast()) cout << " " << indexDDL << " " << clonesRawData->GetEntriesFast() << endl;
+ if (clonesRawData->GetEntriesFast()) cout << " " << indexDDL << " " << clonesRawData->GetEntriesFast() << endl;
for (Int_t iRawData = 0; iRawData<clonesRawData->GetEntriesFast(); iRawData++) {
fTOFdigitMap->AddDigit(detectorIndex, last);
AliDebug(2,Form(" %3i -> %2i %2i %2i %2i %2i %i %i\n",
- last, detectorIndex[0], detectorIndex[1], detectorIndex[2], detectorIndex[4], detectorIndex[3],
+ last, detectorIndex[0], detectorIndex[1],
+ detectorIndex[2], detectorIndex[4], detectorIndex[3],
digit[1], digit[0]));
- /*AliDebug(2,Form(" %3i -> %2i %2i %2i %2i %2i %i %i\n",
- last, detectorIndex[0], detectorIndex[1], detectorIndex[2], detectorIndex[4], detectorIndex[3],
- digit[1], digit[0]));*/
Int_t tracknum[3]={-1,-1,-1};
new (aDigits[last]) AliTOFdigit(tracknum, detectorIndex, digit);
for (Int_t digitNumber=0; digitNumber<digitsTOF->GetEntries(); digitNumber++) {
- //if (digitNumber==digitsTOF->GetEntries()-1) printf(" Hello 4 -> %3i digit of %i \n", digitNumber+1, digitsTOF->GetEntries());
+ if (digitNumber==digitsTOF->GetEntries()-1)
+ AliDebug(2,Form(" Hello 4 -> %3i digit of %i \n", digitNumber+1, digitsTOF->GetEntries()));
digs = (AliTOFdigit*)digitsTOF->UncheckedAt(digitNumber);
vol[4] = digs->GetPadz(); // Pad Number in z direction (0-1)
fTOFdigitMap->AddDigit(vol, digitNumber);
- //if (digitNumber==digitsTOF->GetEntries()-1) printf(" I am inside LoadDigits %3i \n", digitNumber);
+ if (digitNumber==digitsTOF->GetEntries()-1)
+ AliDebug(2,Form(" I am inside LoadDigits %3i \n", digitNumber));
}
/* ******************************************************* */
void AliEveTOFDigitsInfo::GetDigits(Int_t nSector, Int_t nPlate,
- Int_t nStrip, Int_t nPadZ, Int_t nPadX,
- Int_t indexDigit[3])
+ Int_t nStrip, Int_t nPadZ, Int_t nPadX,
+ Int_t indexDigit[3])
{
Int_t vol[5] = {nSector,nPlate,nStrip,nPadX,nPadZ};
/* ******************************************************* */
TClonesArray* AliEveTOFDigitsInfo::GetDigits(Int_t nSector, Int_t nPlate,
- Int_t nStrip)
+ Int_t nStrip)
{
Int_t newCounter = 0;
fTree->SetBranchAddress("TOF",&digitsTOF);
fTree->GetEntry(0);
-
Int_t vol[5] = {nSector,nPlate,nStrip,-1,-1};
for(Int_t iPadZ=0; iPadZ<fGeom->NpadZ(); iPadZ++){
for(Int_t iPadX=0; iPadX<fGeom->NpadX(); iPadX++) {
vol[3] = iPadX;
- //GetDigits(vol[0], vol[1], vol[2], vol[3], vol[4], nDigitsInVolume)
-
fTOFdigitMap->GetDigitIndex(vol, nDigitsInVolume);
for (Int_t ii=0; ii<3; ii++) {
if (nDigitsInVolume[ii]>=0 ) {
- //AliDebug(2,Form(" nDigitsInVolume[%2i] = %3i\n ", ii, nDigitsInVolume[ii]));
+ AliDebug(2,Form(" nDigitsInVolume[%2i] = %3i\n ", ii, nDigitsInVolume[ii]));
digs = (AliTOFdigit*)digitsTOF->UncheckedAt(nDigitsInVolume[ii]);
informations[0] = digs->GetTdc();
informations[1] = digs->GetAdc();
}
}
- /*
if (digitsTOFnew)
AliDebug(2,Form("Sector %2i Plate %1i Strip %2i -> number of digits %3i \n",
- nSector, nPlate, nStrip, digitsTOFnew->GetEntries()));
- */
+ nSector, nPlate, nStrip, digitsTOFnew->GetEntries()));
+
return digitsTOFnew;
}
new (ldigits[newCounter++]) AliTOFdigit(dummy, vol, informations);
AliDebug(2,Form(" %2i -> %2i %2i %2i %2i %2i %7i %7i\n",
- nDigitsInVolume[ii], vol[0], vol[1], vol[2], vol[4], vol[3],
- informations[1], informations[0]));
+ nDigitsInVolume[ii], vol[0], vol[1], vol[2], vol[4], vol[3],
+ informations[1], informations[0]));
}
}
}
- /*
if (digitsTOFnew)
- AliDebug(Form(("Sector %2i Plate %1i Strip %2i -> number of digits %3i \n",
- nSector, nPlate, nStrip, digitsTOFnew->GetEntries()));
- */
+ AliDebug(2,Form("Sector %2i -> number of digits %3i \n",
+ nSector, digitsTOFnew->GetEntries()));
+
return digitsTOFnew;
}
}
/* ******************************************************* */
+/*
void AliEveTOFDigitsInfo::GetDigits()
{
}
}
+*/