CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcFlagHold Class Reference

#include <MdcFlagHold.h>

Public Member Functions

void setDebug (int debugFlag)
 
void setHist (int histFlag)
 
int debugFlag () const
 
void readPar (std::string inname)
 
void printPar ()
 
 MdcFlagHold ()
 
 ~MdcFlagHold ()
 

Public Attributes

int plot
 
int plotSegs
 
int plotSegList
 
int plotTrackList
 
int plotTracks
 
int lHist
 
int findTracks
 
int findSegs
 
MdcSegParams segPar
 
MdcTrackParams tkParTight
 

Detailed Description

Definition at line 16 of file MdcFlagHold.h.

Constructor & Destructor Documentation

◆ MdcFlagHold()

MdcFlagHold::MdcFlagHold ( )

Definition at line 184 of file MdcFlagHold.cxx.

184 {
185 m_debug = 0; // => modest per-event output
186 plot = 0;
187 plotSegs = 0;
188 plotSegList = 0;
189 plotTracks = 0;
190 plotTrackList = 0;
191 lHist = 0;
192 findTracks = 1;
193 findSegs = 1;
194}
int plotSegList
Definition: MdcFlagHold.h:24
int plotTracks
Definition: MdcFlagHold.h:26
int plotTrackList
Definition: MdcFlagHold.h:25
int findTracks
Definition: MdcFlagHold.h:28

◆ ~MdcFlagHold()

MdcFlagHold::~MdcFlagHold ( )
inline

Definition at line 36 of file MdcFlagHold.h.

36{};

Member Function Documentation

◆ debugFlag()

int MdcFlagHold::debugFlag ( ) const
inline

Definition at line 20 of file MdcFlagHold.h.

20{return m_debug;}

Referenced by MdcTrkRecon::fillTrackList(), MdcTrkRecon::initialize(), printPar(), and readPar().

◆ printPar()

void MdcFlagHold::printPar ( )

Definition at line 122 of file MdcFlagHold.cxx.

