#include "AliITSsegmentationSDD.h"
#include "TArrayI.h"
-class AliITSMapSDD;
+class AliITSCorrMapSDD;
class AliITSDriftSpeedArraySDD;
///////////////////////////////////////////////////////
virtual Bool_t IsChipBad(Int_t nChip) const {
return fIsChipBad[nChip];
}
+ virtual Bool_t IsWingBad(Int_t nwing) const
+ {
+ if(nwing<0 || nwing>1) return kFALSE;
+ if(IsChipBad(nwing*4) && IsChipBad(nwing*4+1) && IsChipBad(nwing*4+2) && IsChipBad(nwing*4+3)) return kTRUE;
+ return kFALSE;
+ }
+
Int_t Wings()const{return fgkWings;}//Total number of SDD wings
Int_t Chips() const{return fgkChips;} // Number of chips/module
Int_t Channels() const{ return fgkChannels;}//Number of channels/chip
if(i<256) return fMapAW0->GetCellContent(i,j);
else return fMapAW1->GetCellContent(i-256,j);
}
- virtual void SetMapA(Int_t wing,AliITSMapSDD* mapA) {
+ virtual void SetMapA(Int_t wing,AliITSCorrMapSDD* mapA) {
if(wing==0) fMapAW0=mapA;
else fMapAW1=mapA;
}
if(i<256) return fMapTW0->GetCellContent(i,j);
else return fMapTW1->GetCellContent(i-256,j);
}
- virtual void SetMapT(Int_t wing,AliITSMapSDD* mapT) {
+ virtual void SetMapT(Int_t wing,AliITSCorrMapSDD* mapT) {
if(wing==0) fMapTW0=mapT;
else fMapTW1=mapT;
}
virtual void SetZeroSupp(Bool_t opt=kTRUE) {fZeroSupp=opt;}
virtual Bool_t GetZeroSupp() const {return fZeroSupp;}
+ virtual void SetAMAt40MHz() {fAMAt20MHz=kFALSE;}
virtual void SetAMAt20MHz() {fAMAt20MHz=kTRUE;}
virtual Bool_t IsAMAt20MHz() const {return fAMAt20MHz;}
void GetCorrections(Float_t z, Float_t x, Float_t &devz, Float_t &devx, AliITSsegmentationSDD* seg);
- virtual Float_t GetThresholdAnode(Int_t anode,Int_t nsigma=3) const {
+ void GetShiftsForSimulation(Float_t z, Float_t x, Float_t &devz, Float_t &devx, AliITSsegmentationSDD* seg);
+ virtual Float_t GetThresholdAnode(Int_t anode, Double_t nsigma=2.2) const {
return nsigma*fNoiseAfterEl[anode];}
TArrayI fBadChannels; //Array with bad anodes number (0-512)
- AliITSMapSDD* fMapAW0; //! map of residuals on anode coord. wing 0
- AliITSMapSDD* fMapAW1; //! map of residuals on anode coord. wing 1
- AliITSMapSDD* fMapTW0; //! map of residuals on time coord. wing 0
- AliITSMapSDD* fMapTW1; //! map of residuals on time coord. wing 1
+ AliITSCorrMapSDD* fMapAW0; //! map of residuals on anode coord. wing 0
+ AliITSCorrMapSDD* fMapAW1; //! map of residuals on anode coord. wing 1
+ AliITSCorrMapSDD* fMapTW0; //! map of residuals on time coord. wing 0
+ AliITSCorrMapSDD* fMapTW1; //! map of residuals on time coord. wing 1
AliITSDriftSpeedArraySDD* fDrSpeed0; //! drift speed for wing 0
AliITSDriftSpeedArraySDD* fDrSpeed1; //! drift speed for wing 1