ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/BasicCluster.h
Revision: 1.11
Committed: Mon Apr 6 09:51:04 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.10: +2 -1 lines
Log Message:
Added pos getter.

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.11 // $Id: BasicCluster.h,v 1.10 2009/03/20 18:23:27 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 loizides 1.9 #include "MitCommon/DataFormats/interface/Vect3C.h"
16 sixie 1.1 #include "MitAna/DataTree/interface/DataObject.h"
17    
18     namespace mithep
19     {
20     class BasicCluster : public DataObject
21     {
22     public:
23 bendavid 1.8 BasicCluster() : fEnergy(0) {}
24 loizides 1.7 BasicCluster(Double_t e, const ThreeVector &p) :
25 bendavid 1.8 fEnergy(e), fPoint(p) {}
26 sixie 1.1
27 loizides 1.6 Double_t Energy() const { return fEnergy; }
28 loizides 1.5 Double_t Eta() const { return fPoint.Eta(); }
29     EObjType ObjType() const { return kBasicCluster; }
30     Double_t Phi() const { return fPoint.Phi(); }
31 loizides 1.11 const Vect3C &Pos() const { return fPoint; }
32 sixie 1.1 void Print(Option_t *opt="") const;
33 loizides 1.6 void SetEnergy(Double_t energy) { fEnergy = energy; }
34 loizides 1.5 void SetXYZ(Double_t x, Double_t y, Double_t z) { fPoint.SetXYZ(x,y,z); }
35 sixie 1.1
36     protected:
37 bendavid 1.8
38 loizides 1.9 Double32_t fEnergy; //[0,0,14]assigned energy
39     Vect3C fPoint; //centroid Position
40 sixie 1.1
41 loizides 1.5 ClassDef(BasicCluster, 1) // Basic cluster class
42 sixie 1.1 };
43     }
44     #endif