BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
CalibEventSelect.cxx File Reference
#include "GaudiKernel/AlgFactory.h"
#include "GaudiKernel/IDataProviderSvc.h"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/PropertyMgr.h"
#include "GaudiKernel/SmartDataPtr.h"
#include "EventModel/Event.h"
#include "EventModel/EventHeader.h"
#include "EventModel/EventModel.h"
#include "EvtRecEvent/EvtRecDTag.h"
#include "EvtRecEvent/EvtRecEvent.h"
#include "EvtRecEvent/EvtRecTrack.h"
#include "EvtRecEvent/EvtRecPi0.h"
#include "CLHEP/Vector/LorentzVector.h"
#include "CLHEP/Vector/ThreeVector.h"
#include "CLHEP/Vector/TwoVector.h"
#include "EmcRawEvent/EmcDigi.h"
#include "GaudiKernel/Bootstrap.h"
#include "GaudiKernel/IHistogramSvc.h"
#include "GaudiKernel/INTupleSvc.h"
#include "GaudiKernel/NTuple.h"
#include "MdcRawEvent/MdcDigi.h"
#include "RawEvent/RawDataUtil.h"
#include "TMath.h"
#include "VertexFit/Helix.h"
#include "VertexFit/IVertexDbSvc.h"
#include "VertexFit/KinematicFit.h"
#include "VertexFit/VertexFit.h"
#include "DstEvent/TofHitStatus.h"
#include "GaudiKernel/ISvcLocator.h"
#include "CLHEP/Geometry/Point3D.h"
#include "CalibEventSelect/CalibEventSelect.h"
#include "mysql.h"
#include <vector>

Go to the source code of this file.

Typedefs

typedef HepGeom::Point3D< double > HepPoint3D
typedef std::vector< int > Vint
typedef std::vector< HepLorentzVector > Vp4

Functions

double Px (RecMdcKalTrack *trk)
double Py (RecMdcKalTrack *trk)
double Pz (RecMdcKalTrack *trk)
double P (RecMdcKalTrack *trk)
double Phi (RecMdcKalTrack *trk)

Variables

const double mpi = 0.13957
const double mkaon = 0.49367
const double mproton = 0.93827

Typedef Documentation

◆ HepPoint3D

typedef HepGeom::Point3D<double> HepPoint3D

Definition at line 42 of file CalibEventSelect.cxx.

◆ Vint

typedef std::vector<int> Vint

Definition at line 49 of file CalibEventSelect.cxx.

◆ Vp4

typedef std::vector<HepLorentzVector> Vp4

Definition at line 50 of file CalibEventSelect.cxx.

Function Documentation

◆ P()

double P ( RecMdcKalTrack * trk)

◆ Phi()

double Phi ( RecMdcKalTrack * trk)

Definition at line 96 of file CalibEventSelect.cxx.

96 {
97 double phi0 = trk->fi0();
98 double kappa = trk->kappa();
99 double pxy = 0;
100 if ( kappa != 0 ) pxy = 1.0 / fabs( kappa );
101
102 double px = pxy * ( -sin( phi0 ) );
103 double py = pxy * cos( phi0 );
104
105 return atan2( py, px );
106}

Referenced by Bes2DView::Bes2DView(), BesView::BesView(), CalibEventSelect::execute(), TwoGamma::execute(), Bes2DView::GetRSign(), and BesView::GetRSign().

◆ Px()

double Px ( RecMdcKalTrack * trk)

Definition at line 56 of file CalibEventSelect.cxx.

56 {
57 double phi = trk->fi0();
58 double kappa = trk->kappa();
59 double tanl = trk->tanl();
60
61 double px = -sin( phi ) / fabs( kappa );
62 return px;
63}

Referenced by CALG(), and CalibEventSelect::execute().

◆ Py()

double Py ( RecMdcKalTrack * trk)

Definition at line 65 of file CalibEventSelect.cxx.

65 {
66 double phi = trk->fi0();
67 double kappa = trk->kappa();
68 double tanl = trk->tanl();
69
70 double py = cos( phi ) / fabs( kappa );
71
72 return py;
73}

Referenced by CalibEventSelect::execute().

◆ Pz()

double Pz ( RecMdcKalTrack * trk)

Definition at line 75 of file CalibEventSelect.cxx.

75 {
76 double phi = trk->fi0();
77 double kappa = trk->kappa();
78 double tanl = trk->tanl();
79
80 double pz = tanl / fabs( kappa );
81 return pz;
82}

Referenced by CalibEventSelect::execute().

Variable Documentation

◆ mkaon

const double mkaon = 0.49367

Definition at line 53 of file CalibEventSelect.cxx.

◆ mpi

const double mpi = 0.13957

Definition at line 52 of file CalibEventSelect.cxx.

◆ mproton

const double mproton = 0.93827

Definition at line 54 of file CalibEventSelect.cxx.