ClassImp(TPCSectorData)
AliTPCParam* TPCSectorData::fgParam = 0;
+Float_t TPCSectorData::fgZLength = 0;
Int_t TPCSectorData::fgNAllRows = 0;
Int_t TPCSectorData::fgNAllPads = 0;
Int_t* TPCSectorData::fgRowBegs = 0;
if(fgParam != 0) return;
fgParam = new AliTPCParamSR;
+ fgZLength = fgParam->GetZLength(0)+0.275;
fgNAllRows = fgParam->GetNRowLow() + fgParam->GetNRowUp();
fgNAllPads = 0;
fgRowBegs = new Int_t[fgNAllRows + 1];
/**************************************************************************/
TPCSectorData::TPCSectorData(Int_t sector, Int_t bsize) :
- fSectorID(sector), fNPadsFilled(0),
- fBlockSize(bsize), fBlockPos(0),
- fCurrentRow(0), fCurrentPad(0), fCurrentPos(0),
+ fSectorID(sector), fNPadsFilled(0), fPads(),
+ fBlockSize(bsize), fBlockPos(0), fBlocks(),
+ fCurrentRow(0), fCurrentPad(0), fCurrentPos(0), fCurrentStep(0),
fPadRowHackSet(0)
{
if(fgParam == 0) InitStatics();
Short_t* wpos = beg;
Short_t* rpos = beg;
while(rpos < end) {
- if(rpos[1] > threshold) {
+ if(rpos[1] >= threshold) {
wpos[0] = rpos[0];
wpos[1] = rpos[1];
wpos += 2;
ClassImp(TPCSectorData::SegmentInfo)
-TPCSectorData::SegmentInfo::SegmentInfo()
+TPCSectorData::SegmentInfo::SegmentInfo() :
+ TObject(),
+
+ fPadWidth(0), fPadHeight(0),
+ fRLow(0), fNRows(0), fFirstRow(0), fLastRow(0),
+ fNMaxPads(0),
+ fNYSteps(0)
{
- memset(this, sizeof(SegmentInfo), 0);
+ memset(fYStep, sizeof(fYStep), 0);
}
/**************************************************************************/
// TPCSectorData::PadRowHack
/**************************************************************************/
-#include <set>
-
TPCSectorData::PadRowHack* TPCSectorData::GetPadRowHack(Int_t r, Int_t p)
{
if(fPadRowHackSet == 0) return 0;