adding mode makefile
[u/mrichter/AliRoot.git] / ITS / AliITSresponseSDD.h
CommitLineData
b0f5e3fc 1#ifndef ALIITSRESPONSESDD_H
2#define ALIITSRESPONSESDD_H
48058160 3
c2bd28b6 4/* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
48058160 5 * See cxx source for full Copyright notice */
6
88cb7938 7
fcf95fc7 8#include <AliITSresponse.h>
9#include <TArrayF.h>
b0f5e3fc 10
c2bd28b6 11/* $Id$ */
12
fcf95fc7 13/////////////////////////////////////////////////////////////
14// Base settings for the ITS response classes. //
15// The data member of this class are static and set once //
16// for all the modules. //
17/////////////////////////////////////////////////////////////
b0f5e3fc 18
48058160 19class AliITSresponseSDD : public AliITSresponse {
aacedc3e 20 public:
fcf95fc7 21
48058160 22 AliITSresponseSDD();
cd2a0045 23 virtual ~AliITSresponseSDD(){};
a66a0eb6 24
c2bd28b6 25 static Float_t DefaultDriftSpeed() {return fgkDriftSpeedDefault;}
a66a0eb6 26
27 virtual void SetTimeOffset(Float_t to){fTimeOffset = to;}
28 virtual Float_t TimeOffset()const {return fTimeOffset;}
29 static Float_t DefaultTimeOffset() {return fgkTimeOffsetDefault;}
30
31 virtual void SetADC2keV(Float_t conv){fADC2keV=conv;}
32 virtual Float_t ADC2keV()const {return fADC2keV;}
33 static Float_t DefaulttADC2keV() {return fgkADC2keVDefault;}
34
8ba39da9 35
703a4e51 36 void SetZeroSupp (const char *opt) {
fa4f0f62 37 // Zero-suppression option - could be ZS or NOTSUPP
703a4e51 38 fOption=opt;}
39 const char *ZeroSuppOption() const {// Get zero-suppression option
40 return fOption.Data();}
703a4e51 41 // Detector type response methods
8ba39da9 42
48058160 43 protected:
fcf95fc7 44
703a4e51 45 static const TString fgkOptionDefault; // default for fOption
4952f440 46 static const Float_t fgkDriftSpeedDefault; // default for drift speed
a66a0eb6 47 static const Float_t fgkTimeOffsetDefault; // default for fTimeOffset
48 static const Float_t fgkADC2keVDefault; // default for fADC2keV
703a4e51 49
a66a0eb6 50 Float_t fTimeOffset; // Time offset due to electronic delays
51 Float_t fADC2keV; // Conversion factor from ADC to keV
fa4f0f62 52 TString fOption; // Zero-suppresion option (ZS or non-ZS)
703a4e51 53
54 private:
703a4e51 55
fcf95fc7 56 AliITSresponseSDD(const AliITSresponseSDD &ob); // copy constructor
57 AliITSresponseSDD& operator=(const AliITSresponseSDD & /* source */); // ass. op.
fa1750f9 58
cd2a0045 59 ClassDef(AliITSresponseSDD,13) // Base response class
50d05d7b 60
61 };
b0f5e3fc 62#endif