ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/SuperCluster.h
Revision: 1.12
Committed: Wed Apr 8 10:24:33 2009 UTC (16 years ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_011a, Mit_011, Mit_010a, Mit_010, Mit_009c, Mit_009b, Mit_009a, Mit_009
Changes since 1.11: +31 -31 lines
Log Message:
Cleanup

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.12 // $Id: SuperCluster.h,v 1.11 2009/03/18 15:44:32 loizides Exp $
3 sixie 1.1 //
4     // SuperCluster
5     //
6 loizides 1.7 // This class holds the super cluster information.
7 sixie 1.1 //
8     // Authors: S.Xie
9     //--------------------------------------------------------------------------------------------------
10    
11 loizides 1.3 #ifndef MITANA_DATATREE_SUPERCLUSTER_H
12     #define MITANA_DATATREE_SUPERCLUSTER_H
13 sixie 1.1
14     #include <TMath.h>
15 loizides 1.11 #include "MitCommon/DataFormats/interface/Vect3C.h"
16 sixie 1.1 #include "MitAna/DataTree/interface/DataObject.h"
17     #include "MitAna/DataTree/interface/BasicCluster.h"
18     #include "MitAna/DataCont/interface/RefArray.h"
19 bendavid 1.8 #include "MitAna/DataCont/interface/Ref.h"
20 sixie 1.1
21     namespace mithep
22     {
23     class SuperCluster : public DataObject
24     {
25     public:
26 loizides 1.7 SuperCluster() : fEnergy(0), fEtaWidth(0), fPreshowerEnergy(0),
27     fPhiWidth(0), fRawEnergy(0) {}
28 sixie 1.1
29 loizides 1.12 void AddCluster(const BasicCluster *c) { fClusters.Add(c); }
30     const BasicCluster *Cluster(UInt_t i) const { return fClusters.At(i); }
31     UInt_t ClusterSize() const { return fClusters.Entries(); }
32     Double_t Energy() const { return fEnergy; }
33     Double_t Eta() const { return fPoint.Eta(); }
34     Double_t EtaWidth() const { return fEtaWidth; }
35     EObjType ObjType() const { return kSuperCluster; }
36     Double_t Phi() const { return fPoint.Phi(); }
37     Double_t PhiWidth() const { return fPhiWidth; }
38     ThreeVectorC Point() const { return fPoint.V(); }
39     void Print(Option_t *opt="") const;
40     Double_t PreshowerEnergy() const { return fPreshowerEnergy; }
41     Double_t RawEnergy() const { return fRawEnergy; }
42     Double_t Rho() const { return fPoint.Rho(); }
43     const BasicCluster *Seed() const { return fSeedRef.Obj(); }
44     void SetEnergy(Double_t energy) { fEnergy = energy; }
45     void SetEtaWidth(Double_t etaWidth) { fEtaWidth = etaWidth; }
46     void SetPhiWidth(Double_t phiWidth) { fPhiWidth = phiWidth; }
47     void SetPreshowerEnergy(Double_t e) { fPreshowerEnergy = e; }
48     void SetRawEnergy(Double_t rawEnergy) { fRawEnergy = rawEnergy; }
49     void SetSeed(const BasicCluster *s) { fSeedRef = s; }
50     void SetXYZ(Double_t x, Double_t y, Double_t z) { fPoint.SetXYZ(x,y,z); }
51 sixie 1.1
52     protected:
53 loizides 1.12 Vect3C fPoint; //centroid Position
54     Double32_t fEnergy; //[0,0,14]super cluster energy
55     Double32_t fEtaWidth; //[0,0,14]width in Phi
56     Double32_t fPreshowerEnergy; //[0,0,14]energy in the preshower
57     Double32_t fPhiWidth; //[0,0,14]width in Phi
58     Double32_t fRawEnergy; //[0,0,14]super cluster raw energy
59     RefArray<BasicCluster> fClusters; //assigned basic clusters
60     Ref<BasicCluster> fSeedRef; //seed cluster
61 sixie 1.1
62 loizides 1.7 ClassDef(SuperCluster, 1) // Super cluster class
63 sixie 1.1 };
64     }
65     #endif