1 |
sixie |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.2 |
// $Id: BasicCluster.h,v 1.1 2008/08/08 11:12:37 sixie Exp $
|
3 |
sixie |
1.1 |
//
|
4 |
|
|
// Basic Clusters
|
5 |
|
|
//
|
6 |
|
|
// Details to be worked out...
|
7 |
|
|
//
|
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 |
|
|
BasicCluster() : fEnergy(0.0), fPoint(0,0,0) {}
|
23 |
|
|
BasicCluster(Double_t Energy, ThreeVector Point) :
|
24 |
|
|
fEnergy(Energy), fPoint(Point) {}
|
25 |
|
|
virtual ~BasicCluster() {}
|
26 |
|
|
|
27 |
|
|
Int_t AlgoId() const { return fAlgoId; }
|
28 |
|
|
Double_t ChiSq() const { return fChiSq; }
|
29 |
|
|
Double_t Energy() const { return fEnergy; }
|
30 |
|
|
Double_t Eta() const { return fPoint.Eta(); }
|
31 |
|
|
Double_t Phi() const { return fPoint.Phi(); }
|
32 |
|
|
Double_t X() const { return fPoint.X(); }
|
33 |
|
|
Double_t Y() const { return fPoint.Y(); }
|
34 |
|
|
Double_t Z() const { return fPoint.Z(); }
|
35 |
|
|
void Print(Option_t *opt="") const;
|
36 |
|
|
|
37 |
|
|
void SetAlgoId(Int_t AlgoId) { fAlgoId = AlgoId; }
|
38 |
|
|
void SetChiSq(Double_t ChiSq) { fChiSq = ChiSq; }
|
39 |
|
|
void SetEnergy(Double_t Energy) { fEnergy = Energy; }
|
40 |
|
|
void SetXYZ(Double_t x, Double_t y, Double_t z) { fPoint.SetXYZ(x,y,z); }
|
41 |
|
|
|
42 |
|
|
protected:
|
43 |
|
|
|
44 |
|
|
Double_t fEnergy; //BasicCluster energy
|
45 |
|
|
ThreeVector fPoint; //Centroid Position
|
46 |
|
|
Int_t fAlgoId; //Algorithm ID: island = 0, hybrid = 1, fixedMatrix = 2,
|
47 |
|
|
//dynamicHybrid = 3, multi5x5 = 4
|
48 |
|
|
Double_t fChiSq; //Chi sq
|
49 |
|
|
|
50 |
|
|
ClassDef(BasicCluster, 1) // BasicCluster class
|
51 |
|
|
};
|
52 |
|
|
}
|
53 |
|
|
#endif
|