*/
}
/* ******************************************************* */
-void AliEveTOFDigitsInfo::ReadRaw(AliRawReader* rawReader, Int_t nEvent, Bool_t newDecoder)
+void AliEveTOFDigitsInfo::ReadRaw(AliRawReader* rawReader, Bool_t newDecoder)
{
// Read raw-data. AliTOFdigit is used to
// store raw-adata for all sub-detectors.
//ftxt << endl;
//ftxt << " " << nEvent << endl;
- if (nEvent<0) printf("%3i\n", nEvent); // only to use nEvent variable
+ //if (nEvent<0) printf("%3i\n", nEvent); // only to use nEvent variable
const Int_t kDDL = AliDAQ::NumberOfDdls("TOF");
AliTOFrawData *tofRawDatum = (AliTOFrawData*)clonesRawData->UncheckedAt(iRawData);
- if (tofRawDatum->GetTOT()==-1 || tofRawDatum->GetTOF()==-1) continue;
+ if (tofRawDatum->GetTOF()==-1) continue;
Int_t cLenInt = Int_t(cableLength->GetCableTimeShift(indexDDL, tofRawDatum->GetTRM(), tofRawDatum->GetTRMchain(),tofRawDatum->GetTDC())*1000./AliTOFGeometry::TdcBinWidth());
digit[0] = tofRawDatum->GetTOF() - cLenInt;
else ftxt << " " << tofRawDatum->GetTDC();
ftxt << " " << tofRawDatum->GetTDCchannel();
*/
+
stream.EquipmentId2VolumeId(indexDDL, tofRawDatum->GetTRM(), tofRawDatum->GetTRMchain(),
tofRawDatum->GetTDC(), tofRawDatum->GetTDCchannel(), detectorIndex);
informations[1] = digs->GetAdc();
informations[2] = digs->GetToT();
informations[3] = digs->GetTdcND();
+ for(Int_t kk=0; kk<3; kk++) dummy[kk] = digs->GetTrack(kk);
new (ldigits[newCounter++]) AliTOFdigit(dummy, vol, informations);
}
informations[1] = digs->GetAdc();
informations[2] = digs->GetToT();
informations[3] = digs->GetTdcND();
+ for(Int_t kk=0; kk<3; kk++) dummy[kk] = digs->GetTrack(kk);
new (ldigits[newCounter++]) AliTOFdigit(dummy, vol, informations);
AliDebug(2,Form(" %2i -> %2i %2i %2i %2i %2i %7i %7i\n",
virtual ~AliEveTOFDigitsInfo();
void SetTree(TTree* tree);
- void ReadRaw(AliRawReader* rawReader, Int_t nEvent, Bool_t newDecoder=kTRUE);
+ void ReadRaw(AliRawReader* rawReader, Bool_t newDecoder=kTRUE);
void LoadDigits();
void GetDigits(Int_t nSector, Int_t nPlate, Int_t nStrip,
TTree* GetTree() {return fTree;};
+ AliTOFDigitMap* GetTOFdigitMap() const { return fTOFdigitMap;};
+
protected:
AliEveTOFDigitsInfo(const AliEveTOFDigitsInfo&); // Not implemented
//fgTOFsectorPalette = new TEveRGBAPalette(0, 2048); // TOT
//fgTOFsectorPalette->SetLimits(0, 2048);
- fgTOFsectorPalette = new TEveRGBAPalette(0, 8192); // TDC
- //fgTOFsectorPalette->SetLimits(0, 8192);
- fgTOFsectorPalette->SetOverflowAction(0);
+ //fgTOFsectorPalette = new TEveRGBAPalette(0, 8192); // TDC
+ fgTOFsectorPalette = new TEveRGBAPalette(0, 100000); // TDC
+ fgTOFsectorPalette->SetOverflowAction(2);
+ fgTOFsectorPalette->SetUnderflowAction(2);
fgStaticInitDone = kTRUE;
}
fgTOFstripFrameBox->SetFrameColor((Color_t) 32);//31);
//fgTOFstripPalette = new TEveRGBAPalette(0, 2048); // TOT
- fgTOFstripPalette = new TEveRGBAPalette(0, 8192); // TDC
- fgTOFstripPalette->SetOverflowAction(0);
+ //fgTOFstripPalette = new TEveRGBAPalette(0, 192); // TDC
+ fgTOFstripPalette = new TEveRGBAPalette(0, 100000); // TDC
+ fgTOFstripPalette->SetOverflowAction(2);
+ fgTOFstripPalette->SetUnderflowAction(2);
fgStaticInitDone = kTRUE;
}