ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/BasicCluster.h
Revision: 1.7
Committed: Wed Feb 18 15:38:54 2009 UTC (16 years, 2 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.6: +5 -5 lines
Log Message:
Reworked particle interface to cache FourVectorM

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.7 // $Id: BasicCluster.h,v 1.6 2008/12/11 17:04:50 loizides Exp $
3 sixie 1.1 //
4 loizides 1.7 // BasicCluster
5 sixie 1.1 //
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.7 BasicCluster() : fEnergy(0), fAlgoId(0), fChiSq(0) {}
23     BasicCluster(Double_t e, const ThreeVector &p) :
24     fEnergy(e), fPoint(p), fAlgoId(0), fChiSq(0) {}
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