$Id$
*/
// ITS step manager and geometry class for the ITS SDD test beam geometry
-// of Summer 2002.
+// of Summer 2003 and later.
+// At present, the geometry and materials need to be checked against the
+// proper geometry of the 2003 test beam. In addition, because the SSD
+// used in the test beam are single sided, the second side needs be ignored.
+// This can cause some problems with the SSD reconstruction code.
#include "AliITS.h"
+typedef enum {
+ kNoTarg=0,kIron=4,kLead,kSteel,
+ kCarbon=8,kAl,kBe,kTi,kSn,kCopper,kGe,kTungsten=19
+} TargTyp_t;
+
class AliITSvSDD03 : public AliITS{
public:
AliITSvSDD03(); // default constructor
return 1;}
virtual void Init();
virtual void SetDefaults();
- virtual void DrawModule();
+ virtual void DrawModule() const;
virtual void StepManager();
+ virtual void SetTargMat(TargTyp_t tt=kNoTarg){ // set target material
+ fTarg=tt;}
+ virtual void SetTargThick(Float_t th=1){ // set target thickness
+ fTargThick=th;}
virtual void SetWriteDet(Bool_t det=kTRUE){ // set .det write
fGeomDetOut = det;}
virtual void SetWriteDet(const char *f){ // set write file
fGeomDetIn = det;}
virtual void SetReadDet(const char *f){ // set read file
strncpy(fRead,f,60);fGeomDetIn = kTRUE;}
- virtual void SetEUCLID(Bool_t euclid=kTRUE){ // set write Euclid file
- fEuclidOut = euclid;}
virtual void SetEUCLIDFileName(const char *f){ // set write file
fEuclidGeometry=f;fEuclidOut = kTRUE;}
virtual void SetMinorVersion(Int_t v=22){ // Choose between existing minor versions
virtual void SetThicknessChip2(Float_t v=300.){
// Set chip thickness in layer 2
fChip2 = v;}
+ // Replacement default simulation initilization.
+ virtual void SetDefaultSimulation();
+ TargTyp_t GetTargMat() const {return fTarg;}
+ // Decodes the id and copy nuber to give the layer, ladder, and detector
+ // numbers . Returns the module number.
+ virtual Int_t DecodeDetector(Int_t id,Int_t cpy,Int_t &lay,
+ Int_t &lad,Int_t &det) const;
+ //
private:
void InitAliITSgeom();
Bool_t fGeomDetOut; // Flag to write .det file out
Float_t fChip1; // thickness of chip in SDD layer 1
Float_t fChip2; // thickness of chip in SDD layer 2
Int_t fIDMother; //! ITS Mother Volume id.
- Int_t fYear; //
+ Int_t fYear; // Year flag to select different geometries.
+ TargTyp_t fTarg; // Target material
+ Float_t fTargThick; // TargetThickness in mm
- ClassDef(AliITSvSDD03,1) // Hits manager and geometry for SDD testbeam
+ ClassDef(AliITSvSDD03,2) // Hits manager and geometry for SDD testbeam
};
#endif