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 
32 
33  public:
34  // Constructors
35  PndEmcClusterMoments(const PndEmcCluster &cluster, const TClonesArray *digiArray);
37 
38  // Destructor
39  virtual ~PndEmcClusterMoments();
40 
41  // Selectors (const)
42 
43  // Second moment of energy about centroid
44  virtual double SecondMoment() const;
45  virtual double SecondMomentTP() const;
46  // First moment wght energy and theta
47  virtual double Theta1() const;
48  // First moment wght energy and phi
49  virtual double Phi1() const;
50  // Second moment wght energy and theta
51  virtual double Theta2() const;
52  // Second moment wght energy and phi
53  virtual double Phi2() const;
54  // First moment wrt major axis
55  virtual double Major1() const;
56  // Second moment wrt major axis
57  virtual double Major2() const;
58  // First moment wrt minor axis
59  virtual double Minor1() const;
60  // Second moment wrt minor axis
61  virtual double Minor2() const;
62  // First moment of energy about centre
63  virtual TVector3 Centre1() const;
64  // Second moment of energy about centre
65  virtual TVector3 Centre2() const;
66 
67  // Printing
68  virtual void Print(const Option_t *opt = "") const;
69 
70  private:
72  PndEmcClusterMoments &operator=(const PndEmcClusterMoments &other);
73 
74  ClassDef(PndEmcClusterMoments, 1)
75 };
76 
77 #endif // PNDEMCCLUSTERMOMENTS_H
virtual double SecondMomentTP() const
virtual double Phi1() const
virtual double Major2() const
stores crystal index coordinates (x,y) or (theta,phi)
virtual TVector3 Centre2() const
virtual double Minor1() const
virtual double Phi2() const
virtual void Print(const Option_t *opt="") const
virtual double SecondMoment() const
virtual double Minor2() const
virtual double Theta2() const
virtual double Major1() const
virtual ~PndEmcClusterMoments()
virtual double Theta1() const
virtual TVector3 Centre1() const