BOSS 7.1.0
BESIII Offline Software System
|
#include <MdcUtilitySvc.h>
Public Member Functions | |
MdcUtilitySvc (const std::string &name, ISvcLocator *svcloc) | |
~MdcUtilitySvc () | |
virtual StatusCode | initialize () |
virtual StatusCode | finalize () |
int | nLayerTrackPassed (const HepVector helix) const |
int | nLayerTrackPassed (const double helix[5]) const |
HepVector | patPar2BesPar (const HepVector &helixPar) const |
HepSymMatrix | patErr2BesErr (const HepSymMatrix &err) const |
HepVector | besPar2PatPar (const HepVector &helixPar) const |
HepSymMatrix | besErr2PatErr (const HepSymMatrix &err) const |
double | doca (int layer, int cell, const HepVector helix, const HepSymMatrix errMat, bool passCellRequired=true, bool doSag=true) const |
double | doca (int layer, int cell, HepPoint3D eastP, HepPoint3D westP, const HepVector helixBes, const HepSymMatrix errMatBes, bool passCellRequired=true, bool doSag=true) const |
double | doca (int layer, int cell, const MdcSWire *sWire, const HepVector helixPat, const HepSymMatrix errMatPat, bool passCellRequired=true) const |
double | docaPatPar (int layer, int cell, const HepVector helixPat, const HepSymMatrix errMatPat, bool passCellRequired=true, bool doSag=true) const |
double | docaPatPar (int layer, int cell, HepPoint3D eastP, HepPoint3D westP, const HepVector helixBes, const HepSymMatrix errMatBes, bool passCellRequired=true, bool doSag=true) const |
double | docaPatPar (int layer, int cell, const MdcSWire *sWire, const HepVector helixPat, const HepSymMatrix errMatPat, bool passCellRequired=true) const |
HepPoint3D | pointOnHelix (const HepVector helixPar, int lay, int innerOrOuter) const |
HepPoint3D | pointOnHelixPatPar (const HepVector helixPat, int lay, int innerOrOuter) const |
bool | cellTrackPassedByPhi (const HepVector helix, int layer, int &cellId_in, int &cellId_out) const |
bool | cellTrackPassedByPhiPatPar (const HepVector helix, int layer, int &cellId_in, int &cellId_out) const |
bool | cellTrackPassed (const HepVector helix, int layer, int &cellId_in, int &cellId_out) const |
bool | cellTrackPassedPatPar (const HepVector helix, int layer, int &cellId_in, int &cellId_out) const |
HepPoint3D | Hel (HepPoint3D piv, double dr, double phi0, double Alpha_L, double kappa, double dz, double dphi, double tanl) const |
double | p_cms (HepVector helix, int runNo, double mass) const |
Hep3Vector | momentum (const RecMdcTrack *trk) const |
double | probab (const int &ndof, const double &chisq) const |
MdcDigiVec | getMdcDigiVec () const |
void | getHelixOfMcParticle (const Event::McParticle *mcParticle, Helix &helix) |
float | getChargeOfMcParticle (const Event::McParticle *mcParticle) |
void | getMomPosOfMcParticle (const Event::McParticle *mcParticle, HepVector3D &pos, HepVector3D &mom) |
void | getMdcDigiOnMcParticle (int trackIndex, const std::map< int, std::map< MdcDigi *, Event::MdcMcHit * > > mdcMCAssociation, MdcDigiVec &mdcDigiInput, MdcDigiVec &mdcDigiAssociated) |
void | getMdcMCAssoiciation (int trackIndex, const std::vector< MdcDigi * > mdcDigiVecInput, std::map< int, std::map< MdcDigi *, Event::MdcMcHit * > > &mdcMCAssociation) |
Get association of MdcDigi and MdcMcHit according to track id. | |
Definition at line 40 of file MdcUtilitySvc.h.
MdcUtilitySvc::MdcUtilitySvc | ( | const std::string & | name, |
ISvcLocator * | svcloc | ||
) |
Definition at line 24 of file MdcUtilitySvc.cxx.
MdcUtilitySvc::~MdcUtilitySvc | ( | ) |
Definition at line 29 of file MdcUtilitySvc.cxx.
HepSymMatrix MdcUtilitySvc::besErr2PatErr | ( | const HepSymMatrix & | err | ) | const |
Definition at line 777 of file MdcUtilitySvc.cxx.
Referenced by doca().
HepVector MdcUtilitySvc::besPar2PatPar | ( | const HepVector & | helixPar | ) | const |
Definition at line 761 of file MdcUtilitySvc.cxx.
Referenced by cellTrackPassedByPhi(), doca(), MdcxCosmicSewer::execute(), nLayerTrackPassed(), and pointOnHelix().
bool MdcUtilitySvc::cellTrackPassed | ( | const HepVector | helix, |
int | layer, | ||
int & | cellId_in, | ||
int & | cellId_out | ||
) | const |
Definition at line 599 of file MdcUtilitySvc.cxx.
Referenced by cellTrackPassedPatPar().
bool MdcUtilitySvc::cellTrackPassedByPhi | ( | const HepVector | helix, |
int | layer, | ||
int & | cellId_in, | ||
int & | cellId_out | ||
) | const |
Definition at line 552 of file MdcUtilitySvc.cxx.
bool MdcUtilitySvc::cellTrackPassedByPhiPatPar | ( | const HepVector | helix, |
int | layer, | ||
int & | cellId_in, | ||
int & | cellId_out | ||
) | const |
Definition at line 561 of file MdcUtilitySvc.cxx.
Referenced by cellTrackPassedByPhi(), and docaPatPar().
bool MdcUtilitySvc::cellTrackPassedPatPar | ( | const HepVector | helix, |
int | layer, | ||
int & | cellId_in, | ||
int & | cellId_out | ||
) | const |
Definition at line 592 of file MdcUtilitySvc.cxx.
double MdcUtilitySvc::doca | ( | int | layer, |
int | cell, | ||
const HepVector | helix, | ||
const HepSymMatrix | errMat, | ||
bool | passCellRequired = true , |
||
bool | doSag = true |
||
) | const |
Definition at line 390 of file MdcUtilitySvc.cxx.
Referenced by docaPatPar(), and EsTimeAlg::execute().
double MdcUtilitySvc::doca | ( | int | layer, |
int | cell, | ||
const MdcSWire * | sWire, | ||
const HepVector | helixPat, | ||
const HepSymMatrix | errMatPat, | ||
bool | passCellRequired = true |
||
) | const |
Definition at line 408 of file MdcUtilitySvc.cxx.
double MdcUtilitySvc::doca | ( | int | layer, |
int | cell, | ||
HepPoint3D | eastP, | ||
HepPoint3D | westP, | ||
const HepVector | helixBes, | ||
const HepSymMatrix | errMatBes, | ||
bool | passCellRequired = true , |
||
bool | doSag = true |
||
) | const |
Definition at line 399 of file MdcUtilitySvc.cxx.
double MdcUtilitySvc::docaPatPar | ( | int | layer, |
int | cell, | ||
const HepVector | helixPat, | ||
const HepSymMatrix | errMatPat, | ||
bool | passCellRequired = true , |
||
bool | doSag = true |
||
) | const |
Definition at line 417 of file MdcUtilitySvc.cxx.
Referenced by doca(), docaPatPar(), and MdcxCosmicSewer::execute().
double MdcUtilitySvc::docaPatPar | ( | int | layer, |
int | cell, | ||
const MdcSWire * | sWire, | ||
const HepVector | helixPat, | ||
const HepSymMatrix | errMatPat, | ||
bool | passCellRequired = true |
||
) | const |
Definition at line 451 of file MdcUtilitySvc.cxx.
double MdcUtilitySvc::docaPatPar | ( | int | layer, |
int | cell, | ||
HepPoint3D | eastP, | ||
HepPoint3D | westP, | ||
const HepVector | helixBes, | ||
const HepSymMatrix | errMatBes, | ||
bool | passCellRequired = true , |
||
bool | doSag = true |
||
) | const |
Definition at line 435 of file MdcUtilitySvc.cxx.
|
virtual |
Definition at line 70 of file MdcUtilitySvc.cxx.
float MdcUtilitySvc::getChargeOfMcParticle | ( | const Event::McParticle * | mcParticle | ) |
Definition at line 895 of file MdcUtilitySvc.cxx.
Referenced by getHelixOfMcParticle().
void MdcUtilitySvc::getHelixOfMcParticle | ( | const Event::McParticle * | mcParticle, |
Helix & | helix | ||
) |
Definition at line 920 of file MdcUtilitySvc.cxx.
void MdcUtilitySvc::getMdcDigiOnMcParticle | ( | int | trackIndex, |
const std::map< int, std::map< MdcDigi *, Event::MdcMcHit * > > | mdcMCAssociation, | ||
MdcDigiVec & | mdcDigiInput, | ||
MdcDigiVec & | mdcDigiAssociated | ||
) |
Definition at line 936 of file MdcUtilitySvc.cxx.
vector< MdcDigi * > MdcUtilitySvc::getMdcDigiVec | ( | ) | const |
Definition at line 77 of file MdcUtilitySvc.cxx.
void MdcUtilitySvc::getMdcMCAssoiciation | ( | int | trackIndex, |
const std::vector< MdcDigi * > | mdcDigiVecInput, | ||
std::map< int, std::map< MdcDigi *, Event::MdcMcHit * > > & | mdcMCAssociation | ||
) |
Get association of MdcDigi and MdcMcHit according to track id.
—get MDC MC hits and make a map vs wire id
loop over MdcDigi
Definition at line 958 of file MdcUtilitySvc.cxx.
void MdcUtilitySvc::getMomPosOfMcParticle | ( | const Event::McParticle * | mcParticle, |
HepVector3D & | pos, | ||
HepVector3D & | mom | ||
) |
Definition at line 910 of file MdcUtilitySvc.cxx.
HepPoint3D MdcUtilitySvc::Hel | ( | HepPoint3D | piv, |
double | dr, | ||
double | phi0, | ||
double | Alpha_L, | ||
double | kappa, | ||
double | dz, | ||
double | dphi, | ||
double | tanl | ||
) | const |
Definition at line 747 of file MdcUtilitySvc.cxx.
Referenced by cellTrackPassed().
|
virtual |
Definition at line 32 of file MdcUtilitySvc.cxx.
Hep3Vector MdcUtilitySvc::momentum | ( | const RecMdcTrack * | trk | ) | const |
Definition at line 825 of file MdcUtilitySvc.cxx.
int MdcUtilitySvc::nLayerTrackPassed | ( | const double | helix[5] | ) | const |
Definition at line 251 of file MdcUtilitySvc.cxx.
int MdcUtilitySvc::nLayerTrackPassed | ( | const HepVector | helix | ) | const |
Definition at line 260 of file MdcUtilitySvc.cxx.
Referenced by nLayerTrackPassed().
double MdcUtilitySvc::p_cms | ( | HepVector | helix, |
int | runNo, | ||
double | mass | ||
) | const |
Definition at line 793 of file MdcUtilitySvc.cxx.
Referenced by p_cms().
HepSymMatrix MdcUtilitySvc::patErr2BesErr | ( | const HepSymMatrix & | err | ) | const |
Definition at line 311 of file MdcUtilitySvc.cxx.
HepVector MdcUtilitySvc::patPar2BesPar | ( | const HepVector & | helixPar | ) | const |
Definition at line 294 of file MdcUtilitySvc.cxx.
Referenced by cellTrackPassedPatPar().
HepPoint3D MdcUtilitySvc::pointOnHelix | ( | const HepVector | helixPar, |
int | lay, | ||
int | innerOrOuter | ||
) | const |
Definition at line 330 of file MdcUtilitySvc.cxx.
HepPoint3D MdcUtilitySvc::pointOnHelixPatPar | ( | const HepVector | helixPat, |
int | lay, | ||
int | innerOrOuter | ||
) | const |
Definition at line 337 of file MdcUtilitySvc.cxx.
Referenced by docaPatPar(), and pointOnHelix().
double MdcUtilitySvc::probab | ( | const int & | ndof, |
const double & | chisq | ||
) | const |
Definition at line 843 of file MdcUtilitySvc.cxx.