#ifndef ALIITSSIMULATION_H #define ALIITSSIMULATION_H /************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ /* $Id$ */ #include class AliITSresponse; class AliITSsegmentation; class AliITSmodule; class TRandom; class AliITSpList; class TClonesArray; // This is the base class for ITS detector signal simulations. Data members // include are a pointer to the detectors specific response and segmentation // classes. See the detector specific implementations for the propper code. class AliITSsimulation : public TObject { public: AliITSsimulation(); // Default constructor virtual ~AliITSsimulation(); // destructor // copy constructor. See detector specific implementation. AliITSsimulation(const AliITSsimulation &source); // Assignment opporator. See detector specific implementation. virtual AliITSsimulation& operator=(const AliITSsimulation &source); // ***************** Hits -> SDigits ****************** // digitize module using the "slow" detector simulator creating // summable digits. virtual void SDigitiseModule(AliITSmodule *mod,Int_t module,Int_t event){;} // ***************** sum of SDigits -> Digits ********** // Reset module arrays (maps), etc virtual void InitSimulationModule( Int_t module, Int_t event ){;} // add (sum) a new list of summable digits to module, // add an offset (mask) to the track numbers. Returns kTRUE if there // is a "good" signal in this module. virtual Bool_t AddSDigitsToModule( TClonesArray *pItemArray, Int_t mask ); // digitize module using the "slow" detector simulator from // the sum of summable digits. virtual void FinishSDigitiseModule(){;} // **************** Hits -> Digits ********************* // digitize module using the "slow" detector simulator creating digits. virtual void DigitiseModule(AliITSmodule *mod,Int_t module,Int_t event) {;} // digitizes module using the "fast" detector simulator. virtual void CreateFastRecPoints(AliITSmodule *mod,Int_t module, TRandom *rndm) {} // Return pointer to Response model virtual AliITSresponse* GetResponseModel(){return fResponse;} // set pointer to Response model virtual void SetResponseModel(AliITSresponse *res){fResponse = res;} // Return pointer to Response model virtual AliITSsegmentation* GetSegmentationModel(){return fSegmentation;} // set pointer to Response model virtual void SetSegmentationModel(AliITSsegmentation *seg){ fSegmentation = seg;} protected: AliITSresponse *fResponse; //! response AliITSsegmentation *fSegmentation; //! segmentation AliITSpList *fpList; //! Int_t fModule; //! Int_t fEvent; //! ClassDef(AliITSsimulation,1) // Simulation base class }; #endif