122 {
123 std::cout << "MdcFlagHold:\ndebug:"<<debugFlag()
124 << "\nhist:"<<lHist
125 << "\nfindTracks:"<<findTracks
126 <<"\nfindSegs:"<<findSegs
127 <<"\nhistSegs:"<<segPar.lHist
128 <<"\nhistTracks:"<<tkParTight.lHist
129 <<"\nprintSeg:"<<segPar.lPrint
130 <<"\nprintTrack:"<<tkParTight.lPrint
131 <<"\nrefitSeg:"<<segPar.segRefit
132 <<"\nuseAllAmbig:"<<segPar.useAllAmbig
133 <<"\nsegPar.dropDups:"<<segPar.dropDups
134 <<"\nsegPar.find3:";
135 for(int ii=0;ii<11;ii++){
136 std::cout <<segPar.find3[ii] << " ";
137 }
138 std::cout <<"\nsegPar.addHits:"<<segPar.addHits
139 <<"\ntkParTight.lUseQualCuts:"<<tkParTight.lUseQualCuts
140 <<"\nsegPar.maxChisq:"<<segPar.maxChisq
141 <<"\nsegPar.nsigAddHit:"<<segPar.nsigAddHit
142 <<"\nsegPar.z0:"<<segPar.z0cut
143 <<"\nsegPar.ct:"<<segPar.ctcut
144 <<"\nsegPar.phiDiffDropMult:"<<segPar.phiDiffDropMult
145 <<"\nsegPar.slopeDiffDrop:"<<segPar.slopeDiffDrop
146 <<"\nsegPar.delZ0Cut:"<<segPar.delZ0Cut
147 <<"\nsegPar.delCtCut:"<<segPar.delCtCut
148 <<"\ntkParTight.minHits:"<<tkParTight.minHits
149 <<"\ntkParTight.maxChisq:"<<tkParTight.maxChisq
150 <<"\ntkParTight.maxNmissTrack:"<<tkParTight.maxNmissTrack
151 <<"\ntkParTight.maxNmissNorm:"<<tkParTight.maxNmissNorm
152 <<"\ntkParTight.nOverlap:"<<tkParTight.nOverlap
153 <<"\ntkParTight.maxsegChisq:"<<tkParTight.maxSegChisqO
154 <<"\ntkParTight.maxInactiveResid:"<<tkParTight.maxInactiveResid
155 <<"\ntkParTight.maxActiveSigma:"<<tkParTight.maxActiveSigma
156 <<"\ntkParTight.picHitFract:"<<tkParTight.pickHitFract
157 <<"\ntkParTight.pickHitMargin:"<<tkParTight.pickHitMargin
158 <<"\nMdcTrkReconCut_combAxPhi0:"<<MdcTrkReconCut_combAxPhi0
159 <<"\nMdcTrkReconCut_combAxCurv:"<<MdcTrkReconCut_combAxCurv
160 <<"\nMdcTrkReconCut_combAxPhi0Cut:"<<MdcTrkReconCut_combAxPhi0Cut
161 <<"\nMdcTrkReconCut_combAxCurvCut:"<<MdcTrkReconCut_combAxCurvCut
162 <<"\ntkParTight.pickHitFactor:"<<tkParTight.pickHitFactor
163 <<"\ntkParTight.lRemoveInActive:"<<tkParTight.lRemoveInActive
164 <<"\ntkParTight.pickHitPhiFactor:"<<tkParTight.pickHitPhiFactor
165 <<"\ntkParTight.pickUitlLastLayer:"<<tkParTight.pickUitlLastLayer
166 <<"\ntkParTight.nHitDeleted:"<<tkParTight.nHitDeleted
167 <<"\ntkParTight.pickSkipExistLayer:"<<tkParTight.pickSkipExistLayer
168 <<"\ntkParTight.combineByFitHits:"<<tkParTight.combineByFitHits
169 <<"\ntkParTight.nGapGE2:"<<tkParTight.nGapGE2
170 <<"\ntkParTight.nGapGE3:"<<tkParTight.nGapGE3
171 <<"\ntkParTight.maxGapLength:"<<tkParTight.maxGapLength
172 <<std::endl;
173 std::cout<<"nSigmaCut:"<<std::endl;
174 for (int i=0;i<43;i++) {
175 std::cout<<TrkHelixFitter::nSigmaCut[i]<<" ";
176 if((i+1)%4==0) std::cout<<std::endl;
177 }
178 std::cout<<std::endl;
179 return;
180}
double MdcTrkReconCut_combAxCurv
double MdcTrkReconCut_combAxPhi0
double MdcTrkReconCut_combAxPhi0Cut
double MdcTrkReconCut_combAxCurvCut
int debugFlag() const
Definition: MdcFlagHold.h:20
MdcTrackParams tkParTight
Definition: MdcFlagHold.h:31
MdcSegParams segPar
Definition: MdcFlagHold.h:30
double phiDiffDropMult
Definition: MdcSegParams.h:26
double delCtCut
Definition: MdcSegParams.h:28
double slopeDiffDrop
Definition: MdcSegParams.h:27
double delZ0Cut
Definition: MdcSegParams.h:29
double ctcut
Definition: MdcSegParams.h:25
double nsigAddHit
Definition: MdcSegParams.h:22
double z0cut
Definition: MdcSegParams.h:24
int find3[11]
Definition: MdcSegParams.h:31
double maxChisq
Definition: MdcSegParams.h:17
double pickHitFactor
double pickHitPhiFactor
double pickHitMargin
double maxNmissTrack
double maxActiveSigma
double maxInactiveResid
static double nSigmaCut[43]

Referenced by readPar().

◆ readPar()

void MdcFlagHold::readPar ( std::string  inname)

Definition at line 35 of file MdcFlagHold.cxx.

