* provided "as is" without express or implied warranty. *
**************************************************************************/
-#include <TMath.h>
+#include <TString.h>
-#include "AliITSgeom.h"
#include "AliITSresponseSDD.h"
-#include "AliITS.h"
-#include "AliRun.h"
-class AliITS;
//___________________________________________
ClassImp(AliITSresponseSDD)
// constructor
SetMaxAdc();
SetDiffCoeff();
- SetQref();
SetDriftSpeed();
+ SetNSigmaIntegration();
+ SetNLookUp();
// SetClock();
SetNoiseParam();
- SetMagicValue();
+ SetNoiseAfterElectronics();
+ SetElectronics();
+ SetDynamicRange();
+ SetChargeLoss();
SetMinVal();
SetParamOptions();
SetZeroSupp();
SetDataType();
SetFilenames();
SetOutputOption();
-
+ SetDo10to8();
}
+AliITSresponseSDD::~AliITSresponseSDD() {
-//__________________________________________________________________________
-AliITSresponseSDD::AliITSresponseSDD(const AliITSresponseSDD &source){
- // Copy Constructor
- Int_t i;
- if(&source == this) return;
- for(i=0;i<8;i++){this->fCPar[i] = source.fCPar[i];}
- this->fNoise = source.fNoise;
- this->fBaseline = source.fBaseline;
- this->fTopValue = source.fTopValue;
- this->fTemperature = source.fTemperature;
- this->fDriftSpeed = source.fDriftSpeed;
- this->fMaxAdc = source.fMaxAdc;
- this->fDiffCoeff = source.fDiffCoeff;
- this->fQref = source.fQref;
- this->fZeroSuppFlag = source.fZeroSuppFlag;
- this->fMinVal = source.fMinVal;
- this->fWrite = source.fWrite;
- this->fOption = source.fOption;
- this->fParam1 = source.fParam1;
- return;
-}
+ if(fGaus) delete fGaus;
-//_________________________________________________________________________
-AliITSresponseSDD&
- AliITSresponseSDD::operator=(const AliITSresponseSDD &source) {
- // Assignment operator
- Int_t i;
- if(&source == this) return *this;
- for(i=0;i<8;i++){this->fCPar[i] = source.fCPar[i];}
- this->fNoise = source.fNoise;
- this->fBaseline = source.fBaseline;
- this->fTopValue = source.fTopValue;
- this->fTemperature = source.fTemperature;
- this->fDriftSpeed = source.fDriftSpeed;
- this->fMaxAdc = source.fMaxAdc;
- this->fDiffCoeff = source.fDiffCoeff;
- this->fQref = source.fQref;
- this->fZeroSuppFlag = source.fZeroSuppFlag;
- this->fMinVal = source.fMinVal;
- this->fWrite = source.fWrite;
- this->fOption = source.fOption;
- this->fParam1 = source.fParam1;
- return *this;
}
void AliITSresponseSDD::SetCompressParam(Int_t cp[8])
{
// set compression param
+
Int_t i;
- for(i=0; i<8; i++) {
+ for (i=0; i<8; i++) {
fCPar[i]=cp[i];
//printf("\n CompressPar %d %d \n",i,fCPar[i]);
void AliITSresponseSDD::GiveCompressParam(Int_t cp[8])
{
// give compression param
+
Int_t i;
- for(i=0; i<8; i++) {
+ for (i=0; i<8; i++) {
cp[i]=fCPar[i];
}
}
+
+void AliITSresponseSDD::Print()
+{
+ // Print SDD response Parameters
+
+ cout << "**************************************************" << endl;
+ cout << " Silicon Drift Detector Response Parameters " << endl;
+ cout << "**************************************************" << endl;
+ cout << "Diffusion Coefficients: " << fDiffCoeff << ", " << fDiffCoeff1 << endl;
+
+ cout << "Hardware compression parameters: " << endl;
+ for(Int_t i=0; i<8; i++) cout << "fCPar[" << i << "] = " << fCPar[i] << endl;
+ cout << "Noise before electronics (arbitrary units): " << fNoise << endl;
+ cout << "Baseline (ADC units): " << fBaseline << endl;
+ cout << "Noise after electronics (ADC units): " << fNoiseAfterEl << endl;
+
+ cout << "Dynamic Range: " << fDynamicRange << endl;
+ cout << "Charge Loss: " << fChargeLoss << endl;
+ cout << "Temperature: " << fTemperature << endl;
+ cout << "Drift Speed: " << fDriftSpeed << endl;
+ cout << "Electronics (1=PASCAL, 2=OLA): " << fElectronics << endl;
+
+ cout << "N. of Sigma for signal integration: " << fNsigmas << endl;
+ cout << "N. of bins in lookup table: " << fNcomps << endl;
+
+ cout << "Max. ADC Value: " << fMaxAdc << endl;
+ cout << "Min. Value: " << fMinVal << endl;
+
+ cout << "**************************************************" << endl;
+
+
+
+}
+
+
+