5 /**************************************************************************
6 * This file is property of and copyright by the ALICE HLT Project *
7 * All rights reserved. *
9 * Primary Authors: Oystein Djuvsland *
11 * Permission to use, copy, modify and distribute this software and its *
12 * documentation strictly for non-commercial purposes is hereby granted *
13 * without fee, provided that the above copyright notice appears in all *
14 * copies and that both the copyright notice and this permission notice *
15 * appear in the supporting documentation. The authors make no claims *
16 * about the suitability of this software for any purpose. It is *
17 * provided "as is" without express or implied warranty. *
18 **************************************************************************/
20 #ifndef ALIHLTPHOSDIGIT_H
21 #define ALIHLTPHOSDIGIT_H
24 * Digit class for PHOS HLT
26 * @file AliHLTPHOSDigit.h
27 * @author Oystein Djuvsland
29 * @brief Digit class for PHOS HLT
32 // see below for class documentation
34 // refer to README to build package
36 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
39 //#include "AliHLTPHOSAltroConfig.h"
40 #include "AliHLTPHOSBase.h"
42 //class AliHLTPHOSDigit : public TObject, public AliHLTPHOSAltroConfig
45 * @class AliHLTPHOSDigit
46 * Digit class for PHOS HLT, used for writing ROOT files
48 * @ingroup alihlt_phos
50 class AliHLTPHOSDigit : public TObject, public AliHLTPHOSBase
59 virtual ~AliHLTPHOSDigit();
61 /** Copy constructor */
62 AliHLTPHOSDigit(const AliHLTPHOSDigit &) :
79 //Copy constructor not implemented
83 AliHLTPHOSDigit & operator = (const AliHLTPHOSDigit)
90 void SetX(Int_t x) { fX = x; }
93 void SetZ(Int_t z) { fZ = z; }
95 /** Set the amplitude in ADC counts */
96 void SetAmplitude(Float_t amp) { fAmplitude = amp; }
98 /** Set the time in sample counts ? */
99 void SetTime(Float_t time) { fTime = time; }
101 /** Set the energy in GeV */
102 void SetEnergy(Float_t energy) { fEnergy = energy; }
105 void SetGain(Int_t gain) { fGain = gain; }
109 * @param rawData is a pointer to an array of raw data
111 void SetRawData(Int_t* rawData);
113 /** Set the crazyness */
114 void SetCrazyness(Int_t crazyness) { fCrazyness = crazyness; }
116 /** Set the baseline value */
117 void SetBaseline(Float_t baseline) { fBaseline = baseline; }
119 /** Set the number of samples */
120 void SetSamples(Int_t samples) { fSamples = samples; }
122 /** Set the number of pre samples */
123 void SetPreSamples(Int_t presamples) { fPreSamples = presamples; }
125 /** Reset the digit */
128 /** Set the debug variable */
129 void SetDebugVar(Int_t val) { fDebugVar = val; }
132 Int_t GetX() { return fX; }
135 Int_t GetZ() { return fZ; }
137 /** Get the amplitude */
138 Float_t GetAmplitude() { return fAmplitude; }
141 Float_t GetTime() { return fTime; }
143 /** Get the energy */
144 Float_t GetEnergy() { return fEnergy; }
147 Int_t GetGain() { return fGain; }
151 * @return a pointer to an array of raw data
153 Int_t* GetRawData() { return fData; }
155 /** Get the crazyness */
156 Int_t GetCrazyness() {return fCrazyness; }
158 /** Get the baseline */
159 Float_t GetBaseline() { return fBaseline; }
161 /** Get number of samples */
162 Int_t GetSamples() { return fSamples; }
164 /** Get number of pre samples */
165 Int_t GetPreSamples() { return fPreSamples; }
167 /** Get the total number of samples */
168 Int_t GetTotalSamples(){ return fNTotalSamples;}
170 /** Get the debug variable */
171 Int_t GetDebugVar() { return fDebugVar; }
176 /** The x coordinate */
179 /** The z coordinate */
182 /** The amplitude in ADC counts*/
183 Float_t fAmplitude; //COMMENT
186 Float_t fTime; //COMMENT
188 /** The energy in GeV */
189 Float_t fEnergy; //COMMENT
192 Int_t fGain; //COMMENT
194 /** The number of samples */
195 Int_t fSamples; //COMMENT
197 /** The number of pre samples */
198 Int_t fPreSamples; //COMMENT
200 /** The total number of samples */
201 Int_t fTotalSamples; //COMMENT
203 /** A debug variable */
204 Int_t fDebugVar; //COMMENT
206 /** Pointer to the digit raw data */
207 Int_t *fData; //[fTotalSamples]
210 Int_t fCrazyness; //COMMENT
213 Float_t fBaseline; //COMMENT
215 ClassDef(AliHLTPHOSDigit, 1);