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