]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliSignal.h
Deleted erroneously added simlinks
[u/mrichter/AliRoot.git] / RALICE / AliSignal.h
index 6d7f77e5211840105dea413bff4996a7ff7d59f3..ee6bb9507737cac377958b3730eab476e8b96b6e 100644 (file)
@@ -16,6 +16,7 @@
 #include "AliObjMatrix.h"
 
 class AliDevice;
+class AliTrack;
 
 class AliSignal : public TNamed,public AliPosition,public AliAttrib
 {
@@ -41,8 +42,10 @@ class AliSignal : public TNamed,public AliPosition,public AliAttrib
   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)
+  void ListTrack(Int_t j=0) const;                              // Print info for the j-th (all) assoc. track(s)
   Int_t GetNvalues() const;                                     // Provide the number of signal values
   Int_t GetNerrors() const;                                     // Provide the number of specified errors
+  virtual Int_t GetNslots() const;                              // Provide the number of exising slots
   Int_t GetNwaveforms() const;                                  // Provide the number of specified waveforms
   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
@@ -72,14 +75,27 @@ class AliSignal : public TNamed,public AliPosition,public AliAttrib
   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 
+  void AddTrack(AliTrack& t,Int_t mode=1);                      // Relate an AliTrack to this signal
+  void RemoveTrack(AliTrack& t,Int_t mode=1);                   // Remove related AliTrack from this signal
+  void RemoveTracks(Int_t mode=1);                              // Remove all related AliTracks from this signal
+  Int_t GetNtracks(AliTrack* t=0) const;                        // Provide number of related AliTracks
+  AliTrack* GetTrack(Int_t j) const;                            // Access to the related AliTrack number j
+  AliTrack* GetIdTrack(Int_t id) const;                         // Access to the related AliTrack with ID=id
+  Int_t GetSignalFlag(Int_t j=1) const;                         // Provide signal value flag of the j-th slot
+  Int_t GetSignalFlag(TString name) const;                      // Provide signal value flag of the name specified slot
+  Int_t GetErrorFlag(Int_t j=1) const;                          // Provide error value flag of the j-th slot
+  Int_t GetErrorFlag(TString name) const;                       // Provide error value flag of the name specified slot
 
  protected:
+  void SetSigFlags(Int_t is,Int_t ie,Int_t j); // Set flags for signal and/or error value settings
   TArrayF* fSignals;                           // Signal values
   TArrayF* fDsignals;                          // Errors on signal values
+  TArrayI* fSigflags;                          // Flags to mark setting of signal and/or error 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
+  TObjArray* fTracks;                          // Pointers to associated tracks
 
- ClassDef(AliSignal,14) // Generic handling of (extrapolated) detector signals.
+ ClassDef(AliSignal,16) // Generic handling of (extrapolated) detector signals.
 };
 #endif