/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/EvtPreSelect/CalibEventSelect/CalibEventSelect-00-00-15/src/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

typedef HepGeom::Point3D<double> HepPoint3D

Definition at line 43 of file CalibEventSelect.cxx.

typedef std::vector<int> Vint

Definition at line 50 of file CalibEventSelect.cxx.

typedef std::vector<HepLorentzVector> Vp4

Definition at line 51 of file CalibEventSelect.cxx.


Function Documentation

double P ( RecMdcKalTrack trk  ) 

Definition at line 87 of file CalibEventSelect.cxx.

References cos(), DstMdcKalTrack::fi0(), DstMdcKalTrack::kappa(), sin(), and DstMdcKalTrack::tanl().

Referenced by KalmanVertexFit::calculationP(), SimplePIDSvc::calEMCLikelihood(), EvtSSSCPT::decay(), CalibEventSelect::execute(), EvtGen::generateDecay(), MucROOTGeo::Init2DGeometry(), MdcROOTGeo::Init2DGeometry(), BesGeometry::InitGeometry(), Mdc2DWire::Mdc2DWire(), TMuCrossPart::R_e_mu_Gamma_t(), and SimplePIDSvc::tofBarrelCorrection().

00087                               {
00088    double phi= trk->fi0();
00089    double kappa= trk->kappa();
00090    double tanl = trk->tanl();
00091 
00092    double px=-sin(phi)/fabs(kappa);
00093    double py=cos(phi)/fabs(kappa);
00094    double pz=tanl/fabs(kappa);
00095 
00096    return sqrt(px*px+py*py+pz*pz);
00097  }

double Phi ( RecMdcKalTrack trk  ) 

Definition at line 99 of file CalibEventSelect.cxx.

References cos(), DstMdcKalTrack::fi0(), DstMdcKalTrack::kappa(), phi0, and sin().

Referenced by BesMdcGeoParameter::Dump(), CalibEventSelect::execute(), TwoGamma::execute(), and MdcGeomSvc::ReadFilePar().

00099                                {
00100   double phi0=trk->fi0();
00101   double kappa = trk->kappa();
00102   double pxy=0;
00103   if(kappa!=0) pxy = 1.0/fabs(kappa);
00104   
00105   
00106   double px = pxy * (-sin(phi0));
00107   double py = pxy * cos(phi0);
00108 
00109   return atan2(py,px);
00110   
00111 }

double Px ( RecMdcKalTrack trk  ) 

Definition at line 58 of file CalibEventSelect.cxx.

References DstMdcKalTrack::fi0(), DstMdcKalTrack::kappa(), sin(), and DstMdcKalTrack::tanl().

Referenced by CalibEventSelect::execute().

00058                                {
00059    double phi= trk->fi0();
00060    double kappa= trk->kappa();
00061    double tanl = trk->tanl();
00062 
00063    double px=-sin(phi)/fabs(kappa);
00064    return px;
00065  }

double Py ( RecMdcKalTrack trk  ) 

Definition at line 67 of file CalibEventSelect.cxx.

References cos(), DstMdcKalTrack::fi0(), DstMdcKalTrack::kappa(), and DstMdcKalTrack::tanl().

Referenced by CalibEventSelect::execute().

00067                                {
00068    double phi= trk->fi0();
00069    double kappa= trk->kappa();
00070    double tanl = trk->tanl();
00071 
00072    double py=cos(phi)/fabs(kappa);
00073 
00074    return py;
00075  }

double Pz ( RecMdcKalTrack trk  ) 

Definition at line 78 of file CalibEventSelect.cxx.

References DstMdcKalTrack::fi0(), DstMdcKalTrack::kappa(), and DstMdcKalTrack::tanl().

Referenced by CalibEventSelect::execute().

00078                                {
00079    double phi= trk->fi0();
00080    double kappa= trk->kappa();
00081    double tanl = trk->tanl();
00082 
00083    double pz=tanl/fabs(kappa);  
00084    return pz;
00085  }


Variable Documentation

const double mkaon = 0.49367

Definition at line 54 of file CalibEventSelect.cxx.

const double mpi = 0.13957

Definition at line 53 of file CalibEventSelect.cxx.

const double mproton = 0.93827

Definition at line 55 of file CalibEventSelect.cxx.


Generated on Tue Nov 29 23:15:50 2016 for BOSS_7.0.2 by  doxygen 1.4.7