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 
27 
28  public:
29  // Constructors
30  PndEmcClusterProperties(const PndEmcCluster &cluster, const TClonesArray *digiArray);
31 
32  // Destructor
33  virtual ~PndEmcClusterProperties();
34 
35  // Total Energy of Cluster
36  virtual Double_t Energy() const;
37 
38  // Position of the cluster
39  TVector3 Where(TString method, std::vector<Double_t> params);
40  // Position of the cluster - linear-logarithmic weighting
41  TVector3 LiloWhere(std::vector<Double_t> params);
42  // Position of the cluster - linear weighting
43  TVector3 LinearWhere();
44  // Centre of gravity centroid method/
45  TVector3 GravWhere();
46 
47  // Angle of major axis wrt phi
48  virtual Double_t Major_axis() const;
49 
50  virtual Double_t Mass() const; // Cluster mass
51 
52  ClassDef(PndEmcClusterProperties, 1)
53 };
54 
55 #endif // PNDEMCCLUSTERPROPERTIES_H
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)
virtual Double_t Mass() const
virtual Double_t Energy() const
virtual ~PndEmcClusterProperties()
TVector3 LiloWhere(std::vector< Double_t > params)
virtual Double_t Major_axis() const