ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/BasicCluster.h
Revision: 1.6
Committed: Thu Dec 11 17:04:50 2008 UTC (16 years, 4 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_006b, Mit_006a
Changes since 1.5: +11 -11 lines
Log Message:
Cosmetics.

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.6 // $Id: BasicCluster.h,v 1.5 2008/12/09 17:46:59 loizides Exp $
3 sixie 1.1 //
4     // Basic Clusters
5     //
6 loizides 1.5 // This class holds information of basic reconstructed clusters.
7 sixie 1.1 //
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 loizides 1.6 BasicCluster() : fEnergy(0), fPoint(0,0,0) {}
23 loizides 1.5 BasicCluster(Double_t Energy, ThreeVector Point) : fEnergy(Energy), fPoint(Point) {}
24 loizides 1.3 ~BasicCluster() {}
25 sixie 1.1
26 loizides 1.6 Int_t AlgoId() const { return fAlgoId; }
27     Double_t ChiSq() const { return fChiSq; }
28     Double_t Energy() const { return fEnergy; }
29 loizides 1.5 Double_t Eta() const { return fPoint.Eta(); }
30     EObjType ObjType() const { return kBasicCluster; }
31     Double_t Phi() const { return fPoint.Phi(); }
32 loizides 1.6 Double_t X() const { return fPoint.X(); }
33     Double_t Y() const { return fPoint.Y(); }
34     Double_t Z() const { return fPoint.Z(); }
35 sixie 1.1 void Print(Option_t *opt="") const;
36 loizides 1.6 void SetAlgoId(Int_t algoId) { fAlgoId = algoId; }
37     void SetChiSq(Double_t chiSq) { fChiSq = chiSq; }
38     void SetEnergy(Double_t energy) { fEnergy = energy; }
39 loizides 1.5 void SetXYZ(Double_t x, Double_t y, Double_t z) { fPoint.SetXYZ(x,y,z); }
40 sixie 1.1
41     protected:
42    
43 loizides 1.5 Double32_t fEnergy; //assigned energy
44     ThreeVector32 fPoint; //centroid Position
45     Int_t fAlgoId; //algorithm ID: island = 0, hybrid = 1, fixedMatrix = 2,
46     // dynamicHybrid = 3, multi5x5 = 4
47     Double32_t fChiSq; //chi-squared (obsolete since it is always put to zero in CMSSW)
48 sixie 1.1
49 loizides 1.5 ClassDef(BasicCluster, 1) // Basic cluster class
50 sixie 1.1 };
51     }
52     #endif