1 |
sixie |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.5 |
// $Id: BasicCluster.h,v 1.4 2008/11/14 14:46:35 bendavid Exp $
|
3 |
sixie |
1.1 |
//
|
4 |
|
|
// Basic Clusters
|
5 |
|
|
//
|
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 |
|
|
BasicCluster() : fEnergy(0.0), fPoint(0,0,0) {}
|
23 |
loizides |
1.5 |
BasicCluster(Double_t Energy, ThreeVector Point) : fEnergy(Energy), fPoint(Point) {}
|
24 |
loizides |
1.3 |
~BasicCluster() {}
|
25 |
sixie |
1.1 |
|
26 |
|
|
Int_t AlgoId() const { return fAlgoId; }
|
27 |
loizides |
1.5 |
Double_t ChiSq() const { return fChiSq; }
|
28 |
sixie |
1.1 |
Double_t Energy() const { return fEnergy; }
|
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 |
sixie |
1.1 |
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 |
loizides |
1.5 |
void SetAlgoId(Int_t algoId) { fAlgoId = algoId; }
|
37 |
|
|
void SetChiSq(Double_t chiSq) { fChiSq = chiSq; }
|
38 |
|
|
void SetEnergy(Double_t energy) { fEnergy = energy; }
|
39 |
|
|
void SetXYZ(Double_t x, Double_t y, Double_t z) { fPoint.SetXYZ(x,y,z); }
|
40 |
sixie |
1.1 |
|
41 |
|
|
protected:
|
42 |
|
|
|
43 |
loizides |
1.5 |
Double32_t fEnergy; //assigned energy
|
44 |
|
|
ThreeVector32 fPoint; //centroid Position
|
45 |
|
|
Int_t fAlgoId; //algorithm ID: island = 0, hybrid = 1, fixedMatrix = 2,
|
46 |
|
|
// dynamicHybrid = 3, multi5x5 = 4
|
47 |
|
|
Double32_t fChiSq; //chi-squared (obsolete since it is always put to zero in CMSSW)
|
48 |
sixie |
1.1 |
|
49 |
loizides |
1.5 |
ClassDef(BasicCluster, 1) // Basic cluster class
|
50 |
sixie |
1.1 |
};
|
51 |
|
|
}
|
52 |
|
|
#endif
|