FairRoot/PandaRoot
PndEmcClusterProperties.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------
2 // Software developed for the BaBar Detector at the SLAC B-Factory.
3 // Adapted for the PANDA experiment at GSI
4 //
5 // Author List:
6 // Xiaorong Shi Lawrence Livermore National Lab
7 // Steve Playfer University of Edinburgh
8 // Stephen Gowdy University of Edinburgh
9 //
10 //-----------------------------------------------------------------------
11 //#pragma once
12 #ifndef PNDEMCCLUSTERPROPERTIES_H
13 #define PNDEMCCLUSTERPROPERTIES_H
14 
15 #include "TObject.h"
16 #include "PndEmcDataTypes.h"
18 #include "PndEmcCluster.h"
19 #include "TMatrixD.h"
20 #include <vector>
21 
22 class PndEmcDigi;
24 class TVector3;
25 
26 
28 {
29 
30 public:
31 
32  // Constructors
33  PndEmcClusterProperties(const PndEmcCluster &cluster, const TClonesArray *digiArray);
34 
35  // Destructor
36  virtual ~PndEmcClusterProperties();
37 
38  // Total Energy of Cluster
39  virtual Double_t Energy() const;
40 
41  // Position of the cluster
42  TVector3 Where(TString method, std::vector<Double_t> params);
43  // Position of the cluster - linear-logarithmic weighting
44  TVector3 LiloWhere(std::vector<Double_t> params);
45  // Position of the cluster - linear weighting
46  TVector3 LinearWhere();
47  // Centre of gravity centroid method/
48  TVector3 GravWhere();
49 
50  // Angle of major axis wrt phi
51  virtual Double_t Major_axis() const;
52 
53  virtual Double_t Mass() const; // Cluster mass
54 
55  ClassDef(PndEmcClusterProperties,1)
56 };
57 
58 
59 #endif // PNDEMCCLUSTERPROPERTIES_H
represents the reconstructed hit of one emc crystal
Definition: PndEmcDigi.h:40
TVector3 Where(TString method, std::vector< Double_t > params)
stores crystal index coordinates (x,y) or (theta,phi)
PndEmcClusterProperties(const PndEmcCluster &cluster, const TClonesArray *digiArray)
Double_t
virtual Double_t Major_axis() const
a cluster (group of neighboring crystals) of hit emc crystals
Definition: PndEmcCluster.h:29
virtual Double_t Energy() const
TVector3 LiloWhere(std::vector< Double_t > params)
virtual Double_t Mass() const