]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RALICE/AliSignal.h
Work continues.
[u/mrichter/AliRoot.git] / RALICE / AliSignal.h
CommitLineData
d88f97cc 1#ifndef ALISIGNAL_H
2#define ALISIGNAL_H
3da30618 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
f531a546 6// $Id$
3da30618 7
959fbac5 8#include "TObject.h"
9#include "TArrayF.h"
d88f97cc 10
11#include "AliPosition.h"
12
13class AliSignal : public TObject,public AliPosition
14{
15 public:
959fbac5 16 AliSignal(Int_t n=1); // Default constructor
17 ~AliSignal(); // Destructor
8e8e6c7f 18 AliSignal(AliSignal& s); // Copy constructor
959fbac5 19 virtual void SetSignal(Double_t sig,Int_t j=1); // Store j-th signal value
20 virtual void AddSignal(Double_t sig,Int_t j=1); // Add value to j-th signal value
21 virtual Float_t GetSignal(Int_t j=1); // Provide j-th signal value
22 virtual void SetSignalError(Double_t dsig,Int_t j=1); // Store error on j-th signal value
23 virtual Float_t GetSignalError(Int_t j=1); // Provide error j-th signal value
24 virtual void ResetSignals(); // Reset all signal values and errors to 0
25 virtual void ResetPosition(); // Reset position and errors to 0
26 virtual void Reset(); // Reset signal and pos. values and errors
27 void Info(TString f="car"); // Print signal info for coord. frame f
7a5c405b 28 void SetName(TString name); // Set the name tag to indicate the kind of signal
29 TString GetName(); // Provide the name tag indicating the kind of signal
8e8e6c7f 30 Int_t GetNvalues(); // Provide the number of signal values
d88f97cc 31
32 protected:
959fbac5 33 Int_t fNvalues; // The number of values per signal
34 TArrayF* fSignal; // Signal values
35 TArrayF* fDsignal; // Errors on signal values
7a5c405b 36 TString fName; // Name tag to identify the kind of signal
d88f97cc 37
8e8e6c7f 38 ClassDef(AliSignal,3) // Handling of ALICE (extrapolated) signals.
d88f97cc 39};
40#endif