FairRoot/PandaRoot
PndEmcClusterMoments.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // File and Version Information:
3 //
4 // Description:
5 // Class PndEmcClusterMoments.
6 //
7 // Environment:
8 // Software developed for the BaBar Detector at the SLAC B-Factory.
9 //
10 // Author List:
11 // Stephen J. Gowdy Originator
12 // Phil Strother Originator
13 //
14 // Copyright Information:
15 // Copyright (C) 1998 University of Edinburgh
16 //
17 // Dima Melnichuk, adaption for pandaroot
18 //------------------------------------------------------------------------
19 //#pragma once
20 #ifndef PNDEMCCLUSTERMOMENTS_H
21 #define PNDEMCCLUSTERMOMENTS_H
22 
24 #include "TObject.h"
25 #include <iostream>
26 
27 class TVector3;
29 class PndEmcDigi;
30 
31 
33 {
34 
35 public:
36 
37  // Constructors
38  PndEmcClusterMoments(const PndEmcCluster &cluster, const TClonesArray *digiArray);
40 
41  // Destructor
42  virtual ~PndEmcClusterMoments();
43 
44  // Selectors (const)
45 
46  // Second moment of energy about centroid
47  virtual double SecondMoment() const;
48  virtual double SecondMomentTP() const;
49  // First moment wght energy and theta
50  virtual double Theta1() const;
51  // First moment wght energy and phi
52  virtual double Phi1() const;
53  // Second moment wght energy and theta
54  virtual double Theta2() const;
55  // Second moment wght energy and phi
56  virtual double Phi2() const;
57  // First moment wrt major axis
58  virtual double Major1() const;
59  // Second moment wrt major axis
60  virtual double Major2() const;
61  // First moment wrt minor axis
62  virtual double Minor1() const;
63  // Second moment wrt minor axis
64  virtual double Minor2() const;
65  // First moment of energy about centre
66  virtual TVector3 Centre1() const;
67  // Second moment of energy about centre
68  virtual TVector3 Centre2() const;
69 
70  // Printing
71  virtual void Print(const Option_t* opt ="") const;
72 
73 
74 private:
75 
78 
79  ClassDef(PndEmcClusterMoments,1)
80 };
81 
82 #endif // PNDEMCCLUSTERMOMENTS_H
represents the reconstructed hit of one emc crystal
Definition: PndEmcDigi.h:40
PndEmcClusterMoments & operator=(const PndEmcClusterMoments &other)
virtual double Phi2() const
virtual double Theta2() const
stores crystal index coordinates (x,y) or (theta,phi)
virtual double Major1() const
virtual TVector3 Centre2() const
virtual void Print(const Option_t *opt="") const
virtual TVector3 Centre1() const
a cluster (group of neighboring crystals) of hit emc crystals
Definition: PndEmcCluster.h:29
virtual double SecondMomentTP() const
virtual double Phi1() const
virtual double Theta1() const
virtual double Minor1() const
virtual double Major2() const
virtual double SecondMoment() const
virtual double Minor2() const