StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEEmcIUPair.h
1 #ifndef __StEEmcIUPair_h__
2 #define __StEEmcIUPair_h__
3 
4 #include "TObject.h"
5 #include "StEEmcIUPoint.h"
6 #include "TVector3.h"
7 #include <vector>
8 
9 class StEEmcIUPair : public TObject {
10 
11  public:
12 
14  StEEmcIUPair();
19  StEEmcIUPair( StEEmcIUPoint p1, StEEmcIUPoint p2, TVector3 vertex );
21  StEEmcIUPair( StEEmcIUPoint p1, StEEmcIUPoint p2, TVector3 vertex1, TVector3 vertex2 );
23  ~StEEmcIUPair(){ /* nada */ };
24 
26  StEEmcIUPair( const StEEmcIUPair &old );
27 
30  StEEmcIUPoint point(Int_t index){ return mPoint[index]; }
31 
33  Float_t mass();
35  Float_t energy();
37  Float_t zgg();
39  Float_t phigg();
41  Float_t pt();
42  Float_t pz();
44  TVector3 momentum();
46  TVector3 vertex();
47 
49  void print();
50 
51  private:
52  protected:
53 
55  void Kinematics();
56 
57  Float_t mMass;
58  Float_t mEnergy;
59  Float_t mZgg;
60  Float_t mPhigg;
61  TVector3 mMomentum;
63  TVector3 mVertex1;
64  TVector3 mVertex2;
65  TVector3 mVertex;
71 
72 };
73 
74 inline Float_t StEEmcIUPair::mass(){ return mMass; }
75 inline Float_t StEEmcIUPair::energy(){ return mEnergy; }
76 inline Float_t StEEmcIUPair::zgg(){ return mZgg; }
77 inline Float_t StEEmcIUPair::phigg(){ return mPhigg; }
78 inline Float_t StEEmcIUPair::pt(){ return mMomentum.Perp(); }
79 inline Float_t StEEmcIUPair::pz(){ return mMomentum.Pz(); }
80 inline TVector3 StEEmcIUPair::momentum(){ return mMomentum; }
81 inline TVector3 StEEmcIUPair::vertex(){ return mVertex; }
82 
83 typedef std::vector< StEEmcIUPair > StEEmcIUPairVec_t;
84 
85 #endif
Float_t phigg()
Returns opening-angle of pair.
Definition: StEEmcIUPair.h:77
TVector3 mVertex
Definition: StEEmcIUPair.h:65
StEEmcIUPoint mPoint[2]
Definition: StEEmcIUPair.h:67
void Kinematics()
Called by constructor to reconstruct two-body kinematics.
void print()
Prints a one-line summary of the pair.
Float_t pt()
Returns pt of pair.
Definition: StEEmcIUPair.h:78
TVector3 mVertex2
Definition: StEEmcIUPair.h:64
TVector3 vertex()
Returns vertex of pair.
Definition: StEEmcIUPair.h:81
Float_t mPhigg
Definition: StEEmcIUPair.h:60
~StEEmcIUPair()
Destructor.
Definition: StEEmcIUPair.h:23
StEEmcIUPair()
Default constructor (don&#39;t use except for placeholder)
ClassDef(StEEmcIUPair, 1)
Makes class available in root.
Float_t mEnergy
Definition: StEEmcIUPair.h:58
Float_t mass()
Returns invariant mass of pair.
Definition: StEEmcIUPair.h:74
Float_t energy()
Returns energy of pair.
Definition: StEEmcIUPair.h:75
Float_t mZgg
Definition: StEEmcIUPair.h:59
TVector3 mMomentum
Definition: StEEmcIUPair.h:61
TVector3 mVertex1
Definition: StEEmcIUPair.h:63
Base class for representing EEMC points.
Definition: StEEmcIUPoint.h:12
StEEmcIUPoint point(Int_t index)
Definition: StEEmcIUPair.h:30
Float_t mMass
Definition: StEEmcIUPair.h:57
TVector3 momentum()
Returns momentum of pair.
Definition: StEEmcIUPair.h:80
Float_t zgg()
Returns energy-sharing of pair.
Definition: StEEmcIUPair.h:76