35 {
36//----------------------------------------------------------------------------
37
38 /* Declare variables */
39 FILE *ifp;
40 char comment[80];
41 std::cout<< 0. <<" readPar "<< inname << std::endl;
42 /**************************************************************************/
43
44 if ((ifp = fopen(inname.c_str(),"r")) != NULL) {
45 if (debugFlag()>0) {
46 std::cout << "Reading MdcTrackFinder params from " << inname << std::endl;
47 }
48 int idebug= 0;
49 fscanf(ifp,"%d%s", &idebug, comment); // debug?
50 fscanf(ifp,"%d%s", &lHist, comment);// histogram?
51 fscanf(ifp,"%d%s", &findTracks, comment); // find tracks?
52 fscanf(ifp,"%d%s", &findSegs, comment); // find segs?
53 fscanf(ifp,"%d%s", &(segPar.lHist), comment); // hist segs?
54 fscanf(ifp,"%d%s", &(tkParTight.lHist), comment); // hist tracks?
55 fscanf(ifp,"%d%s", &(segPar.lPrint), comment); // print segs?
56 fscanf(ifp,"%d%s", &(tkParTight.lPrint), comment); // print track?
57 fscanf(ifp,"%d%s", &(segPar.segRefit), comment); // refit segs?
58 fscanf(ifp,"%d%s", &(segPar.useAllAmbig), comment); // use all ambig?
59 fscanf(ifp,"%d%s", &(segPar.dropDups), comment); // drop duplicate segs?
60 //std::cout<< __FILE__ << " " << __LINE__ << " "<<std::endl;
61 //fscanf(ifp,"%d%s", &(segPar.find3[0]),comment);
62 fscanf(ifp,"%d %d %d %d %d %d %d %d %d %d %d%s",
63 &(segPar.find3[0]), &(segPar.find3[1]), &(segPar.find3[2]), &(segPar.find3[3]),
64 &(segPar.find3[4]), &(segPar.find3[5]), &(segPar.find3[6]), &(segPar.find3[7]),
65 &(segPar.find3[8]), &(segPar.find3[9]), &(segPar.find3[10]), comment); // find3 hit segs?
66 //std::cout<< __FILE__ << " " << __LINE__ << " "<<std::endl;
67 //fscanf(ifp,"%d%s", &(segPar.find3), comment); // find 3 hit segs? 2011-05-27
68 fscanf(ifp,"%d%s", &(segPar.addHits), comment); // add hits in seg finding?
69 fscanf(ifp,"%d%s", &(tkParTight.lUseQualCuts), comment); // use quality cut?
70 fscanf(ifp,"%lf%s", &(segPar.maxChisq), comment);
71 fscanf(ifp,"%lf%s", &(segPar.nsigAddHit), comment);
72 fscanf(ifp,"%lf%s", &(segPar.z0cut), comment);
73 fscanf(ifp,"%lf%s", &(segPar.ctcut), comment);
74 fscanf(ifp,"%lf%s", &(segPar.phiDiffDropMult), comment);
75 fscanf(ifp,"%lf%s", &(segPar.slopeDiffDrop), comment);
76 fscanf(ifp,"%lf%s", &(segPar.delZ0Cut), comment);
77 fscanf(ifp,"%lf%s", &(segPar.delCtCut), comment);
78 fscanf(ifp,"%d%s", &(tkParTight.minHits), comment);
79 fscanf(ifp,"%lf%s", &(tkParTight.maxChisq), comment);
80 fscanf(ifp,"%lf%s", &(tkParTight.maxNmissTrack), comment);
81 fscanf(ifp,"%lf%s", &(tkParTight.maxNmissNorm), comment);
82 fscanf(ifp,"%d%s", &(tkParTight.nOverlap), comment);
83 fscanf(ifp,"%lf%s", &(tkParTight.maxSegChisqO), comment);
84 fscanf(ifp,"%lf%s", &(tkParTight.maxInactiveResid), comment);
85 fscanf(ifp,"%lf%s", &(tkParTight.maxActiveSigma), comment);
86 fscanf(ifp,"%lf%s", &(tkParTight.pickHitFract), comment);
87 fscanf(ifp,"%lf%s", &(tkParTight.pickHitMargin), comment);
88 fscanf(ifp,"%lf%s", &MdcTrkReconCut_combAxPhi0, comment);
89 fscanf(ifp,"%lf%s", &MdcTrkReconCut_combAxCurv, comment);
90 fscanf(ifp,"%lf%s", &MdcTrkReconCut_combAxPhi0Cut, comment);
91 fscanf(ifp,"%lf%s", &MdcTrkReconCut_combAxCurvCut, comment);
92 fscanf(ifp,"%lf%s", &(tkParTight.pickHitFactor), comment);//yzhang add 2010-05-12
93 fscanf(ifp,"%d%s", &(tkParTight.lRemoveInActive), comment);//yzhang add 2010-05-14
94 fscanf(ifp,"%lf%s", &(tkParTight.pickHitPhiFactor), comment);//yzhang add 2010-05-18
95 fscanf(ifp,"%d%s", &(tkParTight.pickUitlLastLayer), comment);//yzhang add 2010-09-10
96 fscanf(ifp,"%d%s", &(tkParTight.nHitDeleted), comment);//yzhang add 2010-09-13
97 fscanf(ifp,"%d%s", &(tkParTight.pickSkipExistLayer ), comment);//yzhang add 2011-05-04
98 fscanf(ifp,"%d%s", &(tkParTight.combineByFitHits), comment);//yzhang add 2011-05-11
99 fscanf(ifp,"%d%s", &(tkParTight.nGapGE2), comment);//yzhang add 2011-07-29
100 fscanf(ifp,"%d%s", &(tkParTight.nGapGE3), comment);//yzhang add 2011-07-29
101 fscanf(ifp,"%d%s", &(tkParTight.maxGapLength), comment);//yzhang add 2011-07-29
102 setDebug(idebug);
103 if (plot == 0) {
104 plotTracks = 0;
105 plotSegs = 0;
106 plotTrackList = 0;
107 }
108 fclose(ifp);
109 }else{
110 std::cout << "Reading MdcTrackFinder params from default param!" << std::endl;
111 }
112
114 segPar.lPlot = plot;
115
116 if (debugFlag()) { printPar(); }
117 return;
118}
void printPar()
void setDebug(int debugFlag)
Definition: MdcFlagHold.cxx:18

