8 |
|
// Authors: S.Xie |
9 |
|
//-------------------------------------------------------------------------------------------------- |
10 |
|
|
11 |
< |
#ifndef DATATREE_SUPERCLUSTER_H |
12 |
< |
#define DATATREE_SUPERCLUSTER_H |
11 |
> |
#ifndef MITANA_DATATREE_SUPERCLUSTER_H |
12 |
> |
#define MITANA_DATATREE_SUPERCLUSTER_H |
13 |
|
|
14 |
|
#include <TMath.h> |
15 |
|
#include "MitAna/DataTree/interface/DataObject.h" |
24 |
|
SuperCluster() : fEnergy(0.0), fPoint(0,0,0) , fRawEnergy(-1.0) {} |
25 |
|
~SuperCluster() {} |
26 |
|
|
27 |
< |
const BasicCluster *Cluster(UInt_t i) const { return fClusters.At(i); } |
28 |
< |
UInt_t ClusterSize() const { return fClusters.GetEntries(); } |
29 |
< |
Double_t Energy() const { return fEnergy; } |
30 |
< |
Double_t Eta() const { return fPoint.Eta(); } |
31 |
< |
Double_t EtaWidth() const { return fEtaWidth; } |
32 |
< |
Double_t Phi() const { return fPoint.Phi(); } |
33 |
< |
Double_t PhiWidth() const { return fPhiWidth; } |
34 |
< |
Double_t PreshowerEnergy() const { return fPreshowerEnergy; } |
35 |
< |
Double_t RawEnergy() const { return fRawEnergy; } |
36 |
< |
const BasicCluster *Seed() const; |
37 |
< |
Double_t X() const { return fPoint.X(); } |
38 |
< |
Double_t Y() const { return fPoint.Y(); } |
39 |
< |
Double_t Z() const { return fPoint.Z(); } |
27 |
> |
const BasicCluster *Cluster(UInt_t i) const { return fClusters.At(i); } |
28 |
> |
UInt_t ClusterSize() const { return fClusters.GetEntries(); } |
29 |
> |
Double_t Energy() const { return fEnergy; } |
30 |
> |
Double_t Eta() const { return fPoint.Eta(); } |
31 |
> |
Double_t EtaWidth() const { return fEtaWidth; } |
32 |
> |
Double_t Phi() const { return fPoint.Phi(); } |
33 |
> |
Double_t PhiWidth() const { return fPhiWidth; } |
34 |
> |
Double_t PreshowerEnergy() const { return fPreshowerEnergy; } |
35 |
> |
Double_t RawEnergy() const { return fRawEnergy; } |
36 |
> |
const BasicCluster *Seed() const; |
37 |
> |
Double_t X() const { return fPoint.X(); } |
38 |
> |
Double_t Y() const { return fPoint.Y(); } |
39 |
> |
Double_t Z() const { return fPoint.Z(); } |
40 |
|
void Print(Option_t *opt="") const; |
41 |
|
|
42 |
|
void AddCluster( BasicCluster *Cluster) { fClusters.Add(Cluster); } |
57 |
|
Double_t fPreshowerEnergy; //Energy in the preshower |
58 |
|
Double_t fPhiWidth; //Width in Phi |
59 |
|
Double_t fRawEnergy; //Supercluster raw energy |
60 |
< |
RefArray<BasicCluster> fClusters; //||BasicClusters in this SuperCluster |
60 |
> |
RefArray<BasicCluster,1024> fClusters; //BasicClusters in this SuperCluster |
61 |
|
TRef fSeedRef; //the seed cluster |
62 |
|
|
63 |
< |
ClassDef(SuperCluster, 1) // Generic particle class |
63 |
> |
ClassDef(SuperCluster, 1) // Generic particle class |
64 |
|
}; |
65 |
|
} |
66 |
|
|