code cleanup, get rid of compilation warning (Kenneth)
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 Jul 2008 13:00:47 +0000 (13:00 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 Jul 2008 13:00:47 +0000 (13:00 +0000)
HLT/TPCLib/AliHLTTPCPad.cxx
HLT/TPCLib/AliHLTTPCPad.h
HLT/TPCLib/AliHLTTPCZeroSuppressionComponent.cxx

index f4879cf451a6024890a10d61fbc16c951fae9cf0..6e3a5a154bb4d54cce3601d7e4def8ff89ef0dcc 100644 (file)
@@ -507,19 +507,8 @@ void AliHLTTPCPad::SetDataSignal(Int_t bin,Int_t signal)
   fSizeOfSignalPositionArray++;
 }
 
-Bool_t AliHLTTPCPad::GetNextGoodSignal(Int_t &time, Int_t &signal){
-  if(fNGoodSignalsSent<fSizeOfSignalPositionArray&&fSizeOfSignalPositionArray>0){
-    time = fSignalPositionArray[fNGoodSignalsSent];
-    signal = GetDataSignal(time);
-
-    fNGoodSignalsSent++;
-    return kTRUE;
-  }
-  return kFALSE;
-}
+Bool_t AliHLTTPCPad::GetNextGoodSignal(Int_t &time,Int_t &bunchSize){
 
-Bool_t AliHLTTPCPad::GetNextGoodSignal(Int_t &time,Int_t &bunchSize,Int_t dummy){
-  dummy=0;//to get rid of warning until things are cleaned up better
   if(fNGoodSignalsSent<fSizeOfSignalPositionArray&&fSizeOfSignalPositionArray>0){
     time = fSignalPositionArray[fNGoodSignalsSent];
     bunchSize=1;
index bc52eb781f2f2c9826b4130e088be58d96014dbd..f0712201a21152d6ed4962a859b4843acbda6afa 100644 (file)
@@ -299,21 +299,13 @@ public:
    */
   void ZeroSuppress(Double_t nRMS,Int_t threshold,Int_t reqMinPoint,Int_t beginTime,Int_t endTime,Int_t timebinsLeft, Int_t timebinsRight, Int_t valueBelowAverage);
   
-  /**
-   * Returns the next signal which survived the ZeroSuppression 
-   * @param time            Refernence to timebin number
-   * @param signal          Refernence to signal
-   * @return                True if there are more signals
-  */
-  Bool_t GetNextGoodSignal(Int_t &time,Int_t &signal);
-
   /**
    * Bool method which returns the timein number of the first signal and number of consecutive signals, used together with GetPointer(bin) to access data 
    * @param time            Refernence to timebin number
    * @param bunchSize       Refernence to number of consecutive signals
    * @return                True if there are more signals
   */
-  Bool_t GetNextGoodSignal(Int_t &time,Int_t &bunchSize,Int_t dummy);
+  Bool_t GetNextGoodSignal(Int_t &time,Int_t &bunchSize);
 
   /**
    * Returns number of signals added
index 63a1c587180c5924a442b2e0ba3357218989abb4..4edfad8c1b56260ecdb7a4531dabf9af9a784948 100755 (executable)
@@ -438,7 +438,7 @@ int AliHLTTPCZeroSuppressionComponent::DoEvent( const AliHLTComponentEventData&
        Int_t currentTime=0;
        Int_t bunchSize=0;
        if(zeroSuppressedPad->GetNAddedSignals()>0){
-         while(zeroSuppressedPad->GetNextGoodSignal(currentTime, bunchSize,0)){
+         while(zeroSuppressedPad->GetNextGoodSignal(currentTime, bunchSize)){
            for(Int_t i=0;i<bunchSize;i++){
              altroEncoder.AddSignal(zeroSuppressedPad->GetDataSignal(currentTime+i), currentTime+i);
            }