]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliSignal.h
Removing run loader
[u/mrichter/AliRoot.git] / RALICE / AliSignal.h
index 188323a9b7284b4bbf161295faee30588faeb14f..3a6a3e6ff5c7984de437c778a25a67f704119369 100644 (file)
@@ -15,6 +15,8 @@
 #include "AliAttrib.h"
 #include "AliObjMatrix.h"
 
+class AliDevice;
+
 class AliSignal : public TNamed,public AliPosition,public AliAttrib
 {
  public:
@@ -38,17 +40,18 @@ class AliSignal : public TNamed,public AliPosition,public AliAttrib
   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)
   virtual void List(TString name) const;                        // Print signal info for the name-specified slot
+  void ListWaveform(Int_t j=0) const;                           // Print info for the j-th (all) waveform(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 waveform histogram for the j-th slot
-  void SetWaveform(TH1F* waveform,TString name);                // Set the waveform histo for the name-specified slot
-  TH1F* GetWaveform(Int_t j=1) const;                           // Pointer to the waveform histo of the j-th slot
-  TH1F* GetWaveform(TString name) const;                        // Pointer to the waveform of the name-specified slot
-  void ResetWaveform(Int_t j=1);                                // Reset the waveform histo of the j-th slot
-  void ResetWaveform(TString name);                             // Reset the waveform histo of the name-specified slot
-  void DeleteWaveform(Int_t j=1);                               // Delete waveform histo of the j-th slot
-  void DeleteWaveform(TString name);                            // Delete waveform histo of the name-specified slot
+  void SetWaveform(TH1F* waveform,Int_t j=1);                   // Set the histogram for the j-th waveform
+  TH1F* GetWaveform(Int_t j=1) const;                           // Pointer to the histo of the j-th waveform
+  TH1F* GetWaveform(TString name) const;                        // Pointer to the waveform with the specified name
+  Int_t GetWaveformIndex(TString name) const;                   // Index of the waveform with the specified name
+  void ResetWaveform(Int_t j=1);                                // Reset the histo of the j-th waveform
+  void ResetWaveform(TString name);                             // Reset the waveform histo with the specified name
+  void DeleteWaveform(Int_t j=1);                               // Delete histo of the j-th waveform
+  void DeleteWaveform(TString name);                            // Delete waveform histo with the specified name
   Int_t GetNlinks(TObject* obj=0,Int_t j=0) const;              // Number of links for the specified object
   Int_t GetNlinks(TObject* obj,TString name) 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
@@ -67,13 +70,16 @@ class AliSignal : public TNamed,public AliPosition,public AliAttrib
   void ResetLinks(TObject* obj,TString name,Int_t k=0);         // Reset link(s) to object obj for name-specified 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
+  void SetDevice(TObject* dev);                                 // Store pointer to the device that owns this signal
+  AliDevice* GetDevice() const;                                 // Provide pointer to the owning device 
 
  protected:
   TArrayF* fSignals;                           // Signal values
   TArrayF* fDsignals;                          // Errors on signal values
   TObjArray* fWaveforms;                       // The 1D histograms containing the signal waveforms
   AliObjMatrix* fLinks;                        // Pointers of objects related to the various slots
+  TObject* fDevice;                            // Pointer to the device that owns this signal
 
- ClassDef(AliSignal,12) // Generic handling of (extrapolated) detector signals.
+ ClassDef(AliSignal,14) // Generic handling of (extrapolated) detector signals.
 };
 #endif