]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliCalorimeter.h
04-apr-2004 NvE SetMass() invoked from AliTrack::Set3Momentum to get also the energy...
[u/mrichter/AliRoot.git] / RALICE / AliCalorimeter.h
index 639df1ceeda1c004eb613088ec229d5a666e0670..0b0daef3a7e10ae3eedac88974ecafbd69eef2df 100644 (file)
 class AliCalorimeter : public TNamed
 {
  public:
-  AliCalorimeter();                                // Default constructor
-  AliCalorimeter(Int_t nrow,Int_t ncol);           // Create a calorimeter matrix
-  virtual ~AliCalorimeter();                       // Destructor
-  AliCalorimeter(AliCalorimeter& c);               // Copy constructor
-  virtual TObject* Clone(const char* name="");     // Make a deep copy and provide pointer of the copy
-  Int_t GetNrows();                                // Return number of rows of the matrix
-  Int_t GetNcolumns();                             // Return number of columns of the matrix
-  void SetSignal(Int_t row,Int_t col,Float_t s);   // Set signal for a certain module
-  void AddSignal(Int_t row,Int_t col,Float_t s);   // Add signal to a certain module
-  void AddSignal(AliCalmodule* m);                 // Add module signal to current calorimeter
-  void Reset(Int_t row,Int_t col);                 // Reset signal for a certain module
-  void Reset(Int_t mode=0);                        // Reset the complete calorimeter
-  Float_t GetSignal(Int_t row,Int_t col,Int_t mode=0); // Provide signal of a certain module
-  Int_t GetNsignals();                             // Return number of modules with a signal
-  void Group(Int_t n=1,Int_t mode=1);              // Group modules into clusters (n rings)
-  Int_t GetNclusters();                            // Return number of clusters
-  Float_t GetClusteredSignal(Int_t row,Int_t col); // Provide module signal after clustering
-  AliCalcluster* GetCluster(Int_t j);              // Access to cluster number j
-  AliCalmodule* GetModule(Int_t j);                // Access to 'fired' module number j
-  AliCalmodule* GetModule(Int_t row,Int_t col);    // Access to module at (row,col)
-  void SetEdgeOn(Int_t row,Int_t col);             // Indicate module as 'edge module'
-  void SetEdgeOff(Int_t row,Int_t col);            // Indicate module as 'non-edge module'
-  Int_t GetEdgeValue(Int_t row,Int_t col);         // Provide the edge flag of a module
-  void SetDead(Int_t row,Int_t col);               // Indicate module as 'dead module'
-  void SetAlive(Int_t row,Int_t col);              // Indicate module as 'active module'
-  Int_t GetDeadValue(Int_t row,Int_t col);         // Provide the dead flag of a module
-  void SetGain(Int_t row,Int_t col,Float_t g);     // Set the gain value for a module
-  void SetOffset(Int_t row,Int_t col,Float_t o);   // Set the offset value for a module
-  Float_t GetGain(Int_t row,Int_t col);            // Provide the gain value of a module
-  Int_t GetGainFlag(Int_t row,Int_t col);          // Provide the gain flag value of a module
-  Float_t GetOffset(Int_t row,Int_t col);          // Provide the offset value of a module
-  Int_t GetOffsetFlag(Int_t row,Int_t col);        // Provide the offset flag value of a module
+  AliCalorimeter();                                      // Default constructor
+  AliCalorimeter(Int_t nrow,Int_t ncol);                 // Create a calorimeter matrix
+  virtual ~AliCalorimeter();                             // Destructor
+  AliCalorimeter(const AliCalorimeter& c);               // Copy constructor
+  virtual TObject* Clone(const char* name="") const;     // Make a deep copy and provide pointer of the copy
+  Int_t GetNrows() const;                                // Return number of rows of the matrix
+  Int_t GetNcolumns() const;                             // Return number of columns of the matrix
+  void SetSignal(Int_t row,Int_t col,Float_t s);         // Set signal for a certain module
+  void AddSignal(Int_t row,Int_t col,Float_t s);         // Add signal to a certain module
+  void AddSignal(AliCalmodule* m);                       // Add module signal to current calorimeter
+  void Reset(Int_t row,Int_t col);                       // Reset signal for a certain module
+  void Reset(Int_t mode=0);                              // Reset the complete calorimeter
+  Float_t GetSignal(Int_t row,Int_t col,Int_t mode=0) const; // Provide signal of a certain module
+  Int_t GetNsignals() const;                             // Return number of modules with a signal
+  void Group(Int_t n=1,Int_t mode=1);                    // Group modules into clusters (n rings)
+  Int_t GetNclusters() const;                            // Return number of clusters
+  Float_t GetClusteredSignal(Int_t row,Int_t col) const; // Provide module signal after clustering
+  AliCalcluster* GetCluster(Int_t j) const;              // Access to cluster number j
+  AliCalmodule* GetModule(Int_t j) const;                // Access to 'fired' module number j
+  AliCalmodule* GetModule(Int_t row,Int_t col) const;    // Access to module at (row,col)
+  void SetEdgeOn(Int_t row,Int_t col);                   // Indicate module as 'edge module'
+  void SetEdgeOff(Int_t row,Int_t col);                  // Indicate module as 'non-edge module'
+  Int_t GetEdgeValue(Int_t row,Int_t col) const;         // Provide the edge flag of a module
+  void SetDead(Int_t row,Int_t col);                     // Indicate module as 'dead module'
+  void SetAlive(Int_t row,Int_t col);                    // Indicate module as 'active module'
+  Int_t GetDeadValue(Int_t row,Int_t col) const;         // Provide the dead flag of a module
+  void SetGain(Int_t row,Int_t col,Float_t g);           // Set the gain value for a module
+  void SetOffset(Int_t row,Int_t col,Float_t o);         // Set the offset value for a module
+  Float_t GetGain(Int_t row,Int_t col) const;            // Provide the gain value of a module
+  Int_t GetGainFlag(Int_t row,Int_t col) const;          // Provide the gain flag value of a module
+  Float_t GetOffset(Int_t row,Int_t col) const;          // Provide the offset value of a module
+  Int_t GetOffsetFlag(Int_t row,Int_t col) const;        // Provide the offset flag value of a module
   void SetPosition(Int_t row,Int_t col,Float_t* r,TString f); // Set module position
-  void SetPosition(Int_t row,Int_t col,Ali3Vector& r); // Set module position
-  void GetPosition(Int_t row,Int_t col,Float_t* r,TString f); // Return module position
-  AliPosition* GetPosition(Int_t row,Int_t col);   // Access to module position
-  TH2F* DrawModules(Float_t thresh=0.,Int_t mode=0); // Lego plot of module (corrected) signals above threshold
-  TH2F* DrawClusters(Float_t thresh=0.);           // Lego plot of cluster signals above threshold
-  void AddVetoSignal(AliSignal& s);                // Associate (extrapolated) signal
+  void SetPosition(Int_t row,Int_t col,Ali3Vector& r);   // Set module position
+  void GetPosition(Int_t row,Int_t col,Float_t* r,TString f) const; // Return module position
+  AliPosition* GetPosition(Int_t row,Int_t col) const;   // Access to module position
+  TH2F* DrawModules(Float_t thresh=0.,Int_t mode=0);     // Lego plot of module (corr.) signals above threshold
+  TH2F* DrawClusters(Float_t thresh=0.);                 // Lego plot of cluster signals above threshold
+  void AddVetoSignal(AliSignal& s);                      // Associate (extrapolated) signal
   void AddVetoSignal(AliSignal* s) { AddVetoSignal(*s); }
-  AliSignal* GetVetoSignal(Int_t j);               // Access to veto signal number j
-  Int_t GetNvetos();                               // Provide the number of veto signals
-  void SetSwapMode(Int_t swap=1);                  // Set the swapmode for the storage of the matrices
-  Int_t GetSwapMode();                             // Provide the swapmode for the storage of the matrices
+  AliSignal* GetVetoSignal(Int_t j) const;               // Access to veto signal number j
+  Int_t GetNvetos() const;                               // Provide the number of veto signals
+  void SetSwapMode(Int_t swap=1);                        // Set the swapmode for the storage of the matrices
+  Int_t GetSwapMode() const;                             // Provide the swapmode for the storage of the matrices
  
  protected:
   Int_t fNrows;                              // The number of rows
@@ -83,6 +83,6 @@ class AliCalorimeter : public TNamed
   TObjArray* fAttributes;                    //! Matrix with module attributes (e.g. gain, offset etc...)
   AliObjMatrix* fPositions;                  //! The matrix of module position pointers
  
- ClassDef(AliCalorimeter,7) // Description of a modular calorimeter system.
+ ClassDef(AliCalorimeter,8) // Description of a modular calorimeter system.
 };
 #endif