ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/BasicCluster.h
Revision: 1.13
Committed: Tue Nov 24 15:57:45 2009 UTC (15 years, 5 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_013pre1, Mit_012i, Mit_012h, Mit_012g, Mit_012f, Mit_012e, Mit_012d, Mit_012c
Changes since 1.12: +10 -1 lines
Log Message:
Et

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.13 // $Id: BasicCluster.h,v 1.12 2009/04/08 10:22:59 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.13 Double_t Et() const;
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.12 ThreeVectorC Pos() const { return fPoint.V(); }
33 sixie 1.1 void Print(Option_t *opt="") const;
34 loizides 1.12 Double_t Rho() const { return fPoint.Rho(); }
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 loizides 1.13
47     //--------------------------------------------------------------------------------------------------
48     inline Double_t mithep::BasicCluster::Et() const
49     {
50     // Return transverse energy.
51    
52     return fEnergy*fPoint.Rho()/fPoint.V().R();
53     }
54 sixie 1.1 #endif