]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RALICE/AliSignal.h
Adding some QCD diffractive states to the PDG list
[u/mrichter/AliRoot.git] / RALICE / AliSignal.h
1 #ifndef ALISIGNAL_H
2 #define ALISIGNAL_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 // $Id$
7
8 #include "TObject.h"
9 #include "TArrayF.h"
10
11 #include "AliPosition.h"
12
13 class AliSignal : public TObject,public AliPosition
14 {
15  public:
16   AliSignal(Int_t n=1);                                 // Default constructor
17   ~AliSignal();                                         // Destructor
18   AliSignal(AliSignal& s);                              // Copy constructor
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(Int_t mode=0);              // User selected reset of signal values and/or errors
25   virtual void DeleteSignals(Int_t mode=0);             // User selected delete of signal values and/or errors
26   virtual void ResetPosition();                         // Reset position and errors to 0
27   virtual void Reset(Int_t mode=0);                     // Reset signal and position values and errors
28   void Data(TString f="car");                           // Print signal info for coord. frame f
29   void SetName(TString name);                           // Set the name tag to indicate the kind of signal
30   TString GetName();                                    // Provide the name tag indicating the kind of signal
31   Int_t GetNvalues();                                   // Provide the number of signal values
32   Int_t GetNerrors();                                   // Provide the number of specified errors
33
34  protected:
35   TArrayF* fSignal;  // Signal values
36   TArrayF* fDsignal; // Errors on signal values
37   TString fName;     // Name tag to identify the kind of signal
38
39  ClassDef(AliSignal,6) // Generic handling of (extrapolated) detector signals.
40 };
41 #endif