ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/BasicCluster.h
Revision: 1.12
Committed: Wed Apr 8 10:22:59 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_012b, Mit_012a, Mit_012, Mit_011a, Mit_011, Mit_010a, Mit_010, Mit_009c, Mit_009b, Mit_009a, Mit_009
Changes since 1.11: +3 -2 lines
Log Message:
Consisten treatment of return of ThreeVector.

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.12 // $Id: BasicCluster.h,v 1.11 2009/04/06 09:51:04 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.12 ThreeVectorC Pos() const { return fPoint.V(); }
32 sixie 1.1 void Print(Option_t *opt="") const;
33 loizides 1.12 Double_t Rho() const { return fPoint.Rho(); }
34 loizides 1.6 void SetEnergy(Double_t energy) { fEnergy = energy; }
35 loizides 1.5 void SetXYZ(Double_t x, Double_t y, Double_t z) { fPoint.SetXYZ(x,y,z); }
36 sixie 1.1
37     protected:
38 bendavid 1.8
39 loizides 1.9 Double32_t fEnergy; //[0,0,14]assigned energy
40     Vect3C fPoint; //centroid Position
41 sixie 1.1
42 loizides 1.5 ClassDef(BasicCluster, 1) // Basic cluster class
43 sixie 1.1 };
44     }
45     #endif