PandaRoot
PndEmcClusterDistances.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // File and Version Information:
3 //
4 // Description:
5 // Class PndEmcClusterDistances.
6 //
7 // Environment:
8 // Software developed for the BaBar Detector at the SLAC B-Factory.
9 //
10 // Author List:
11 // Phil Strother Originator
12 //
13 // Copyright Information:
14 // Copyright (C) 1998 University of Edinburgh
15 //
16 // Dima Melnichuk, adaption for pandaroot
17 //------------------------------------------------------------------------
18 //#pragma once
19 #ifndef PNDEMCCLUSTERDISTANCES_H
20 #define PNDEMCCLUSTERDISTANCES_H
21 
23 #include "TObject.h"
24 
25 class TVector3;
26 class PndEmcXtal;
27 class PndEmcDigi;
28 
30 
31  public:
32  // Constructors
33  PndEmcClusterDistances(const PndEmcCluster &cluster, const TClonesArray *digiArray);
35 
36  // Destructor
37  virtual ~PndEmcClusterDistances();
38 
39  Double_t RadialDistance(const PndEmcDigi *const) const;
40  // This is the radial distance (in cm) of the digi from the cluster
41  // centroid in a plane containing the estimated shower max (assumed EM)
42  // whose normal points back to the IP.
43 
44  Double_t AngularDistance(const PndEmcDigi *const) const;
45  // Just sqrt( dTheta**2 + dPhi**2). In mr.
46 
47  Double_t AngularSeparation(const PndEmcDigi *const) const;
48 
49  // The angle between the cluster centroid and the digi in question, in mr.
50 
51  private:
52  PndEmcClusterDistances &operator=(const PndEmcClusterDistances &) { return *this; };
53 
54  // Data members
55  TVector3 *fShowerMaxLocation;
56  TVector3 *fClusterLocation;
57  PndEmcXtal *fTheGeom;
58  TVector3 *fTheNormalToFrontFace;
59  Double_t fDistanceOfPlane;
60  Double_t fClusPhi;
61  Double_t fClusTheta;
62 
63  ClassDef(PndEmcClusterDistances, 1)
64 };
65 
66 #endif // PNDEMCCLUSTERDISTANCES_HH
represents coordinates of one crystal
Definition: PndEmcXtal.h:35
Double_t RadialDistance(const PndEmcDigi *const) const
PndEmcClusterDistances(const PndEmcCluster &cluster, const TClonesArray *digiArray)
virtual ~PndEmcClusterDistances()
Double_t AngularDistance(const PndEmcDigi *const) const
Double_t AngularSeparation(const PndEmcDigi *const) const