14 std::cout <<
"Setting parameters..." << std::endl;
17 fin.open(infile.c_str());
19 std::cout <<
"WARNING: CANNOT FIND parameters.txt!" << std::endl;
26 for(
int i = 0; i <= 15; ++i ){
27 fin >> par >> m_curvepars[i];
30 for(
int i = 0; i <= 2; ++i ){
31 fin >> par >> m_dedxpars[i];
33 for(
int i = 0; i <= 4; ++i ){
34 fin >> par >> m_nhitpars[i];
36 for(
int i = 0; i <= 4; ++i ){
37 fin >> par >> m_sinpars[i];
46 std::cout <<
"WidgetParameterization: Printing parameters to file..." << std::endl;
49 std::ofstream fout( outfile.c_str() );
50 fout <<
"0\t2" << std::endl << std::endl;
51 for(
int i = 1; i <= 16; ++i ){
52 fout << i <<
"\t" << m_curvepars[i-1] << std::endl;
54 fout << std::endl << 0 <<
"\t" << 6 << std::endl << std::endl;
55 for(
int i = 1; i <= 3; ++i ){
56 fout << i <<
"\t" << m_dedxpars[i-1] << std::endl;
59 for(
int i = 4; i <= 8; ++i ){
60 fout << i <<
"\t" << m_nhitpars[i-4] << std::endl;
63 for(
int i = 9; i <= 13; ++i ){
64 fout << i <<
"\t" << m_sinpars[i-9] << std::endl;
67 fout <<
"14\t1.105" << std::endl;
75 std::cout <<
"WidgetParameterization: Printing parameters to file..." << std::endl;
77 std::cout <<
"0\t2" << std::endl << std::endl;
78 for(
int i = 1; i <= 16; ++i ){
79 std::cout << i <<
"\t" << m_curvepars[i-1] << std::endl;
81 std::cout << std::endl << 0 <<
"\t" << 6 << std::endl << std::endl;
82 for(
int i = 1; i <= 3; ++i ){
83 std::cout << i <<
"\t" << m_dedxpars[i-1] << std::endl;
85 std::cout << std::endl;
86 for(
int i = 4; i <= 8; ++i ){
87 std::cout << i <<
"\t" << m_nhitpars[i-4] << std::endl;
89 std::cout << std::endl;
90 for(
int i = 9; i <= 13; ++i ){
91 std::cout << i <<
"\t" << m_sinpars[i-9] << std::endl;
93 std::cout << std::endl;
94 std::cout <<
"14\t1.105" << std::endl;
100 double A = 0, B = 0,
C = 0;
108 double x[1];
x[0] =
bg;
113 parsA[0] = 1; parsB[0] = 2; parsC[0] = 3;
114 for(
int i = 0; i < 16; ++i ){
115 if( i < 8 ) parsA[i+1] = m_curvepars[i];
116 else if( i < 12 ) parsB[i%8+1] = m_curvepars[i];
117 else parsC[i%12+1] = m_curvepars[i];
126 return (A*partA+B*partB+
C*partC);
131 if( nhit < 5 ) nhit = 5;
132 if(
sin > 0.99 )
sin = 0.99;
139 dedxpar[0] = 1; nhitpar[0] = 2; sinpar[0] = 2;
140 for(
int i = 0; i < 2; ++i ){
141 dedxpar[i+1] = m_dedxpars[i];
143 for(
int i = 0; i < 5; ++i ){
144 nhitpar[i+1] = m_nhitpars[i];
146 for(
int i = 0; i < 5; ++i ){
147 sinpar[i+1] = m_sinpars[i];
156 if( nhit > 35) cor_nhit = 1.0;
160 return cor_dedx * cor_sin * cor_nhit;
165 if( nhit < 5 ) nhit = 5;
166 if(
sin > 0.99 )
sin = 0.99;
172 nhitpar[0] = 2; sinpar[0] = 2;
173 for(
int i = 0; i < 5; ++i ){
174 nhitpar[i+1] = m_nhitpars[i];
176 for(
int i = 0; i < 5; ++i ){
177 sinpar[i+1] = m_sinpars[i];
187 if( nhit > 35) cor_nhit = 1.0;
189 return cor_sin * cor_nhit;
195 if(
sin > 0.99 )
sin = 0.99;
202 for(
int i = 0; i < 5; ++i ){
203 sinpar[i+1] = m_sinpars[i];
217 if( nhit < 5 ) nhit = 5;
223 for(
int i = 0; i < 5; ++i ){
224 nhitpar[i+1] = m_nhitpars[i];
232 if( nhit > 35) cor_nhit = 1.0;
double sin(const BesAngle a)
***************************************************************************************Pseudo Class RRes *****************************************************************************************Parameters and physical constants **Maarten sept ************************************************************************DOUBLE PRECISION xsmu **************************************************************************PARTICLE DATA all others are from PDG *Only resonances with known widths into electron pairs are sept ************************************************************************C Declarations C