FairRoot/PandaRoot
Public Member Functions | Private Attributes | List of all members
PndEventInfo Class Reference

#include <PndEventInfo.h>

Inheritance diagram for PndEventInfo:

Public Member Functions

 PndEventInfo ()
 
virtual ~PndEventInfo ()
 
virtual void PrintOn (std::ostream &o=std::cout) const
 
const TLorentzVector & AntiProtonBeam () const
 
const TLorentzVector & CmFrame () const
 
const RhoVector3ErrBeamSpot () const
 
const RhoVector3ErrPrimaryVertex () const
 
const TVector3 & IPTruth () const
 
int GetCharged ()
 
int GetNeutrals ()
 
void SetPrimaryVertex (RhoVector3Err &inVtx)
 
void SetIPTruth (TVector3 &inVtx)
 
void SetBeamSpot (RhoVector3Err &inVtx)
 
void SetCmFrame (TLorentzVector &cmf)
 
void SetAntiProtonBeam (TLorentzVector &beam)
 
void SetCharged (int n)
 
void SetNeutrals (int n)
 

Private Attributes

TLorentzVector fAntiProtonBeam
 
TLorentzVector fCmFrame
 
RhoVector3Err fBeamSpot
 
RhoVector3Err fPrimaryVertex
 The beam spot w/ error matrix. More...
 
TVector3 fIPTruth
 The primary vertex. More...
 
Int_t fNCharged
 
Int_t fNNeutrals
 

Detailed Description

Definition at line 26 of file PndEventInfo.h.

Constructor & Destructor Documentation

PndEventInfo::PndEventInfo ( )

Definition at line 22 of file PndEventInfo.cxx.

22  :
23  fAntiProtonBeam(TLorentzVector(0,0,0,0)),
24  fCmFrame(TLorentzVector(0,0,0,0)),
25  fBeamSpot(TVector3(0,0,0)),
26  fPrimaryVertex(TVector3(0,0,0)),
27  fIPTruth(TVector3(0,0,0)),
28  fNCharged(0),
29  fNNeutrals(0)
30 {}
TLorentzVector fAntiProtonBeam
Definition: PndEventInfo.h:69
TVector3 fIPTruth
The primary vertex.
Definition: PndEventInfo.h:73
Int_t fNNeutrals
Definition: PndEventInfo.h:75
TLorentzVector fCmFrame
Definition: PndEventInfo.h:70
Int_t fNCharged
Definition: PndEventInfo.h:74
RhoVector3Err fBeamSpot
Definition: PndEventInfo.h:71
RhoVector3Err fPrimaryVertex
The beam spot w/ error matrix.
Definition: PndEventInfo.h:72
PndEventInfo::~PndEventInfo ( )
virtual

Definition at line 36 of file PndEventInfo.cxx.

37 {
38 }

Member Function Documentation

const TLorentzVector& PndEventInfo::AntiProtonBeam ( ) const
inline

Definition at line 46 of file PndEventInfo.h.

References fAntiProtonBeam.

46 {return fAntiProtonBeam;}
TLorentzVector fAntiProtonBeam
Definition: PndEventInfo.h:69
const RhoVector3Err& PndEventInfo::BeamSpot ( ) const
inline

Definition at line 48 of file PndEventInfo.h.

References fBeamSpot.

Referenced by PrintOn().

48 {return fBeamSpot;}
RhoVector3Err fBeamSpot
Definition: PndEventInfo.h:71
const TLorentzVector& PndEventInfo::CmFrame ( ) const
inline

Definition at line 47 of file PndEventInfo.h.

References fCmFrame.

Referenced by ana_dsinc().

47 {return fCmFrame;}
TLorentzVector fCmFrame
Definition: PndEventInfo.h:70
int PndEventInfo::GetCharged ( )
inline

Definition at line 53 of file PndEventInfo.h.

References fNCharged.

Referenced by ana_chic(), and ana_d0d0b().

53 {return fNCharged;}
Int_t fNCharged
Definition: PndEventInfo.h:74
int PndEventInfo::GetNeutrals ( )
inline

Definition at line 54 of file PndEventInfo.h.

References fNNeutrals.

Referenced by ana_chic(), and ana_d0d0b().

54 {return fNNeutrals;}
Int_t fNNeutrals
Definition: PndEventInfo.h:75
const TVector3& PndEventInfo::IPTruth ( ) const
inline

Definition at line 50 of file PndEventInfo.h.

References fIPTruth.

50 {return fIPTruth;}
TVector3 fIPTruth
The primary vertex.
Definition: PndEventInfo.h:73
const RhoVector3Err& PndEventInfo::PrimaryVertex ( ) const
inline

Definition at line 49 of file PndEventInfo.h.

References fPrimaryVertex.

Referenced by PrintOn().

49 { return fPrimaryVertex;}
RhoVector3Err fPrimaryVertex
The beam spot w/ error matrix.
Definition: PndEventInfo.h:72
void PndEventInfo::PrintOn ( std::ostream o = std::cout) const
virtual

Definition at line 59 of file PndEventInfo.cxx.

References BeamSpot(), fAntiProtonBeam, fCmFrame, fNCharged, fNNeutrals, and PrimaryVertex().

Referenced by operator<<().

