#include <TObjArray.h> // used in inline function GetModule.
#include <TBranch.h> // used in inline function SetHitsAddressBranch
#include <TObjArray.h> // used in inline function GetModule.
#include <TBranch.h> // used in inline function SetHitsAddressBranch
AliITS(const AliITS &source); // copy constructor. Not to be used!
AliITS& operator=(AliITS &source); // = operator. Not to be used!
virtual Int_t IsVersion() const {return 1;}
AliITS(const AliITS &source); // copy constructor. Not to be used!
AliITS& operator=(AliITS &source); // = operator. Not to be used!
virtual Int_t IsVersion() const {return 1;}
//===================== Simulation Geometry ========================
// get geometry version - detailed (major) or coarse (minor)
//===================== Simulation Geometry ========================
// get geometry version - detailed (major) or coarse (minor)
// For a given branch from the treeH sets the TClonesArray address.
virtual void SetHitsAddressBranch(TBranch *b) {b->SetAddress(&fHits);}
// Return pointer to DetType #id
// For a given branch from the treeH sets the TClonesArray address.
virtual void SetHitsAddressBranch(TBranch *b) {b->SetAddress(&fHits);}
// Return pointer to DetType #id
//Int_t NDetTypes() {return fNDetTypes;}
//---------- Configuration Methods (per detector type) -------------
// Determines which ITS subdetectors will be processed. Effects
//Int_t NDetTypes() {return fNDetTypes;}
//---------- Configuration Methods (per detector type) -------------
// Determines which ITS subdetectors will be processed. Effects
// Returns the list of ITS subdetectors that will be processed.
Option_t* GetDetectors(){return fOpt;}
// Set response
// Returns the list of ITS subdetectors that will be processed.
Option_t* GetDetectors(){return fOpt;}
// Set response
- virtual void SetResponseModel(Int_t id, AliITSresponse *response);
+ virtual void SetResponseModel(Int_t id, AliITSresponse *response){
+ ((AliITSDetType*) fDetTypes->At(id))->ResponseModel(response);};
- virtual void SetSegmentationModel(Int_t id, AliITSsegmentation *seg);
+ virtual void SetSegmentationModel(Int_t id, AliITSsegmentation *seg){
+ ((AliITSDetType*) fDetTypes->At(id))->SegmentationModel(seg);};
// Set simulation - temporary
virtual AliITSsimulation* GetSimulationModel(Int_t id){
return ((AliITSDetType*)(fDetTypes->At(id)))->GetSimulationModel();}
// Set reconstruction
// Set simulation - temporary
virtual AliITSsimulation* GetSimulationModel(Int_t id){
return ((AliITSDetType*)(fDetTypes->At(id)))->GetSimulationModel();}
// Set reconstruction
- virtual void SetReconstructionModel(Int_t id, AliITSClusterFinder *rec);
+ virtual void SetReconstructionModel(Int_t id, AliITSClusterFinder *rec){
+ ((AliITSDetType*) fDetTypes->At(id))->ReconstructionModel(rec);};
- virtual void SetClasses(Int_t id, const char *digit, const char *cluster);
+ virtual void SetClasses(Int_t id, const char *digit, const char *cluster){
+ ((AliITSDetType*) fDetTypes->At(id))->ClassNames(digit,cluster);};
//=================== Hits =========================================
virtual void StepManager() {} // See Step Manager for specific geometry.
//=================== Hits =========================================
virtual void StepManager() {} // See Step Manager for specific geometry.
virtual void FillModules(TTree *treeH, Int_t mask = 0);
virtual void FillModules(Int_t evnt,Int_t bgrev,Int_t nmodules,
Option_t *opt, const char *filename);
virtual void FillModules(TTree *treeH, Int_t mask = 0);
virtual void FillModules(Int_t evnt,Int_t bgrev,Int_t nmodules,
Option_t *opt, const char *filename);
//===================== Digitisation ===============================
void MakeBranchS(const char *file);
//===================== Digitisation ===============================
void MakeBranchS(const char *file);
MakeBranchInTreeD(GetLoader()->TreeD(),file);}
void SetTreeAddressD(TTree *treeD);
void Hits2SDigits(); // Turn hits into SDigits
MakeBranchInTreeD(GetLoader()->TreeD(),file);}
void SetTreeAddressD(TTree *treeD);
void Hits2SDigits(); // Turn hits into SDigits
AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
void SDigits2Digits(){SDigitsToDigits("All");} // Turn SDigits to Digits
void SDigitsToDigits(Option_t *opt="All"); // Turn SDigits to Digits
AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
void SDigits2Digits(){SDigitsToDigits("All");} // Turn SDigits to Digits
void SDigitsToDigits(Option_t *opt="All"); // Turn SDigits to Digits
//------------------ Internal functions ----------------------------
// Standard Hits To SDigits function
void HitsToSDigits(Int_t evNumber,Int_t bgrev,Int_t size,
//------------------ Internal functions ----------------------------
// Standard Hits To SDigits function
void HitsToSDigits(Int_t evNumber,Int_t bgrev,Int_t size,
- Option_t *add, Option_t *det, const char *filename);
+ Option_t *add, Option_t *det, const char *filename)
+ {HitsToPreDigits(evNumber,bgrev,size,add,det,filename);};
// Standard Hits To SDigits function
void HitsToPreDigits(Int_t evNumber,Int_t bgrev,Int_t size,
Option_t *add, Option_t *det, const char *filename);
// Standard Hits To Digits function
void HitsToDigits(Int_t evNumber,Int_t bgrev,Int_t size,
Option_t *add, Option_t *det, const char *filename);
// Standard Hits To SDigits function
void HitsToPreDigits(Int_t evNumber,Int_t bgrev,Int_t size,
Option_t *add, Option_t *det, const char *filename);
// Standard Hits To Digits function
void HitsToDigits(Int_t evNumber,Int_t bgrev,Int_t size,
Option_t *add, Option_t *det, const char *filename);
void ResetDigits(); // depending on how the
void ResetDigits(Int_t branch); // tree will be filled only
void AddSumDigit(AliITSpListItem &sdig);
void ResetDigits(); // depending on how the
void ResetDigits(Int_t branch); // tree will be filled only
void AddSumDigit(AliITSpListItem &sdig);
void MakeTreeC(Option_t *option="C");
void GetTreeC(Int_t event);
void AddCluster(Int_t branch, AliITSRawCluster *c);
void MakeTreeC(Option_t *option="C");
void GetTreeC(Int_t event);
void AddCluster(Int_t branch, AliITSRawCluster *c);
void ResetClusters(Int_t branch); // the pair will be kept
// Return pointers to clusters
TObjArray *Ctype() {return fCtype;}
void ResetClusters(Int_t branch); // the pair will be kept
// Return pointers to clusters
TObjArray *Ctype() {return fCtype;}
void AddRecPoint(const AliITSRecPoint &p);
void HitsToFastRecPoints(Int_t evNumber,Int_t bgrev,Int_t size,
Option_t *add, Option_t *det, const char *filename);
void AddRecPoint(const AliITSRecPoint &p);
void HitsToFastRecPoints(Int_t evNumber,Int_t bgrev,Int_t size,
Option_t *add, Option_t *det, const char *filename);
protected:
//================== Data Members ==================================
AliITSgeom *fITSgeom; // Pointer to ITS geometry
protected:
//================== Data Members ==================================
AliITSgeom *fITSgeom; // Pointer to ITS geometry