]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliSignal.h
Removing warnings (Sun)
[u/mrichter/AliRoot.git] / RALICE / AliSignal.h
index f37eec0fe2168e16394f1f48ccdcbea723fba770..1a31863a2a8160a2d360cbb83bfacfb374c92394 100644 (file)
@@ -3,33 +3,52 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-/* $Id$ */
+// $Id$
 
 #include "TObject.h"
 #include "TArrayF.h"
+#include "TH1.h"
+#include "TObjArray.h"
 
 #include "AliPosition.h"
+#include "AliAttrib.h"
 
-class AliSignal : public TObject,public AliPosition
+class AliSignal : public TNamed,public AliPosition,public AliAttrib
 {
  public:
-  AliSignal(Int_t n=1);                                 // Default constructor
-  ~AliSignal();                                         // Destructor
+  AliSignal();                                          // Default constructor
+  virtual ~AliSignal();                                 // Destructor
+  AliSignal(AliSignal& s);                              // Copy constructor
+  virtual TObject* Clone(const char* name="");                // Make a deep copy and provide its pointer
   virtual void SetSignal(Double_t sig,Int_t j=1);       // Store j-th signal value
   virtual void AddSignal(Double_t sig,Int_t j=1);       // Add value to j-th signal value
-  virtual Float_t GetSignal(Int_t j=1);                 // Provide j-th signal value
+  virtual Float_t GetSignal(Int_t j=1,Int_t mode=0);    // Provide j-th (corrected) signal value
   virtual void SetSignalError(Double_t dsig,Int_t j=1); // Store error on j-th signal value
   virtual Float_t GetSignalError(Int_t j=1);            // Provide error j-th signal value
-  virtual void ResetSignals();                          // Reset all signal values and errors to 0
-  virtual void ResetPosition();                         // Reset position and errors to 0
-  virtual void Reset();                                 // Reset signal and pos. values and errors
-  void Info(TString f="car");                           // Print signal info for coord. frame f
+  virtual void ResetSignals(Int_t mode=0);              // User selected reset of signal values and/or errors
+  virtual void DeleteSignals(Int_t mode=0);             // User selected delete of signal values and/or errors
+  virtual void Reset(Int_t mode=0);                     // Reset signal and position values and errors
+  virtual void Data(TString f="car");                   // Print all signal info for coord. frame f
+  virtual void List(Int_t j=0);                         // Print signal info for the j-th (or all) slot(s)
+  Int_t GetNvalues();                                   // Provide the number of signal values
+  Int_t GetNerrors();                                   // Provide the number of specified errors
+  Int_t GetNwaveforms();                                // Provide the number of specified waveforms
+  void SetWaveform(TH1F* waveform,Int_t j=1);           // Set the j-th waveform histogram
+  TH1F* GetWaveform(Int_t j=1);                         // Provide pointer of the j-th waveform histogram 
+  void ResetWaveform(Int_t j=1);                        // Reset the j-th waveform histogram 
+  void DeleteWaveform(Int_t j=1);                       // Delete the j-th waveform histogram 
+  Int_t GetNlinks();                                    // Provide the number of specified linked objects
+  void SetLink(TObject* obj,Int_t j=1);                 // Link object to the j-th slot
+  TObject* GetLink(Int_t j=1);                          // Provide pointer of the object linked to the j-th slot
+  void ResetLink(Int_t j=1);                            // Reset the link of the j-th slot
+  void ResetLink(TObject* obj);                         // Reset the link to the specified object in all slots
 
  protected:
-  Int_t fNvalues;    // The number of values per signal
-  TArrayF* fSignal;  // Signal values
-  TArrayF* fDsignal; // Errors on signal values
+  TArrayF* fSignals;                           // Signal values
+  TArrayF* fDsignals;                          // Errors on signal values
+  TObjArray* fWaveforms;                       // The 1D histograms containing the signal waveforms
+  TObjArray* fLinks;                           // Pointers of objects related to the various slots
 
- ClassDef(AliSignal,1) // Handling of ALICE (extrapolated) signals.
+ ClassDef(AliSignal,9) // Generic handling of (extrapolated) detector signals.
 };
 #endif