CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcHoughFinder/MdcHoughFinder-00-00-12/src/Hough.cxx File Reference
#include "MdcHoughFinder/Hough.h"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/AlgFactory.h"
#include "GaudiKernel/ISvcLocator.h"
#include "GaudiKernel/SmartDataPtr.h"
#include "GaudiKernel/IDataProviderSvc.h"
#include "GaudiKernel/IPartPropSvc.h"
#include "GaudiKernel/PropertyMgr.h"
#include "GaudiKernel/IService.h"
#include "GaudiKernel/NTuple.h"
#include "GaudiKernel/INTupleSvc.h"
#include "EventModel/EventHeader.h"
#include "MdcRawEvent/MdcDigi.h"
#include "Identifier/Identifier.h"
#include "Identifier/MdcID.h"
#include <iostream>
#include <math.h>
#include "EvTimeEvent/RecEsTime.h"
#include "MdcGeom/EntranceAngle.h"
#include "RawEvent/RawDataUtil.h"
#include "MdcData/MdcHit.h"
#include "McTruth/DecayMode.h"
#include "McTruth/McParticle.h"
#include "TrackUtil/Helix.h"
#include "MdcRecoUtil/Pdt.h"
#include "TrkBase/TrkFit.h"
#include "TrkBase/TrkHitList.h"
#include "TrkBase/TrkExchangePar.h"
#include "TrkFitter/TrkHelixMaker.h"
#include "TrkFitter/TrkCircleMaker.h"
#include "TrkFitter/TrkLineMaker.h"
#include "TrkFitter/TrkHelixFitter.h"
#include "MdcxReco/Mdcxprobab.h"
#include "MdcData/MdcRecoHitOnTrack.h"
#include "MdcPrintSvc/IMdcPrintSvc.h"
#include "MdcHoughFinder/HoughTrackList.h"
#include "MdcHoughFinder/HoughTrack.h"
#include "McTruth/MdcMcHit.h"
#include "MdcTrkRecon/MdcMap.h"
#include "TTree.h"
#include "TH2D.h"
#include "BesTimerSvc/IBesTimerSvc.h"
#include "BesTimerSvc/BesTimerSvc.h"
#include "BesTimerSvc/BesTimer.h"

Go to the source code of this file.

Functions

HepVector barbar2bes (HepVector a)
 
HepVector bes2barbar (HepVector a)
 
bool more_pt (const HoughTrack *tracka, const HoughTrack *trackb)
 
bool sortCluster (const RecCgemCluster *clusterA, const RecCgemCluster *clusterB)
 

Function Documentation

◆ barbar2bes()

HepVector barbar2bes ( HepVector  a)

Definition at line 1172 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/Hough.cxx.

1173{
1174 double dr = -a(1);
1175 double phi0 = a(2)-M_PI/2;
1176 while(phi0>2*M_PI)phi0-=2*M_PI;
1177 while(phi0<0)phi0+=2*M_PI;
1178 double kappa = a(3)*333.567;
1179 double dz = a(4);
1180 double tanl = a(5);
1181 HepVector bes(5,0);
1182 bes(1) = dr;
1183 bes(2) = phi0;
1184 bes(3) = kappa;
1185 bes(4) = dz;
1186 bes(5) = tanl;
1187 return bes;
1188}
#define M_PI
Definition: TConstant.h:4

◆ bes2barbar()

HepVector bes2barbar ( HepVector  a)

Definition at line 1189 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/Hough.cxx.

1190{
1191 double d0 = -a(1);
1192 double phi0 = a(2)+M_PI/2;
1193 while(phi0> M_PI)phi0-=2*M_PI;
1194 while(phi0<-M_PI)phi0+=2*M_PI;
1195 double omega = a(3)/333.567;
1196 double z0 = a(4);
1197 double tanl = a(5);
1198 HepVector barbar(5,0);
1199 barbar(1) = d0;
1200 barbar(2) = phi0;
1201 barbar(3) = omega;
1202 barbar(4) = z0;
1203 barbar(5) = tanl;
1204 return barbar;
1205}

◆ more_pt()

bool more_pt ( const HoughTrack tracka,
const HoughTrack trackb 
)

Definition at line 1256 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/Hough.cxx.

1256 {
1257 return tracka->getPt3D() > trackb->getPt3D();
1258}

Referenced by MdcHoughFinder::execute().

◆ sortCluster()

bool sortCluster ( const RecCgemCluster clusterA,
const RecCgemCluster clusterB 
)

Definition at line 1642 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/Hough.cxx.

1642 {
1643 return clusterA->getlayerid()<clusterB->getlayerid();
1644}