3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
11 #include "TObjArray.h"
13 #include "AliPosition.h"
14 #include "AliAttrib.h"
16 class AliSignal : public TObject,public AliPosition,public AliAttrib
19 AliSignal(); // Default constructor
20 virtual ~AliSignal(); // Destructor
21 AliSignal(AliSignal& s); // Copy constructor
22 virtual void SetSignal(Double_t sig,Int_t j=1); // Store j-th signal value
23 virtual void AddSignal(Double_t sig,Int_t j=1); // Add value to j-th signal value
24 virtual Float_t GetSignal(Int_t j=1,Int_t mode=0); // Provide j-th (corrected) signal value
25 virtual void SetSignalError(Double_t dsig,Int_t j=1); // Store error on j-th signal value
26 virtual Float_t GetSignalError(Int_t j=1); // Provide error j-th signal value
27 virtual void ResetSignals(Int_t mode=0); // User selected reset of signal values and/or errors
28 virtual void DeleteSignals(Int_t mode=0); // User selected delete of signal values and/or errors
29 virtual void ResetPosition(); // Reset position and errors to 0
30 virtual void Reset(Int_t mode=0); // Reset signal and position values and errors
31 void Data(TString f="car",Int_t j=0); // Print j-th signal info for coord. frame f
32 void SetName(TString name); // Set the name tag to indicate the kind of signal
33 TString GetName(); // Provide the name tag indicating the kind of signal
34 Int_t GetNvalues(); // Provide the number of signal values
35 Int_t GetNerrors(); // Provide the number of specified errors
36 Int_t GetNwaveforms(); // Provide the number of specified waveforms
37 void SetWaveform(TH1F* waveform,Int_t j=1); // Set the j-th waveform histogram
38 TH1F* GetWaveform(Int_t j=1); // Provide pointer of the j-th waveform histogram
39 void ResetWaveform(Int_t j=1); // Reset the j-th waveform histogram
40 void DeleteWaveform(Int_t j=1); // Delete the j-th waveform histogram
41 virtual AliSignal* MakeCopy(AliSignal& s); // Make a deep copy and provide its pointer
44 TArrayF* fSignals; // Signal values
45 TArrayF* fDsignals; // Errors on signal values
46 TString fName; // Name tag to identify the kind of signal
47 TObjArray* fWaveforms; // The 1D histograms containing the signal waveforms
49 ClassDef(AliSignal,8) // Generic handling of (extrapolated) detector signals.