CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
HoughTransAlg/HoughTransAlg-00-00-14/src/Hough.cxx File Reference
#include "GaudiKernel/SmartDataPtr.h"
#include "GaudiKernel/Bootstrap.h"
#include "GaudiKernel/IDataManagerSvc.h"
#include "GaudiKernel/IDataProviderSvc.h"
#include "GaudiKernel/IPartPropSvc.h"
#include "HoughTransAlg/Hough.h"
#include "EventModel/EventHeader.h"
#include "EvTimeEvent/RecEsTime.h"
#include "McTruth/McParticle.h"
#include "HepPDT/ParticleDataTable.hh"
#include "MdcTrkRecon/MdcTrackParams.h"
#include "MdcRecoUtil/Pdt.h"
#include "Identifier/Identifier.h"
#include "Identifier/CgemID.h"
#include "Identifier/MdcID.h"
#include "MdcGeom/MdcDetector.h"
#include "MdcData/MdcRecoHitOnTrack.h"
#include "CgemData/CgemHitOnTrack.h"
#include "TrkBase/TrkRep.h"
#include "TrkBase/TrkDifTraj.h"
#include "TrkBase/TrkExchangePar.h"
#include <math.h>
#include <iostream>
#include <fstream>

Go to the source code of this file.

Functions

bool largerPt (HoughTrack trk1, HoughTrack trk2)
 
bool moreHot (HoughTrack trk1, HoughTrack trk2)
 
bool sortCluster (const RecCgemCluster *clusterA, const RecCgemCluster *clusterB)
 

Function Documentation

◆ largerPt()

bool largerPt ( HoughTrack  trk1,
HoughTrack  trk2 
)

Definition at line 422 of file HoughTransAlg/HoughTransAlg-00-00-14/src/Hough.cxx.

423{
424 return fabs(trk1.pt())>fabs(trk2.pt());
425}

Referenced by HoughFinder::getMcParticleCol(), and HoughFinder::storeTracks().

◆ moreHot()

bool moreHot ( HoughTrack  trk1,
HoughTrack  trk2 
)

Definition at line 1537 of file HoughTransAlg/HoughTransAlg-00-00-14/src/Hough.cxx.

1538{
1539 int nHot1 = trk1.getHotList().size();
1540 int nHot2 = trk2.getHotList().size();
1541 return nHot1>nHot2;
1542 //return trk1.getHot().size() > trk2.getHot().size();
1543}
vector< HoughHit * > getHotList(int type=2)

Referenced by HoughFinder::checkHot(), and HoughFinder::checkTrack().

◆ sortCluster()

bool sortCluster ( const RecCgemCluster clusterA,
const RecCgemCluster clusterB 
)

Definition at line 1838 of file HoughTransAlg/HoughTransAlg-00-00-14/src/Hough.cxx.

1838 {
1839 return clusterA->getlayerid()<clusterB->getlayerid();
1840}