60 {
61  o << "pbar beam: ("<<fAntiProtonBeam.Px()<<","<<fAntiProtonBeam.Py()
62  <<","<<fAntiProtonBeam.Pz()<<","<<fAntiProtonBeam.E()<<")"<<endl;
63  o << " pbarpSystem: ("<<fCmFrame.Px()<<","<<fCmFrame.Py()<<","<<fCmFrame.Pz()<<","<<fCmFrame.E()<<")"<<endl;
64  o << " spots: "<<BeamSpot()<<" "<<PrimaryVertex()<<endl;
65  o << " n_charg="<<fNCharged<<" n_neut="<<fNNeutrals<<endl;
66 }
const RhoVector3Err & PrimaryVertex() const
Definition: PndEventInfo.h:49
TLorentzVector fAntiProtonBeam
Definition: PndEventInfo.h:69
Int_t fNNeutrals
Definition: PndEventInfo.h:75
TLorentzVector fCmFrame
Definition: PndEventInfo.h:70
Int_t fNCharged
Definition: PndEventInfo.h:74
const RhoVector3Err & BeamSpot() const
Definition: PndEventInfo.h:48
void PndEventInfo::SetAntiProtonBeam ( TLorentzVector &  beam)

Definition at line 51 of file PndEventInfo.cxx.

References fAntiProtonBeam, and fCmFrame.

52 {
53  fAntiProtonBeam=beam;
54  fCmFrame=beam;
55  fCmFrame.SetE(beam.E()+0.938272);
56 }
TLorentzVector fAntiProtonBeam
Definition: PndEventInfo.h:69
TLorentzVector fCmFrame
Definition: PndEventInfo.h:70
void PndEventInfo::SetBeamSpot ( RhoVector3Err inVtx)
inline

Definition at line 59 of file PndEventInfo.h.

References fBeamSpot.

59 { fBeamSpot=inVtx;}
RhoVector3Err fBeamSpot
Definition: PndEventInfo.h:71
void PndEventInfo::SetCharged ( int  n)
inline

Definition at line 65 of file PndEventInfo.h.

References fNCharged, and n.

Referenced by PndFastSim::Exec().

65 {fNCharged=n;}
int n
Int_t fNCharged
Definition: PndEventInfo.h:74
void PndEventInfo::SetCmFrame ( TLorentzVector &  cmf)

Definition at line 43 of file PndEventInfo.cxx.

References fAntiProtonBeam, and fCmFrame.

Referenced by PndFastSim::Exec().

44 {
45  fCmFrame=cmf;
46  fAntiProtonBeam=cmf;
47  fAntiProtonBeam.SetE(cmf.E()-0.938272);
48 }
TLorentzVector fAntiProtonBeam
Definition: PndEventInfo.h:69
TLorentzVector fCmFrame
Definition: PndEventInfo.h:70
void PndEventInfo::SetIPTruth ( TVector3 &  inVtx)
inline

Definition at line 58 of file PndEventInfo.h.

References fIPTruth.

Referenced by PndFastSim::Exec().

58 {fIPTruth=inVtx;}
TVector3 fIPTruth
The primary vertex.
Definition: PndEventInfo.h:73
void PndEventInfo::SetNeutrals ( int  n)
inline

Definition at line 66 of file PndEventInfo.h.

References fNNeutrals, and n.

Referenced by PndFastSim::Exec().

66 {fNNeutrals=n;}
int n
Int_t fNNeutrals
Definition: PndEventInfo.h:75
void PndEventInfo::SetPrimaryVertex ( RhoVector3Err inVtx)
inline

Definition at line 57 of file PndEventInfo.h.

References fPrimaryVertex.

57 { fPrimaryVertex=inVtx;}
RhoVector3Err fPrimaryVertex
The beam spot w/ error matrix.
Definition: PndEventInfo.h:72

Member Data Documentation

TLorentzVector PndEventInfo::fAntiProtonBeam
private

Definition at line 69 of file PndEventInfo.h.

Referenced by AntiProtonBeam(), PrintOn(), SetAntiProtonBeam(), and SetCmFrame().

RhoVector3Err PndEventInfo::fBeamSpot
private

Definition at line 71 of file PndEventInfo.h.

Referenced by BeamSpot(), and SetBeamSpot().

TLorentzVector PndEventInfo::fCmFrame
private

Definition at line 70 of file PndEventInfo.h.

Referenced by CmFrame(), PrintOn(), SetAntiProtonBeam(), and SetCmFrame().

TVector3 PndEventInfo::fIPTruth
private

The primary vertex.

Definition at line 73 of file PndEventInfo.h.

Referenced by IPTruth(), and SetIPTruth().

Int_t PndEventInfo::fNCharged
private

Definition at line 74 of file PndEventInfo.h.

Referenced by GetCharged(), PrintOn(), and SetCharged().

Int_t PndEventInfo::fNNeutrals
private

Definition at line 75 of file PndEventInfo.h.

Referenced by GetNeutrals(), PrintOn(), and SetNeutrals().

RhoVector3Err PndEventInfo::fPrimaryVertex
private

The beam spot w/ error matrix.

Definition at line 72 of file PndEventInfo.h.

Referenced by PrimaryVertex(), and SetPrimaryVertex().


The documentation for this class was generated from the following files: