]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliDevice.h
- AliHLTComponent: bugfix in buffer handling; overwrite check added to
[u/mrichter/AliRoot.git] / RALICE / AliDevice.h
index ea0f081e26292da5e36218a114257c63bc642e98..25ebfa8043d72dfc4a5013b05f15c1ccfb2f0952 100644 (file)
@@ -5,6 +5,8 @@
 
 // $Id$
 
+#include "TPolyMarker3D.h"
+
 #include "AliSignal.h"
 
 class AliDevice : public AliSignal
@@ -14,6 +16,8 @@ class AliDevice : public AliSignal
   virtual ~AliDevice();                              // Default destructor
   AliDevice(const AliDevice& dev);                   // Copy constructor
   virtual TObject* Clone(const char* name="") const; // Make a deep copy and provide its pointer
+  void SetStatus(Int_t word);                        // Set the status word (user definable)
+  Int_t GetStatus() const;                           // Provide the status word
   void SetHitCopy(Int_t j);                          // (De)activate creation of private copies of hits
   Int_t GetHitCopy() const;                          // Provide HitCopy flag value      
   void AddHit(AliSignal& s);                         // Register an AliSignal object as a hit to this module
@@ -23,18 +27,26 @@ class AliDevice : public AliSignal
   void RemoveHits();                                 // Remove all AliSignals as hits from this module
   Int_t GetNhits() const;                            // Provide number of registered hits
   AliSignal* GetHit(Int_t j) const;                  // Access to the AliSignal registered as hit number j
+  AliSignal* GetHit(TString name) const;             // Provide the hit with the specified name
+  AliSignal* GetIdHit(Int_t id) const;               // Provide the hit with unique identifier "id"
   TObjArray* GetHits();                              // Provide the references to all the registered hits
   virtual void Reset(Int_t mode=0);                  // Reset registered hits and AliSignal attributes
   void ShowHit(Int_t j=0) const;                     // Show data of the j-th hit (j=0 means all hits)
-  virtual void Data(TString f="car") const;          // Print device and all signal info for coord. frame f
-  TObjArray* SortHits(TString name,Int_t mode=-1,TObjArray* hits=0); // Sort hits by named signal value
-  TObjArray* SortHits(Int_t idx=1,Int_t mode=-1,TObjArray* hits=0);  // Sort hits by indexed signal value
+  virtual void Data(TString f="car",TString u="rad") const; // Print device/signal info for frame f and ang units u
+  void GetExtremes(Float_t& vmin,Float_t& vmax,Int_t idx=1,TObjArray* hits=0,Int_t mode=1) const;// min and max signal
+  void GetExtremes(Float_t& vmin,Float_t& vmax,TString name,TObjArray* hits=0,Int_t mode=1) const;// min and max signal
+  TObjArray* SortHits(TString name,Int_t mode=-1,TObjArray* hits=0,Int_t mcal=1);// Sort hits by named signal value
+  TObjArray* SortHits(Int_t idx=1,Int_t mode=-1,TObjArray* hits=0,Int_t mcal=1); // Sort hits by indexed signal value
+  void DisplayHits(TString name,Float_t scale=-1,TObjArray* hits=0,Int_t dp=0,Int_t mode=1,Int_t mcol=4);// Hit disp.
+  void DisplayHits(Int_t idx=1,Float_t scale=-1,TObjArray* hits=0,Int_t dp=0,Int_t mode=1,Int_t mcol=4); // Hit disp.
 
  protected:
+  Int_t fStatus;       // User definable status word
   Int_t fHitCopy;      // Flag to denote making private copies of added hits
   TObjArray* fHits;    // Array to hold the registered hits
   TObjArray* fOrdered; //! Temp. array to hold the ordered hits
+  TObjArray* fMarkers; //! Temp. array to hold the 3D markers for the hit display
 
- ClassDef(AliDevice,3) // Signal (Hit) handling of a generic device.
+ ClassDef(AliDevice,9) // Signal (Hit) handling of a generic device.
 };
 #endif