ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/BasicCluster.h
Revision: 1.9
Committed: Wed Mar 18 15:44:31 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.8: +7 -6 lines
Log Message:
Introduced Double32_t [0,0,14] consistently. Updated class descriptions.

File Contents

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