virtual void SetMap(AliITSpList *p){fpList = p;} // Sets fpList, the map.
virtual void ClearMap(){fpList->ClearMap();} // Clear fpList, map.
virtual void SetModuleNumber(Int_t mod){fModule=mod;} // Set Module number
- virtual Int_t GetModuleNumber(){return fModule;}// Gets Module number
+ virtual Int_t GetModuleNumber()const {return fModule;}// Gets Module number
virtual void SetEventNumber(Int_t evnt){fEvent=evnt;} // Set Event number
- virtual Int_t GetEventNumber(){return fEvent;}// Gets Event number
+ virtual Int_t GetEventNumber()const {return fEvent;}// Gets Event number
+ virtual Bool_t GetDebug() const {return fDebug;}
+ virtual void SetDebug(Bool_t db = kTRUE) {fDebug = db;}
protected:
AliITSresponse *fResponse; //! response
AliITSpList *fpList; //!
Int_t fModule; //!
Int_t fEvent; //!
+ Bool_t fDebug; // debug flag
- ClassDef(AliITSsimulation,1) // Simulation base class
+ ClassDef(AliITSsimulation,2) // Simulation base class
};
return;
}
//______________________________________________________________________
-AliITSsimulationSDD::AliITSsimulationSDD(){
+AliITSsimulationSDD::AliITSsimulationSDD() {
// Default constructor
fResponse = 0;
fMaxNofSamples = 0;
fITS = 0;
fTreeB = 0;
+ SetDebug(kFALSE);
Init((AliITSsegmentationSDD*)seg,(AliITSresponseSDD*)resp);
}
// continue if the particle did not lose energy
// passing through detector
if (!depEnergy) {
+ if(GetDebug()){
Warning("HitsToAnalogDigits",
"fTrack = %d hit=%d module=%d This particle has"
" passed without losing energy!",
itrack,ii,mod->GetIndex());
+ }
continue;
} // end if !depEnergy
if(drPath < 0) drPath = -drPath;
drPath = sddLength-drPath;
if(drPath < 0) {
+ if(GetDebug()){ // this should be fixed at geometry level
Warning("HitsToAnalogDigits",
"negative drift path drPath=%e sddLength=%e dxL[0]=%e "
"xL[0]=%e",
drPath,sddLength,dxL[0],xL[0]);
- continue;
+ }
+ continue;
} // end if drPath < 0
// Compute number of segments to brake step path into
driftPath = sddLength-driftPath;
detector = 2*(hitDetector-1) + iWing;
if(driftPath < 0) {
+ if(GetDebug()){ // this should be fixed at geometry level
Warning("HitsToAnalogDigits","negative drift path "
"driftPath=%e sddLength=%e avDrft=%e dxL[0]=%e "
"xL[0]=%e",driftPath,sddLength,avDrft,dxL[0],xL[0]);
+ }
continue;
} // end if driftPath < 0