13#ifndef TRGCDCHough3DFinder_FLAG_
14#define TRGCDCHough3DFinder_FLAG_
17#include "trg/cdc/Hough3DUtility.h"
19#ifdef TRGCDC_SHORT_NAMES
20#define TCH3DFinder TRGCDCHough3DFinder
31 class TRGCDCSegmentHit;
47 void doit(std::vector<TRGCDCTrack*>
const& trackList2D, std::vector<TRGCDCTrack*>& trackList3D);
49 void doit(std::vector<TRGCDCTrack*>& trackList);
51 void perfectFinder(std::vector<TRGCDCTrack*>& trackList,
unsigned j, std::vector<const TRGCDCSegmentHit*>& mcTSList);
55 void doitFind(std::vector<TRGCDCTrack*>& trackList);
60 std::map<unsigned, unsigned>& numberTSsForParticle);
86 std::map<std::string, std::vector<double> >
m_mVector;
90 std::map<std::string, std::vector<double> >
m_mConstV;
94 std::map<std::string, std::vector<double> >
m_mEventV;
class of TRGCDCHough3DFinder
TRGCDCHough3DFinder & operator=(TRGCDCHough3DFinder &)=delete
Assignment operator, deleted.
void doitNewFind(std::vector< TRGCDCTrack * > &trackList)
Finds tracks using tracklist.
std::map< std::string, std::vector< double > > m_mVector
Map to hold track vector values for Fitter3D.
TRGCDCHough3DFinder(TRGCDCHough3DFinder &)=delete
Copy constructor, deleted.
std::map< std::string, TVectorD * > m_mEventTVectorD
TVectorD map for saving event values to root file.
std::map< std::string, bool > m_mBool
Map to hold input options.
std::map< std::string, double > m_mConstD
Map to hold run values for Fitter3D.
bool m_makeRootFile
Choose whether to save root file.
const TRGCDC & _cdc
Members.
std::string m_rootHough3DFilename
For root file variables.
std::map< std::string, std::vector< double > > m_mConstV
Map to hold run vectcors for Fitter3D.
std::map< std::string, double > m_mDouble
Map to hold track double values for Fitter3D.
std::map< std::string, double > m_mEventD
Map to hold event values for Fitter3D.
std::map< std::string, TClonesArray * > m_mTClonesArray
TClonesArray map for saving track values to root file.
TTree * m_treeConstantsFinder3D
TTree for constants of Hough3D.
int m_finderMode
0: perfect finder, 1: Hough3DFinder, 2: GeoFinder, 3: VHDL GeoFinder Choose what finder to use.
Hough3DFinder * m_Hough3DFinder
Hough Variables.
TFile * m_fileFinder3D
Tfile for Hough3D root file.
TTree * m_treeTrackFinder3D
TTree for tracks of Hough3D.
std::map< std::string, std::vector< double > > m_mEventV
Map to hold event vectcors for Fitter3D.
std::map< std::string, TVectorD * > m_mRunTVectorD
TVectorD map for saving run values to root file.
The instance of TRGCDC is a singleton.
A class to finded stereo TS hits related to 2D tracks.
void terminate(void)
Termination method.
~TRGCDCHough3DFinder()
Destructor.
void findNumberOfHitSuperlayersForMcParticles(std::vector< std::vector< const TRGCDCSegmentHit * > > &p_stTSs, std::map< unsigned, unsigned > &numberTSsForParticle)
Finds number of hit superlayers for each mc particle.
void perfectFinder(std::vector< TRGCDCTrack * > &trackList, unsigned j, std::vector< const TRGCDCSegmentHit * > &mcTSList)
Perfect 3D finder for a track.
void doitPerfectly(std::vector< TRGCDCTrack * > &trackList)
Perfect 3D finder for a tracklist.
void doitFind(std::vector< TRGCDCTrack * > &trackList)
Finds tracks using tracklist.
void doit(std::vector< TRGCDCTrack * > const &trackList2D, std::vector< TRGCDCTrack * > &trackList3D)
Member functions.
Abstract base class for different kinds of events.