3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
10 class AliDevice : public AliSignal
13 AliDevice(); // Default constructor
14 virtual ~AliDevice(); // Default destructor
15 AliDevice(const AliDevice& dev); // Copy constructor
16 virtual TObject* Clone(const char* name="") const; // Make a deep copy and provide its pointer
17 void SetHitCopy(Int_t j); // (De)activate creation of private copies of hits
18 Int_t GetHitCopy() const; // Provide HitCopy flag value
19 void AddHit(AliSignal& s); // Register an AliSignal object as a hit to this module
20 void RemoveHit(AliSignal& s); // Remove AliSignal object as hit from this module
21 void RemoveHits(); // Remove all AliSignals as hits from this module
22 Int_t GetNhits() const; // Provide number of registered hits
23 AliSignal* GetHit(Int_t j) const; // Access to the AliSignal registered as hit number j
24 TObjArray* GetHits(); // Provide the references to all the registered hits
25 virtual void Reset(Int_t mode=0); // Reset registered hits and AliSignal attributes
26 void ShowHit(Int_t j=0) const; // Show data of the j-th hit (j=0 means all hits)
27 virtual void Data(TString f="car") const; // Print device and all signal info for coord. frame f
28 TObjArray SortHits(TString name,Int_t mode=-1,TObjArray* hits=0) const; // Sort hits by named signal value
29 TObjArray SortHits(Int_t idx=1,Int_t mode=-1,TObjArray* hits=0) const; // Sort hits by indexed signal value
32 Int_t fHitCopy; // Flag to denote making private copies of added hits
33 TObjArray* fHits; // Array to hold the associated hits
35 ClassDef(AliDevice,1) // Signal (Hit) handling of a generic device.