FairRoot/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 
32 public:
33 
34  // Constructors
35  PndEmcClusterDistances(const PndEmcCluster &cluster, const TClonesArray *digiArray);
37 
38  // Destructor
39  virtual ~PndEmcClusterDistances();
40 
41  Double_t RadialDistance(const PndEmcDigi * const) const;
42  // This is the radial distance (in cm) of the digi from the cluster
43  // centroid in a plane containing the estimated shower max (assumed EM)
44  // whose normal points back to the IP.
45 
46  Double_t AngularDistance(const PndEmcDigi * const) const;
47  // Just sqrt( dTheta**2 + dPhi**2). In mr.
48 
49  Double_t AngularSeparation(const PndEmcDigi * const) const;
50 
51  // The angle between the cluster centroid and the digi in question, in mr.
52 
53 
54 private:
55 
57 
58  // Data members
59  TVector3 *fShowerMaxLocation;
60  TVector3 *fClusterLocation;
66 
67  ClassDef(PndEmcClusterDistances,1)
68 };
69 
70 #endif // PNDEMCCLUSTERDISTANCES_HH
represents the reconstructed hit of one emc crystal
Definition: PndEmcDigi.h:40
represents coordinates of one crystal
Definition: PndEmcXtal.h:36
Double_t AngularDistance(const PndEmcDigi *const) const
PndEmcClusterDistances(const PndEmcCluster &cluster, const TClonesArray *digiArray)
Double_t
PndEmcClusterDistances & operator=(const PndEmcClusterDistances &)
a cluster (group of neighboring crystals) of hit emc crystals
Definition: PndEmcCluster.h:29
Double_t AngularSeparation(const PndEmcDigi *const) const
Double_t RadialDistance(const PndEmcDigi *const) const