Referenced by MdcTrkRecon::initialize().

◆ setDebug()

void MdcFlagHold::setDebug ( int  debugFlag)

Definition at line 18 of file MdcFlagHold.cxx.

18 {
19//----------------------------------------------------------------------------
20 m_debug = flag;
21 tkParTight.lPrint = flag;
23}

Referenced by MdcTrkRecon::initialize(), and readPar().

◆ setHist()

void MdcFlagHold::setHist ( int  histFlag)

Definition at line 26 of file MdcFlagHold.cxx.

26 {
27//----------------------------------------------------------------------------
28 lHist = flag;
29 segPar.lHist = flag;
30 tkParTight.lHist = flag;
31}

Member Data Documentation

◆ findSegs

int MdcFlagHold::findSegs

◆ findTracks

int MdcFlagHold::findTracks

Definition at line 28 of file MdcFlagHold.h.

Referenced by MdcTrkRecon::execute(), MdcFlagHold(), printPar(), and readPar().

◆ lHist

◆ plot

int MdcFlagHold::plot

Definition at line 22 of file MdcFlagHold.h.

Referenced by MdcFlagHold(), and readPar().

◆ plotSegList

int MdcFlagHold::plotSegList

Definition at line 24 of file MdcFlagHold.h.

Referenced by MdcFlagHold().

◆ plotSegs

int MdcFlagHold::plotSegs

Definition at line 23 of file MdcFlagHold.h.

Referenced by MdcFlagHold(), and readPar().

◆ plotTrackList

int MdcFlagHold::plotTrackList

Definition at line 25 of file MdcFlagHold.h.

Referenced by MdcFlagHold(), and readPar().

◆ plotTracks

int MdcFlagHold::plotTracks

Definition at line 26 of file MdcFlagHold.h.

Referenced by MdcFlagHold(), and readPar().

◆ segPar

◆ tkParTight

MdcTrackParams MdcFlagHold::tkParTight

Definition at line 31 of file MdcFlagHold.h.

Referenced by MdcTrkRecon::initialize(), printPar(), readPar(), setDebug(), and setHist().


The documentation for this class was generated from the following files: