]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/Alieve/TPCSectorData.cxx
fixed typo in ESDListNames
[u/mrichter/AliRoot.git] / EVE / Alieve / TPCSectorData.cxx
index ca6f67fb8e3f2b30c6a924e44ba74e181a650984..98c6bca742534bff270d5cdbdb7b5f9660ece399 100644 (file)
@@ -26,6 +26,7 @@ using namespace Alieve;
 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;
@@ -43,6 +44,7 @@ void TPCSectorData::InitStatics()
   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];
@@ -152,9 +154,9 @@ void TPCSectorData::NewBlock()
 /**************************************************************************/
 
 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();
@@ -241,7 +243,7 @@ void TPCSectorData::EndPad(Bool_t autoPedestal, Short_t threshold)
     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;
@@ -444,17 +446,21 @@ void TPCSectorData::RowIterator::Test()
 
 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;