#include "AliTPCPRF2D.h"
#include "AliTPCParamSR.h"
#include "AliTPCRF1D.h"
-//#include "AliTPCTrackHits.h"
#include "AliTPCTrackHitsV2.h"
#include "AliTrackReference.h"
#include "AliMC.h"
Stat_t ntracks = tH->GetEntries();
- if( ntracks > 0){
- //-------------------------------------------
- // Only if there are any tracks...
- //-------------------------------------------
TObjArray **row;
delete [] row; // delete the array of pointers to TObjArray-s
- } // ntracks >0
} // end of Hits2DigitsSector
//-----------------------------------------------------------------
Float_t zerosup = fTPCParam->GetZeroSup();
+ AliTPCCalPad * gainTPC = AliTPCcalibDB::Instance()->GetDedxGainFactor();
+ AliTPCCalPad * noiseTPC = AliTPCcalibDB::Instance()->GetPadNoise();
+ AliTPCCalROC * gainROC = gainTPC->GetCalROC(isec); // pad gains per given sector
+ AliTPCCalROC * noiseROC = noiseTPC->GetCalROC(isec); // noise per given sector
+
fCurrentIndex[1]= isec;
for(Int_t ip=0;ip<nofPads;ip++){
gi++;
Float_t q=total(ip,it);
- if(fDigitsSwitch == 0){
- q+=GetNoise();
+ if(fDigitsSwitch == 0){
+ Float_t gain = gainROC->GetValue(irow,ip); // get gain for given - pad-row pad
+ Float_t noisePad = noiseROC->GetValue(irow,ip);
+ //
+ q*=gain;
+ q+=GetNoise()*noisePad;
if(q <=fzerosup) continue; // do not fill zeros
q = TMath::Nint(q);
if(q >= fTPCParam->GetADCSat()) q = fTPCParam->GetADCSat() - 1; // saturation
} // end of loop over time buckets
} // end of lop over pads
+ //
+ // test
+ //
+ //
+ // glitch filters if normal simulated digits
+ //
+ if(!fDigitsSwitch) ((AliSimDigits*)dig)->GlitchFilter();
//
// This row has been digitized, delete nonused stuff
//