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

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 43 of file CalibEventSelect.cxx.

◆ Vint

typedef std::vector<int> Vint

Definition at line 50 of file CalibEventSelect.cxx.

◆ Vp4

typedef std::vector<HepLorentzVector> Vp4

Definition at line 51 of file CalibEventSelect.cxx.

Function Documentation

◆ P()

double P ( RecMdcKalTrack trk)

Definition at line 87 of file CalibEventSelect.cxx.

87 {
88 double phi= trk->fi0();
89 double kappa= trk->kappa();
90 double tanl = trk->tanl();
91
92 double px=-sin(phi)/fabs(kappa);
93 double py=cos(phi)/fabs(kappa);
94 double pz=tanl/fabs(kappa);
95
96 return sqrt(px*px+py*py+pz*pz);
97 }
double sin(const BesAngle a)
Definition: BesAngle.h:210
double cos(const BesAngle a)
Definition: BesAngle.h:213
const double tanl(void) const
const double kappa(void) const
const double fi0(void) const

Referenced by BesPolygon2D::BesPolygon2D(), DotsHelixFitter::calculateNewHelix(), EvtSSSCPT::decay(), CgemROOTGeo::Draw3DHits(), Emc2DCrystal::Emc2DCrystal(), CalibEventSelect::execute(), EvtGen::generateDecay(), EvtGen::generateEvent(), MdcROOTGeo::Init2DGeometry(), MucROOTGeo::Init2DGeometry(), BesGeometry::InitGeometry(), CgemROOTGeo::InitGeometry(), Mdc2DWire::Mdc2DWire(), Muc2DStrip::Muc2DStrip(), BesPolygon2D::SetPoints(), and Tof2DScin::Tof2DScin().

◆ Phi()

double Phi ( RecMdcKalTrack trk)

Definition at line 99 of file CalibEventSelect.cxx.

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

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

◆ Px()

double Px ( RecMdcKalTrack trk)

Definition at line 58 of file CalibEventSelect.cxx.

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

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

◆ Py()

double Py ( RecMdcKalTrack trk)

Definition at line 67 of file CalibEventSelect.cxx.

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

Referenced by CalibEventSelect::execute().

◆ Pz()

double Pz ( RecMdcKalTrack trk)

Definition at line 78 of file CalibEventSelect.cxx.

78 {
79 double phi= trk->fi0();
80 double kappa= trk->kappa();
81 double tanl = trk->tanl();
82
83 double pz=tanl/fabs(kappa);
84 return pz;
85 }

Referenced by CalibEventSelect::execute().

Variable Documentation

◆ mkaon

const double mkaon = 0.49367

Definition at line 54 of file CalibEventSelect.cxx.

◆ mpi

const double mpi = 0.13957

Definition at line 53 of file CalibEventSelect.cxx.

◆ mproton

const double mproton = 0.93827

Definition at line 55 of file CalibEventSelect.cxx.