ClassImp(AliSimDigits)
AliSimDigits::AliSimDigits()
+ :AliDigits(),
+ fTracks(0),
+ fTrIndex(0),
+ fNlevel(0),
+ fTrBufType(0)
{
// AliDigits::Invalite();
- fTracks = 0;
- fTrIndex = 0;
+
InvalidateTrack();
}
+//
+AliSimDigits::AliSimDigits(const AliSimDigits ¶m)
+ :AliDigits(),
+ fTracks(0),
+ fTrIndex(0),
+ fNlevel(0),
+ fTrBufType(0)
+{
+ //
+ // dummy
+ //
+ fTrIndex = param.fTrIndex;
+}
+//
AliSimDigits::~AliSimDigits()
{
}
}
+AliSimDigits & AliSimDigits::operator =(const AliSimDigits & param)
+{
+ //
+ // assignment operator - dummy
+ //
+ fTrIndex=param.fTrIndex;
+ return (*this);
+}
+//__________________________________________________________________
void AliSimDigits::InvalidateTrack()
{
//
}
return digits;
}
+void AliSimDigits::GlitchFilter(){
+ //
+ // glitch filter, optionally
+ //
+
+ for (Int_t i=0;i<fNcols;i++){ //pads
+ for(Int_t j=1;j<fNrows-1;j++){ //time bins
+ // first and last time bins are checked separately
+ if(GetDigitFast(j,i)){// nonzero digit
+ if (!GetDigitFast(j-1,i) && !GetDigitFast(j+1,i)) {
+ SetDigitFast(0,j,i);
+ SetTrackIDFast(-2,j,i,0);
+ SetTrackIDFast(-2,j,i,1);
+ SetTrackIDFast(-2,j,i,2);
+ }
+ }
+ }//time
+
+ if(GetDigitFast(0,i) && !GetDigitFast(1,i)) {
+ SetDigitFast(0,0,i);
+ SetTrackIDFast(-2,0,i,0);
+ SetTrackIDFast(-2,0,i,1);
+ SetTrackIDFast(-2,0,i,2);
+ }
+ if(GetDigitFast(fNrows-1,i) && !GetDigitFast(fNrows-2,i)){
+ SetDigitFast(0,fNrows-1,i);
+ SetTrackIDFast(-2,fNrows-1,i,0);
+ SetTrackIDFast(-2,fNrows-1,i,1);
+ SetTrackIDFast(-2,fNrows-1,i,2);
+ }
+ }//pads
+
+}