]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSpListItem.h
Bug fix - the dep energy should be divided by the MIP energy to form the counts
[u/mrichter/AliRoot.git] / ITS / AliITSpListItem.h
index ce1614fd867626d0e365540e11e99925b1dcdcc9..8217fb1fd9d45fdc994c264e26e7ad64c0a6d9e9 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef ALIITSPLISTITEM_H
 #define ALIITSPLISTITEM_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+/* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice     */
 
 /* $Id$ */
@@ -20,9 +20,13 @@ class AliITSpListItem: public TObject {
     // Class destrutor
     virtual ~AliITSpListItem();
     // Copy Oporator
-    AliITSpListItem(AliITSpListItem &source);
-    // = Opoerator
+    AliITSpListItem(const AliITSpListItem &source);
+    // = Operator
     virtual AliITSpListItem& operator=(const AliITSpListItem &source);
+    // Building methods: they set completely the status of the object
+    void Build(Int_t module,Int_t index,Double_t noise);
+    void Build(Int_t track,Int_t hit,Int_t module,Int_t index,Double_t signal);
+    void Build(const AliITSpListItem &source);
     // Returns the signal value in the list of signals
     virtual Double_t GetSignal(Int_t i) const {
                            return ( (i>=0&&i<fgksize) ? fSignal[i] : 0.0);}
@@ -66,6 +70,12 @@ class AliITSpListItem: public TObject {
     void Print(ostream *os) const;
     // Standard ascii class read function
     void Read(istream *is);
+    virtual void Print(Option_t *option="") const {TObject::Print(option);}
+    virtual Int_t Read(const char *name) {return TObject::Read(name);}
+    // Check if the item is used or marked as unused
+    Bool_t IsUsed() const {return fUsed;}
+    // Mark the object as unused
+    void MarkUnused()  {fUsed = kFALSE;}
     // Returns max size of array for for Tracks, Hits, and signals.
     static Int_t GetMaxKept() {return fgksize;};
 
@@ -79,8 +89,9 @@ class AliITSpListItem: public TObject {
     Double_t fTsignal;        // Total signal (no noise)
     Double_t fNoise;          // Total noise, coupling, ...
     Double_t fSignalAfterElect; // Signal after electronics
+    Bool_t fUsed;              //! kTRUE if the item is built and in use
 
-    ClassDef(AliITSpListItem,3) // Item list of signals and track numbers
+    ClassDef(AliITSpListItem,4) // Item list of signals and track numbers
 };     
 // Input and output functions for standard C++ input/output.
 ostream & operator<<(ostream &os,AliITSpListItem &source);