]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RALICE/AliCalcluster.h
10-feb-2003 NvE Class AliSignal modified such that also signals without errors can...
[u/mrichter/AliRoot.git] / RALICE / AliCalcluster.h
1 #ifndef ALICALCLUSTER_H
2 #define ALICALCLUSTER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 // $Id$
7
8 #include "Riostream.h"
9 #include <math.h>
10  
11 #include "TObjArray.h"
12 #include "TString.h"
13  
14 #include "AliCalmodule.h"
15 #include "AliMath.h"
16  
17 class AliCalcluster : public AliSignal
18 {
19  public:
20   AliCalcluster();                   // Default constructor, all data initialised to 0
21   ~AliCalcluster();                  // Default destructor
22   AliCalcluster(AliCalmodule& m);    // Create new cluster starting at module m
23   Int_t GetRow();                    // Return row number of cluster center
24   Int_t GetColumn();                 // Return column number of cluster center
25   Int_t GetNmodules();               // Return number of modules in cluster
26   Float_t GetRowDispersion();        // Return normalised row dispersion of cluster
27   Float_t GetColumnDispersion();     // Return normalised column dispersion of cluster
28   void Start(AliCalmodule& m);       // Reset cluster data to start with module m
29   void Add(AliCalmodule& m);         // Add module data to cluster
30   void AddVetoSignal(AliSignal& s,Int_t extr=1); // Associate (extrapolated) signal
31   void AddVetoSignal(AliSignal* s,Int_t extr=1) { AddVetoSignal(*s,extr); }
32   AliSignal* GetVetoSignal(Int_t j); // Access to veto signal number j
33   Int_t GetNvetos();                 // Provide the number of veto signals
34   Float_t GetVetoLevel();            // Provide confidence level of best associated veto hit
35   Int_t HasVetoHit(Double_t cl);     // Check for ass. veto hit with conf. level > cl
36  
37  protected:
38   AliCalmodule* fCenter; // Pointer to the central module of the cluster
39   Int_t fNmods;          // The number of modules in the cluster
40   Float_t fRowdisp;      // Row dispersion of cluster (not normalised)
41   Float_t fColdisp;      // Column dispersion of cluster (not normalised)
42   Int_t fNvetos;         // The number of associated veto signals
43   TObjArray* fVetos;     // The array of associated veto signals
44  
45  ClassDef(AliCalcluster,3) // Description of a cluster of calorimeter modules.
46 };
47 #endif