ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/BasicCluster.h
Revision: 1.8
Committed: Tue Mar 3 18:02:48 2009 UTC (16 years, 2 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre2, Mit_008pre1
Changes since 1.7: +4 -11 lines
Log Message:
Removed unneeded algoid and chi squared

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 bendavid 1.8 // $Id: BasicCluster.h,v 1.7 2009/02/18 15:38:54 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 bendavid 1.8 BasicCluster() : fEnergy(0) {}
23 loizides 1.7 BasicCluster(Double_t e, const ThreeVector &p) :
24 bendavid 1.8 fEnergy(e), fPoint(p) {}
25 sixie 1.1
26 loizides 1.6 Double_t Energy() const { return fEnergy; }
27 loizides 1.5 Double_t Eta() const { return fPoint.Eta(); }
28     EObjType ObjType() const { return kBasicCluster; }
29     Double_t Phi() const { return fPoint.Phi(); }
30 loizides 1.6 Double_t X() const { return fPoint.X(); }
31     Double_t Y() const { return fPoint.Y(); }
32     Double_t Z() const { return fPoint.Z(); }
33 sixie 1.1 void Print(Option_t *opt="") const;
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.5 Double32_t fEnergy; //assigned energy
40     ThreeVector32 fPoint; //centroid Position
41 sixie 1.1
42 loizides 1.5 ClassDef(BasicCluster, 1) // Basic cluster class
43 sixie 1.1 };
44     }
45     #endif