ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/BasicCluster.h
Revision: 1.4
Committed: Fri Nov 14 14:46:35 2008 UTC (16 years, 5 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_006
Changes since 1.3: +4 -4 lines
Log Message:
Convert more things to Double32

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 bendavid 1.4 // $Id: BasicCluster.h,v 1.3 2008/09/17 04:21:16 loizides Exp $
3 sixie 1.1 //
4     // Basic Clusters
5     //
6     // Details to be worked out...
7     //
8     // Authors: S.Xie
9     //--------------------------------------------------------------------------------------------------
10    
11 loizides 1.2 #ifndef MITANA_DATATREE_BASICCLUSTER_H
12     #define MITANA_DATATREE_BASICCLUSTER_H
13 sixie 1.1
14     #include <TMath.h>
15     #include "MitAna/DataTree/interface/DataObject.h"
16    
17     namespace mithep
18     {
19     class BasicCluster : public DataObject
20     {
21     public:
22     BasicCluster() : fEnergy(0.0), fPoint(0,0,0) {}
23     BasicCluster(Double_t Energy, ThreeVector Point) :
24     fEnergy(Energy), fPoint(Point) {}
25 loizides 1.3 ~BasicCluster() {}
26 sixie 1.1
27     Int_t AlgoId() const { return fAlgoId; }
28     Double_t ChiSq() const { return fChiSq; }
29     Double_t Energy() const { return fEnergy; }
30     Double_t Eta() const { return fPoint.Eta(); }
31     Double_t Phi() const { return fPoint.Phi(); }
32     Double_t X() const { return fPoint.X(); }
33     Double_t Y() const { return fPoint.Y(); }
34     Double_t Z() const { return fPoint.Z(); }
35     void Print(Option_t *opt="") const;
36    
37     void SetAlgoId(Int_t AlgoId) { fAlgoId = AlgoId; }
38     void SetChiSq(Double_t ChiSq) { fChiSq = ChiSq; }
39     void SetEnergy(Double_t Energy) { fEnergy = Energy; }
40     void SetXYZ(Double_t x, Double_t y, Double_t z) { fPoint.SetXYZ(x,y,z); }
41    
42     protected:
43    
44 bendavid 1.4 Double32_t fEnergy; //BasicCluster energy
45     ThreeVector32 fPoint; //Centroid Position
46 sixie 1.1 Int_t fAlgoId; //Algorithm ID: island = 0, hybrid = 1, fixedMatrix = 2,
47     //dynamicHybrid = 3, multi5x5 = 4
48 bendavid 1.4 Double32_t fChiSq; //Chi sq
49 sixie 1.1
50     ClassDef(BasicCluster, 1) // BasicCluster class
51     };
52     }
53     #endif