1 #ifndef ALIITSCALIBRATION_H
2 #define ALIITSCALIBRATION_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //////////////////////////////////////////////
9 // Base ITS calibration class //
10 //////////////////////////////////////////////
15 #include "AliITSCorrMapSDD.h"
16 #include "AliITSDriftSpeedArraySDD.h"
18 class AliITSsegmentation;
23 /////////////////////////////////////////////
25 // ITS calibration virtual base class //
26 /////////////////////////////////////////////
27 class AliITSCalibration : public TObject {
29 // Default Constructor
33 virtual ~AliITSCalibration() {;}
35 // Check for dead modules anche chips
36 // Return 1 if the module/chip is dead, 0 if it is ok
37 virtual Bool_t IsBad() const {AliError("This method must be implemented in a derived class"); return kFALSE;}
38 virtual Bool_t IsChipBad(Int_t) const {AliError("This method must be implemented in a derived class"); return kFALSE;}
39 virtual Bool_t IsWingBad(Int_t) const {AliError("This method must be implemented in a derived class"); return kFALSE;}
41 // Configuration methods
43 // Temperature in [degree K]
44 virtual void SetTemperature(Double_t t=300.0) {fT = t;}
45 // Get temperature [degree K]
46 virtual Double_t Temperature() const {return fT;}
49 virtual const char *DataType() const {return fDataType.Data();}
50 // Type of data - real or simulated
51 virtual void SetDataType(const char *data="simulated") {fDataType=data;}
52 // Number of parameters to be set
53 virtual void SetNDetParam(Int_t) = 0;
54 // Set detector parameters: gain, coupling ...
55 virtual void SetDetParam(Double_t *) = 0;
57 virtual Int_t NDetParam() const = 0;
58 virtual void GetDetParam(Double_t *) const = 0;
59 virtual void SetMapA(Int_t, AliITSCorrMapSDD*) {AliError("This method must be implemented in a derived class");}
60 virtual void SetMapT(Int_t, AliITSCorrMapSDD*) {AliError("This method must be implemented in a derived class");}
61 virtual void SetDriftSpeed(Int_t, AliITSDriftSpeedArraySDD*) {AliError("This method must be implemented in a derived class");}
62 // Set sigmas of the charge spread function
63 virtual void SetSigmaSpread(Double_t, Double_t) = 0;
64 // Get sigmas for the charge spread
65 virtual void SigmaSpread(Double_t &,Double_t &) const = 0;
67 // Needed for SSD bad modules retrieval in the tracker
68 virtual void SetModuleIndex(Int_t /*modId*/) {};
70 // Prints out the content of this class in ASCII format.
71 virtual void Print(ostream *os) const;
72 // Reads in the content of this class in the format of Print
73 virtual void Read(istream *is);
74 virtual void Print(Option_t *option="") const {TObject::Print(option);}
75 virtual Int_t Read(const char *name) {return TObject::Read(name);}
79 AliITSCalibration(const AliITSCalibration &ob); // copy constructor
80 AliITSCalibration& operator=(const AliITSCalibration& source); // ass.
81 void NotImplemented(const char *method) const {if(gDebug>0)
82 Warning(method,"This method is not implemented for this sub-class");}
84 TString fDataType; // data type - real or simulated
86 Float_t fT; // The temperature of the Si in Degree K.
87 // deleted here but in AliITSDetTypeSim and AliITSDetTypeRec
89 ClassDef(AliITSCalibration,3) // Detector type response virtual base class
91 // Input and output function for standard C++ input/output.
92 ostream& operator<<(ostream &os,AliITSCalibration &source);
93 istream& operator>>(istream &os,AliITSCalibration &source);