1 /******************************************************************************
2 * T H E R M I N A T O R *
3 * THERMal heavy-IoN generATOR *
6 * Authors of the model: Wojciech Broniowski, Wojciech.Broniowski@ifj.edu.pl, *
7 * Wojciech Florkowski, Wojciech.Florkowski@ifj.edu.pl *
8 * Authors of the code: Adam Kisiel, kisiel@if.pw.edu.pl *
9 * Tomasz Taluc, ttaluc@if.pw.edu.pl *
10 * Code designers: Adam Kisiel, Tomasz Taluc, Wojciech Broniowski, *
11 * Wojciech Florkowski *
13 * For the detailed description of the program and furhter references *
14 * to the description of the model plesase refer to: nucl-th/0504047, *
15 * accessibile at: http://www.arxiv.org/nucl-th/0504047 *
17 * Homepage: http://hirg.if.pw.edu.pl/en/therminator/ *
19 * This code can be freely used and redistributed. However if you decide to *
20 * make modifications to the code, please contact the authors, especially *
21 * if you plan to publish the results obtained with such modified code. *
22 * Any publication of results obtained using this code must include the *
23 * reference to nucl-th/0504047 and the published version of it, when *
26 *****************************************************************************/
31 #include "DecayChannel.h"
35 extern ReadPar *sRPInstance;
37 const double factorials[7] = {1.0, 1.0, 2.0, 6.0, 24.0, 120.0, 720.0 };
39 Parser::Parser(ParticleDB *aDB)
49 int Parser::check(char *a,char *b)
53 while(a[tIter3]!='\0')
55 if(a[tIter3]!=b[tIter3]) return 0;
61 int Parser::GetParticleCount()
63 return mParticleCount;
66 char * Parser::GetParticleName(int i)
68 return mNameBuffer[i];
71 double Parser::GetParticleMass(int i)
73 return mMassBuffer[i];
76 double Parser::GetParticleGamma(int i)
78 return mGammaBuffer[i];
81 double Parser::GetParticleSpin(int i)
83 return mSpinBuffer[i];
86 int Parser::GetParticleBarionN(int i)
88 return mBarionBuffer[i];
91 int Parser::GetParticleStrangeN(int i)
93 return mStrangeBuffer[i];
96 double Parser::GetParticleI3(int i)
101 int Parser::GetParticleDecayChannelCount(int i,int j)
103 return mDecayBuffer[i][j];
106 int Parser::GetParticleNumber(int i)
108 return mTypeCountBuffer[i];
111 void Parser::ReadInput()
113 int j,tPartIter=0,l,tIter2, tIter; //variables
116 double spin1,spin2,value;
118 ////// START OF "TABLES.M" /////////
119 ifstream in("tables.m");
126 for(tIter2=0;tIter2<50;tIter2++) str[tIter2]='\0';
133 if(*str == 'x') break;
136 //PARTICLE NAME AND MASS
137 if(str[0] == 'm' && str[1] == '[')
141 if(str[l+2] == ']') break;
142 mNameBuffer[tPartIter][l]=str[l+2]; //name
145 // mNameBuffer[tPartIter][l]='\0';
148 mMassBuffer[tPartIter]=value;
149 mTypeCountBuffer[tPartIter]=tPartIter;
150 for(tIter2=0;tIter2<50;tIter2++) str[tIter2]='\0';
153 if(str[0] == 'G' && str[3] == '[')
157 mGammaBuffer[tPartIter]=value;
158 for(tIter2=0;tIter2<50;tIter2++) str[tIter2]='\0';
162 if(str[0] == 'J' && str[1] == '[')
168 *str1=str[0];spin1=atof(str1);
169 *str1=str[2];spin2=atof(str1);
170 mSpinBuffer[tPartIter]=spin1/spin2;
174 *str1=str[1];spin1=atof(str1);
175 mSpinBuffer[tPartIter]=-spin1;
177 if(str[0]!='-' && str[1]!='/')
181 mSpinBuffer[tPartIter]=spin1;
183 tPartIter++; //next particle
184 for(tIter2=0;tIter2<50;tIter2++) str[tIter2]='\0';
189 mParticleCount=tPartIter;
190 ////// END OF "TABLES.M" /////////
193 ////// START OF "i200STAR.m"//////
195 double izospin1,izospin2; //help to calculate izospin, if niecalkowity
196 // input=fopen("i200STAR.m","r+");
197 ifstream in1("i200STAR.m");
199 for(tIter2=0;tIter2<369;tIter2++)
200 for(int jj=0;jj<2;jj++) mDecayBuffer[tIter2][jj]=0;
204 j=3; //first letter of particle in line in file
205 for(tIter=0;tIter<50;tIter++) str[tIter]='\0';
206 for(tIter=0;tIter<20;tIter++) str1[tIter]='\0';
209 in1.getline(str,200);
211 if(str[0] == 'x') break;
213 if(str[0] == 'f' && str[1] == 'i')
223 str1[tIter++]=str[j++];
225 for(tIter=0;tIter<369;tIter++)
227 if(check(str1,mNameBuffer[tIter]))
230 for(tIter2=0;tIter2<20;tIter2++) str1[tIter2]='\0';
234 mBarionBuffer[tIter]=atoi(str1);
235 mBarionBuffer[tIter]=-mBarionBuffer[tIter];
240 mBarionBuffer[tIter]=atoi(str1);
242 if(str[j] == '-') j+=3;
246 for(tIter2=0;tIter2<20;tIter2++) str1[tIter2]='\0';
250 mStrangeBuffer[tIter]=atoi(str1);
251 mStrangeBuffer[tIter]=-mStrangeBuffer[tIter];
256 mStrangeBuffer[tIter]=atoi(str1);
258 if(str[j] == '-') j+=3;
262 for(tIter2=0;tIter2<20;tIter2++) str1[tIter2]='\0';
263 if(str[j+1] == '/' && str[j+3] == ']')
269 mI3Buffer[tIter]=izospin1/izospin2;
271 if(str[j] == '-' && str[j+2] == '/' && str[j+4] == ']')
277 mI3Buffer[tIter]=-izospin1/izospin2;
279 if(str[j] == '-' && str[j+2] == ']')
283 mI3Buffer[tIter]=-izospin1;
288 mI3Buffer[tIter]=atof(str1);
299 if(str[0] == 's' && str[1] == 'e' && str[2] == '[')
301 // Reading in the decay channels
302 char *tLBrackert, *tFirstComma, *tSecondComma, *tThirdComma, *tRBracket;
304 tLBrackert = strchr(str,'[');
305 tFirstComma = strchr(str,',');
306 tSecondComma = strchr(tFirstComma+1,',');
307 tThirdComma = strchr(tSecondComma+1,',');
308 tRBracket = strchr(tThirdComma,']');
310 if (!(tLBrackert && tFirstComma && tSecondComma && tThirdComma && tRBracket))
311 PRINT_DEBUG_1("Malformed line!: " << str);
313 char *tFather = new char[tFirstComma-tLBrackert];
314 strncpy(tFather, tLBrackert+1, tFirstComma-tLBrackert-1);
315 char *tDaughter1 = new char[tSecondComma-tFirstComma];
316 strncpy(tDaughter1, tFirstComma+1, tSecondComma-tFirstComma-1);
317 char *tDaughter2 = new char[tThirdComma-tSecondComma];
318 strncpy(tDaughter2, tSecondComma+1, tThirdComma-tSecondComma-1);
319 char *tBRatio = new char[tRBracket-tThirdComma];
320 strncpy(tBRatio, tThirdComma+1, tRBracket-tThirdComma-1);
323 char *tMiddle, *tRatComponent;
326 tMiddle = strchr(tBRatio,'_');
327 if (!tMiddle) tMiddle = strchr(tBRatio,' ');
330 tRatComponent = new char[tMiddle-tBRatio+1];
331 strncpy(tRatComponent, tBRatio, tMiddle-tBRatio);
332 if (strchr(tRatComponent,'/'))
333 tRatio *= atof(tRatComponent)/atof(tRatComponent+2);
335 tRatio *= atof(tRatComponent);
337 tMiddle = strchr(tBRatio,'_');
338 if (!tMiddle) tMiddle = strchr(tBRatio,' ');
339 delete [] tRatComponent;
341 if (strchr(tBRatio,'/'))
342 tRatio *= atof(tBRatio)/atof(tBRatio+2);
344 tRatio *= atof(tBRatio);
349 if(str[0] == 's' && str[1] == 'e' && str[2] == '3' && str[3] == '[')
358 str1[tIter++]=str[j++]; //name
361 for(tIter=0;tIter<369;tIter++)
363 if(check(str1,mNameBuffer[tIter]))
365 mDecayBuffer[tIter][1]++;
373 ////// END OF "i200STAR.m"//////
375 ParticleType *tPartBuf;
378 for(tPart=0;tPart<mParticleCount;tPart++)
380 tPartBuf = new ParticleType();
381 tPartBuf->SetName(mNameBuffer[tPart]);
382 tPartBuf->SetMass(mMassBuffer[tPart]);
383 tPartBuf->SetGamma(mGammaBuffer[tPart]);
384 tPartBuf->SetSpin(mSpinBuffer[tPart]);
385 tPartBuf->SetBarionN(mBarionBuffer[tPart]);
386 tPartBuf->SetStrangeness(mStrangeBuffer[tPart]);
387 tPartBuf->SetI3(mI3Buffer[tPart]);
388 tPartBuf->SetDecayChannelCount2(mDecayBuffer[tPart][0]);
389 tPartBuf->SetDecayChannelCount3(mDecayBuffer[tPart][1]);
390 tPartBuf->SetNumber(tPart);
391 tNum = mDB->AddParticleType(tPartBuf);
394 ifstream in2("i200STAR.m");
395 while (in2.getline(str,200))
399 if(str[0] == 's' && str[1] == 'e' && str[2] == '[')
401 // Reading in the decay channels
402 char *tLBrackert, *tFirstComma, *tSecondComma, *tThirdComma, *tRBracket;
404 tLBrackert = strchr(str,'[');
405 tFirstComma = strchr(str,',');
406 tSecondComma = strchr(tFirstComma+1,',');
407 tThirdComma = strchr(tSecondComma+1,',');
408 tRBracket = strchr(tThirdComma,']');
409 if (!(tLBrackert && tFirstComma && tSecondComma && tThirdComma && tRBracket))
410 PRINT_DEBUG_1("Malformed line!: " << str);
412 char *tFather = new char[tFirstComma-tLBrackert];
413 strncpy(tFather, tLBrackert+1, tFirstComma-tLBrackert-1);
414 char *tDaughter1 = new char[tSecondComma-tFirstComma];
415 strncpy(tDaughter1, tFirstComma+1, tSecondComma-tFirstComma-1);
416 char *tDaughter2 = new char[tThirdComma-tSecondComma];
417 strncpy(tDaughter2, tSecondComma+1, tThirdComma-tSecondComma-1);
418 char *tBRatio = new char[tRBracket-tThirdComma];
419 strncpy(tBRatio, tThirdComma+1, tRBracket-tThirdComma-1);
422 char *tMiddle, *tRatComponent;
425 tMiddle = strchr(tBRatio,'_');
426 if (!tMiddle) tMiddle = strchr(tBRatio,' ');
429 tRatComponent = new char[tMiddle-tBRatio];
430 strncpy(tRatComponent, tBRatio, tMiddle-tBRatio);
431 if (strchr(tRatComponent,'/'))
432 tRatio *= atof(tRatComponent)/atof(tRatComponent+2);
434 tRatio *= atof(tRatComponent);
436 tMiddle = strchr(tBRatio,'_');
437 if (!tMiddle) tMiddle = strchr(tBRatio,' ');
438 delete [] tRatComponent;
440 if (strchr(tBRatio,'/'))
441 tRatio *= atof(tBRatio)/atof(tBRatio+2);
443 tRatio *= atof(tBRatio);
445 DecayChannel *newChannel = new DecayChannel(tRatio, mDB->GetParticleTypeIndex(tDaughter1), mDB->GetParticleTypeIndex(tDaughter2), -1);
446 // if (mDB->GetParticleType(tDaughter1)->GetMass() +
447 // mDB->GetParticleType(tDaughter2)->GetMass()
448 // < mDB->GetParticleType(tFather)->GetMass()) {
449 // (mDB->GetParticleType(tFather))->AddDecayChannel(*newChannel);
451 (mDB->GetParticleType(tFather))->AddDecayChannel(*newChannel);
454 if(str[0] == 's' && str[1] == 'e' && str[2] == '3')
456 // Reading in the decay channels
457 char *tLBrackert, *tFirstComma, *tSecondComma, *tThirdComma, *tFourthComma, *tRBracket;
459 tLBrackert = strchr(str,'[');
460 tFirstComma = strchr(str,',');
461 tSecondComma = strchr(tFirstComma+1,',');
462 tThirdComma = strchr(tSecondComma+1,',');
463 tFourthComma = strchr(tThirdComma+1,',');
464 tRBracket = strchr(tThirdComma,']');
466 if (!(tLBrackert && tFirstComma && tSecondComma && tThirdComma && tFourthComma && tRBracket))
467 PRINT_DEBUG_1("Malformed line!: " << str);
469 char *tFather = new char[tFirstComma-tLBrackert];
470 strncpy(tFather, tLBrackert+1, tFirstComma-tLBrackert-1);
471 char *tDaughter1 = new char[tSecondComma-tFirstComma];
472 strncpy(tDaughter1, tFirstComma+1, tSecondComma-tFirstComma-1);
473 char *tDaughter2 = new char[tThirdComma-tSecondComma];
474 strncpy(tDaughter2, tSecondComma+1, tThirdComma-tSecondComma-1);
475 char *tDaughter3 = new char[tFourthComma-tThirdComma];
476 strncpy(tDaughter3, tThirdComma+1, tFourthComma-tThirdComma-1);
477 char *tBRatio = new char[tRBracket-tFourthComma];
478 strncpy(tBRatio, tFourthComma+1, tRBracket-tFourthComma-1);
481 char *tMiddle, *tRatComponent;
484 tMiddle = strchr(tBRatio,'_');
485 if (!tMiddle) tMiddle = strchr(tBRatio,' ');
488 tRatComponent = new char[tMiddle-tBRatio+1];
489 strncpy(tRatComponent, tBRatio, tMiddle-tBRatio);
490 if (strchr(tRatComponent,'/'))
491 tRatio *= atof(tRatComponent)/atof(tRatComponent+2);
493 tRatio *= atof(tRatComponent);
495 tMiddle = strchr(tBRatio,'_');
496 if (!tMiddle) tMiddle = strchr(tBRatio,' ');
497 delete [] tRatComponent;
499 if (strchr(tBRatio,'/'))
500 tRatio *= atof(tBRatio)/atof(tBRatio+2);
502 tRatio *= atof(tBRatio);
504 DecayChannel *newChannel = new DecayChannel(tRatio, mDB->GetParticleTypeIndex(tDaughter1), mDB->GetParticleTypeIndex(tDaughter2), mDB->GetParticleTypeIndex(tDaughter3));
505 // if (mDB->GetParticleType(tDaughter1)->GetMass() +
506 // mDB->GetParticleType(tDaughter2)->GetMass() +
507 // mDB->GetParticleType(tDaughter3)->GetMass()
508 // < mDB->GetParticleType(tFather)->GetMass())
509 (mDB->GetParticleType(tFather))->AddDecayChannel(*newChannel);
513 ifstream in3("pdgcodes.m");
514 while (in3.getline(str,200))
519 std::stringstream tIS(str);
520 tIS >> tName >> tCode;
521 mDB->GetParticleType(tName)->SetPDGCode(tCode);
527 void Parser::ReadShare()
532 ParticleType *tPartBuf;
535 PRINT_DEBUG_1("Reading from |"<<(mInputDir+"/"+"particles.data").Data()<<"|");
536 ifstream in((mInputDir+"/"+"particles.data").Data());
539 if ((in) && (in.is_open()))
549 if (/*(*str == '#')||*/(*str<65)||(*str>122))
551 in.getline(str1,200);
554 double mass, gamma, spin, I3, I, q, s, aq, as, c, ac, mc;
556 in>>mass>>gamma>>spin>>I>>I3>>q>>s>>aq>>as>>c>>ac>>mc;
558 PRINT_DEBUG_2(number<<" "<<str<<" "<<mass<<" "<<gamma<<" "<<spin<<" "<<I<<" "<<I3<<" "<<q<<" "<<aq<<" "<<s<<" "<<as<<" "<<c<<" "<<ac<<" "<<mc);
560 tPartBuf = new ParticleType();
561 tPartBuf->SetName(str);
562 tPartBuf->SetMass(mass);
563 tPartBuf->SetGamma(gamma);
564 tPartBuf->SetSpin(spin);
565 tPartBuf->SetBarionN((int) ((q+s+c)/3. - (aq+as+ac)/3.) );
566 tPartBuf->SetCharmN((int) (c - ac));
567 tPartBuf->SetStrangeness((int) (as-s));
570 tPartBuf->SetPDGCode((int) mc);
571 tPartBuf->SetNumber(number);
572 tNum = mDB->AddParticleType(tPartBuf);
578 PRINT_MESSAGE("File "<<(mInputDir+"/"+"particles.data").Data()<<" containing particle data not found!");
579 PRINT_MESSAGE("Please set the correct path to this file in the input parameter file");
580 PRINT_MESSAGE("Aborting!");
584 ifstream in2((mInputDir+"/decays.data").Data());
585 if ((in2) && (in2.is_open()))
588 in2.ignore(200,'\n');
589 in2.ignore(200,'\n');
590 in2.ignore(200,'\n');
593 char tFather[20], tDaughter1[20], tDaughter2[20], tDaughter3[20];
594 double tBRatio, tRatio;
595 int CGcoeff; // complete branching ratio by Clebsch-Gordan coefficient: 0-no 1-yes
601 in2.getline(str1,200);
604 in2>>tDaughter1>>tDaughter2>>tDaughter3;
605 if (!mDB->ExistsParticleType(tDaughter1)) {
606 PRINT_MESSAGE("Did not find the daughter 1 particle: " << tDaughter1);
607 PRINT_MESSAGE("Not adding channel");
608 in2.getline(str1,200);
611 if (!mDB->ExistsParticleType(tDaughter2)) {
612 PRINT_MESSAGE("Did not find the daughter 2 particle: " << tDaughter2);
613 PRINT_MESSAGE("Not adding channel");
614 in2.getline(str1,200);
617 if ((*tDaughter3>65)&&(*tDaughter3<122)&&(!mDB->ExistsParticleType(tDaughter3))) {
618 PRINT_MESSAGE("Did not find the daughter 3 particle: " << tDaughter3);
619 PRINT_MESSAGE("Not adding channel");
620 in2.getline(str1,200);
625 PRINT_DEBUG_2(tFather<<"\t"<<tDaughter1<<"\t"<<tDaughter2<<"\t");
626 if ((*tDaughter3>65)&&(*tDaughter3<122)) // check if first char is a letter - if yes then 3-body decay
628 in2>>tBRatio>>CGcoeff;
629 PRINT_DEBUG_2(tDaughter3<<" (3-body decay)\t");
630 if (mDB->ExistsParticleType(tFather)) {
631 mDB->GetParticleType(tFather)->SetDecayChannelCount3(mDB->GetParticleType(tFather)->GetDecayChannelCount3()+1);
634 DecayChannel *newChannel = new DecayChannel(tRatio, mDB->GetParticleTypeIndex(tDaughter1), mDB->GetParticleTypeIndex(tDaughter2), mDB->GetParticleTypeIndex(tDaughter3));
635 if (mDB->GetParticleType(tDaughter1)->GetMass() +
636 mDB->GetParticleType(tDaughter2)->GetMass() +
637 mDB->GetParticleType(tDaughter3)->GetMass()
638 < mDB->GetParticleType(tFather)->GetMass())
639 (mDB->GetParticleType(tFather))->AddDecayChannel(*newChannel);
642 PRINT_DEBUG_2(tBRatio << '\t' << tRatio);
645 PRINT_MESSAGE("Did not find the father particle: " << tFather);
646 PRINT_MESSAGE("Not adding channel");
651 tBRatio=atof(tDaughter3);
654 PRINT_DEBUG_2(" (2-body decay)\t");
655 if (mDB->ExistsParticleType(tFather)) {
656 mDB->GetParticleType(tFather)->SetDecayChannelCount2(mDB->GetParticleType(tFather)->GetDecayChannelCount2()+1);
658 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
659 if (CGcoeff) // complete branching ratio by Clebsch-Gordan coefficient
661 double j1, m1, j2, m2, J, M, CB;
662 J=mDB->GetParticleType(tFather)->GetI();
663 M=mDB->GetParticleType(tFather)->GetI3();
664 j1=mDB->GetParticleType(tDaughter1)->GetI();
665 m1=mDB->GetParticleType(tDaughter1)->GetI3();
666 j2=mDB->GetParticleType(tDaughter2)->GetI();
667 m2=mDB->GetParticleType(tDaughter2)->GetI3();
668 PRINT_DEBUG_2(" "<<J<<" "<<M<<" "<<j1<<" "<<m1<<" "<<j2<<" "<<m2);
670 CB = ClebschGordan(J, M, j1, m1, j2, m2);
671 tRatio = CB*CB * tBRatio;
673 // Multiply the Clebsh by two?
674 // The same spin, mass, strangeness
676 if ((fabs(mDB->GetParticleType(tDaughter1)->GetSpin() - mDB->GetParticleType(tDaughter2)->GetSpin()) < 0.01) &&
677 (fabs(mDB->GetParticleType(tDaughter1)->GetMass() - mDB->GetParticleType(tDaughter2)->GetMass()) < 0.01) &&
678 (mDB->GetParticleType(tDaughter1)->GetStrangeness() == mDB->GetParticleType(tDaughter2)->GetStrangeness()) &&
679 (fabs(mDB->GetParticleType(tDaughter1)->GetI3() - mDB->GetParticleType(tDaughter2)->GetI3()) > 0.01))
681 PRINT_DEBUG_2("Multuplying Clebsch by two for " << tFather << "->" << tDaughter1 << "+" << tDaughter2);
685 PRINT_DEBUG_2(CB << '\t' << tBRatio << '\t' << tRatio<<"\t"<<CGcoeff);
691 PRINT_DEBUG_2(tBRatio << '\t' << tRatio);
693 DecayChannel *newChannel = new DecayChannel(tRatio, mDB->GetParticleTypeIndex(tDaughter1), mDB->GetParticleTypeIndex(tDaughter2), -1);
694 if (mDB->GetParticleType(tDaughter1)->GetMass() +
695 mDB->GetParticleType(tDaughter2)->GetMass()
696 < mDB->GetParticleType(tFather)->GetMass())
698 (mDB->GetParticleType(tFather))->AddDecayChannel(*newChannel);
699 PRINT_DEBUG_2("Added channel " << newChannel << " " << mDB->GetParticleTypeIndex(tFather) << " " << mDB->GetParticleTypeIndex(tDaughter1) << " " << mDB->GetParticleTypeIndex(tDaughter2));
704 PRINT_DEBUG_2("Masses do not match! Not adding channel " << newChannel);
708 PRINT_MESSAGE("Did not find the father particle: " << tFather);
709 PRINT_MESSAGE("Not adding channel");
716 PRINT_MESSAGE("File "<<(mInputDir+"/decays.data").Data()<<" with particle decay channels not found!");
717 PRINT_MESSAGE("No particle decays will be simulated");
722 Parser::ClebschGordan(double aJot, double aEm, double aJot1, double aEm1, double aJot2, double aEm2)
729 maxt = lrint(aJot1 + aJot2 - aJot);
731 if (lrint(aJot1 - aEm1) < maxt) maxt = lrint(aJot1 - aEm1);
732 if (lrint(aJot2 + aEm2) < maxt) maxt = lrint(aJot2 + aEm2);
733 if (lrint(-(aJot-aJot2+aEm1)) > mint) mint = lrint(-(aJot-aJot2+aEm1));
734 if (lrint(-(aJot-aJot1-aEm2)) > mint) mint = lrint(-(aJot-aJot1-aEm2));
736 PRINT_DEBUG_3("mint " << mint << " " << aJot1 << " " << aEm1);
737 PRINT_DEBUG_3("maxt " << maxt << " " << aJot2 << " " << aEm2);
739 for (titer = mint; titer<=maxt; titer ++)
741 coef = TMath::Power(-1, titer);
742 PRINT_DEBUG_3("coef1 " << coef);
743 coef *= TMath::Sqrt((2*aJot+1)*
744 factorials[lrint(aJot1+aEm1)] *
745 factorials[lrint(aJot1-aEm1)] *
746 factorials[lrint(aJot2+aEm2)] *
747 factorials[lrint(aJot2-aEm2)] *
748 factorials[lrint(aJot+aEm)] *
749 factorials[lrint(aJot-aEm)]);
750 PRINT_DEBUG_3("coef2 " << coef);
751 coef /= (factorials[titer] *
752 factorials[lrint(aJot1+aJot2-aJot-titer)] *
753 factorials[lrint(aJot1-aEm1-titer)] *
754 factorials[lrint(aJot2+aEm2-titer)] *
755 factorials[lrint(aJot-aJot2+aEm1+titer)] *
756 factorials[lrint(aJot-aJot1-aEm2+titer)]);
757 PRINT_DEBUG_3("coef3 " << coef);
762 cgc *= DeltaJ(aJot1, aJot2, aJot);
768 Parser::DeltaJ(double aJot1, double aJot2, double aJot)
770 double res = TMath::Sqrt(1.0 *
771 factorials[lrint(aJot1+aJot2-aJot)] *
772 factorials[lrint(aJot1-aJot2+aJot)] *
773 factorials[lrint(-aJot1+aJot2+aJot)] /
774 factorials[lrint(aJot1+aJot2+aJot+1)]);
780 Parser::ReadParameters()
782 // Read the input directory
784 mInputDir = sRPInstance->getPar("InputDirSHARE");
787 PRINT_DEBUG_1("Parser::ReadParameters - Caught exception " << tError);
788 PRINT_MESSAGE("Did not find SHARE input file location.");
789 PRINT_MESSAGE("Using default: '../share'");
790 mInputDir = "../share";