--- /dev/null
+/**************************************************************************
+ * 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. *
+ **************************************************************************/
+
+
+//////////////////////////////////////////////////////
+// Base Response class for ITS //
+// Specific subdetector implementation is done in //
+// AliITSresponseSPD //
+// AliITSresponseSDD //
+// AliITSresponseSSD //
+//////////////////////////////////////////////////////
+
+#include "AliITSresponse.h"
+
+ClassImp(AliITSresponse)
+
+//______________________________________________________________________
+AliITSresponse::AliITSresponse():
+TObject(),
+fDiffCoeff(0.),
+fDiffCoeff1(0.){
+
+ // Default Constructor
+
+}
+
--- /dev/null
+#ifndef ALIITSRESPONSE_H
+#define ALIITSRESPONSE_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id$ */
+
+#include <TObject.h>
+#include <TString.h>
+
+class AliITSsegmentation;
+class TF1;
+class AliITSgeom;
+
+////////////////////////////////////////////////////
+// //
+// ITS base response virtual base class //
+// //
+////////////////////////////////////////////////////
+class AliITSresponse : public TObject {
+ public:
+
+ AliITSresponse();
+ virtual ~AliITSresponse() {;}
+
+ virtual void SetDiffCoeff(Float_t p1, Float_t p2) {
+ fDiffCoeff=p1; fDiffCoeff1=p2;}
+ virtual void DiffCoeff(Float_t &diff,Float_t &diff1) const {
+ diff=fDiffCoeff; diff1=fDiffCoeff1;}
+
+
+ protected:
+
+ void NotImplemented(const char *method) const {if(gDebug>0)
+ Warning(method,"This method is not implemented for this sub-class");}
+
+ private:
+ Float_t fDiffCoeff; // Diffusion Coefficient (scaling the time)
+ Float_t fDiffCoeff1; // Diffusion Coefficient (constant term)
+
+
+ ClassDef(AliITSresponse,5) // Detector type response virtual base class
+};
+
+#endif
--- /dev/null
+/**************************************************************************
+ * 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. *
+ **************************************************************************/
+///////////////////////////////////////////////////////////////////////////
+// Base Response class forITS
+// It is used to set static data members
+// connected to parameters equal for all
+// the SPD modules
+//
+// Modified by D. Elia, G.E. Bruno
+// March-April 2006
+// September 2007: Coupling params taken out
+// left in AliITSCalibrationSPD only
+//
+///////////////////////////////////////////////////////////////////////////
+
+#include "AliITSresponseSPD.h"
+
+const Float_t AliITSresponseSPD::fgkDiffCoeffDefault = 0.; //change this
+const TString AliITSresponseSPD::fgkCouplingOptDefault = "old";
+const Float_t AliITSresponseSPD::fgkEccentricityDiffDefault = 0.85;
+
+ClassImp(AliITSresponseSPD)
+//______________________________________________________________________
+AliITSresponseSPD::AliITSresponseSPD():
+ AliITSresponse(),
+fCouplOpt(0),
+fEccDiff(0){
+
+ // constructor
+ SetCouplingOption(fgkCouplingOptDefault);
+ SetDiffCoeff(fgkDiffCoeffDefault,0.);
+ SetSigmaDiffusionAsymmetry(fgkEccentricityDiffDefault);
+
+}
--- /dev/null
+#ifndef ALIITSRESPONSESPD_H
+#define ALIITSRESPONSESPD_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+
+#include "AliITSresponse.h"
+///////////////////////////////////////////
+// //
+// ITS response class for SPD //
+///////////////////////////////////////////
+
+class AliITSresponseSPD : public AliITSresponse {
+ public:
+ AliITSresponseSPD(); // default constructor
+ virtual ~AliITSresponseSPD() {;} // destructror
+
+ virtual void SetCouplingOption(const char *opt) { // Options: "old" or "new"
+ fCouplOpt=opt;}
+ virtual void CouplingOption(char *opt) const {
+ strcpy(opt,fCouplOpt.Data());}
+ virtual void SetSigmaDiffusionAsymmetry(Double_t ecc)
+ {fEccDiff=ecc;}
+ virtual void GetSigmaDiffusionAsymmetry(Double_t &ecc) const
+ {ecc=fEccDiff;}
+
+ protected:
+
+ static const Float_t fgkDiffCoeffDefault; //default for fDiffCoeff
+ static const TString fgkCouplingOptDefault; // type of pixel Coupling (old or new)
+ static const Float_t fgkEccentricityDiffDefault;//default for fCouplRow
+
+ TString fCouplOpt; // Coupling Option
+ Float_t fEccDiff; // Eccentricity (i.e. asymmetry parameter) in the Gaussian Diffusion
+
+
+ ClassDef(AliITSresponseSPD,6) // SPD base response class
+};
+
+#endif
#pragma link C++ class AliITSsegmentationSDD+;
#pragma link C++ class AliITSsegmentationSSD+;
#pragma link C++ class AliITSCalibration+;
+#pragma link C++ class AliITSresponse+;
+#pragma link C++ class AliITSresponseSPD+;
#pragma link C++ class AliITSresponseSDD+;
#pragma link C++ class AliITSCalibrationSPD-;
#pragma link C++ class AliITSCalibrationSDD+;
AliITSsegmentationSDD.cxx \
AliITSsegmentationSSD.cxx \
AliITSCalibration.cxx \
+ AliITSresponse.cxx \
+ AliITSresponseSPD.cxx \
AliITSresponseSDD.cxx \
AliITSCalibrationSPD.cxx \
AliITSCalibrationSDD.cxx \