]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliSignal.h
Commenting out obsolete code
[u/mrichter/AliRoot.git] / RALICE / AliSignal.h
index 68c02f3283119495779a793c09655e33dba2da27..4d8d0f3b5e5295d7316066bc86a314052d06664c 100644 (file)
@@ -9,43 +9,54 @@
 #include "TArrayF.h"
 #include "TH1.h"
 #include "TObjArray.h"
+#include "TArrayI.h"
 
 #include "AliPosition.h"
 #include "AliAttrib.h"
+#include "AliObjMatrix.h"
 
-class AliSignal : public TObject,public AliPosition,public AliAttrib
+class AliSignal : public TNamed,public AliPosition,public AliAttrib
 {
  public:
-  AliSignal();                                          // Default constructor
-  virtual ~AliSignal();                                 // Destructor
-  AliSignal(AliSignal& s);                              // Copy constructor
-  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,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(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 ResetPosition();                         // Reset position and errors to 0
-  virtual void Reset(Int_t mode=0);                     // Reset signal and position values and errors
-  void Data(TString f="car",Int_t j=0);                 // Print j-th signal info for coord. frame f
-  void SetName(TString name);                           // Set the name tag to indicate the kind of signal
-  TString GetName();                                    // Provide the name tag indicating the kind of signal
-  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 
-  virtual AliSignal* MakeCopy(AliSignal& s);            // Make a deep copy and provide its pointer
+  AliSignal();                                                  // Default constructor
+  virtual ~AliSignal();                                         // Destructor
+  AliSignal(const AliSignal& s);                                // Copy constructor
+  virtual TObject* Clone(const char* name="") const;            // 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,Int_t mode=0) const;      // 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) const;              // Provide error j-th signal value
+  virtual void ResetSignals(Int_t mode=0);                      // Selective reset of signal values and/or errors
+  virtual void DeleteSignals(Int_t mode=0);                     // Selectie 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") const;                     // Print all signal info for coord. frame f
+  virtual void List(Int_t j=0) const;                           // Print signal info for the j-th (all) slot(s)
+  Int_t GetNvalues() const;                                     // Provide the number of signal values
+  Int_t GetNerrors() const;                                     // Provide the number of specified errors
+  Int_t GetNwaveforms() const;                                  // 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) const;                           // 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(TObject* obj=0,Int_t j=0) const;              // Number of links for the specified object
+  void SetLink(TObject* obj,Int_t j=1,Int_t k=1);               // Link object to the j-th slot at position k
+  void AddLink(TObject* obj,Int_t j=1);                         // Link obj to the j-th slot at 1st free position
+  TObject* GetLink(Int_t j=1,Int_t k=1) const;                  // Pointer of the object linked to the j-th slot
+  Int_t GetIndices(TObject* obj,TArrayI& js,TArrayI& ks) const; // Slot and pos. indices for linked objects
+  Int_t GetIndices(TObject* obj,Int_t j,TArrayI& ks) const;     // Pos. indices for linked objects of j-th slot 
+  Int_t GetIndices(TObject* obj,TArrayI& js,Int_t k) const;     // Slot indices for linked objects at pos. k 
+  void ResetLink(Int_t j=1,Int_t k=1);                          // Reset the link(s) of the j-th slot 
+  void ResetLinks(TObject* obj,Int_t j=0,Int_t k=0);            // Reset link(s) to object obj for j-th slot
+  void SetSwapMode(Int_t swap=1);                               // Set swapmode flag for the link storage
+  Int_t GetSwapMode() const;                                    // Provide swapmode flag for the link storage
 
  protected:
   TArrayF* fSignals;                           // Signal values
   TArrayF* fDsignals;                          // Errors on signal values
-  TString fName;                               // Name tag to identify the kind of signal
   TObjArray* fWaveforms;                       // The 1D histograms containing the signal waveforms
+  AliObjMatrix* fLinks;                        // Pointers of objects related to the various slots
 
- ClassDef(AliSignal,8) // Generic handling of (extrapolated) detector signals.
+ ClassDef(AliSignal,12) // Generic handling of (extrapolated) detector signals.
 };
 #endif