|
FEDRA emulsion software from the OPERA Collaboration
|
Functions | |
| ParaSet | Branch ("CUT_BACK_DMIN",&cut_back_dmin,"CUT_BACK_DMIN/D") |
| ParaSet | Branch ("CUT_BACK_DR",&cut_back_dr,"CUT_BACK_DR/D") |
| ParaSet | Branch ("CUT_BACK_DTHETA",&cut_back_dtheta,"CUT_BACK_DTHETA/D") |
| ParaSet | Branch ("CUT_BACK_DZ",&cut_back_dz,"CUT_BACK_DZ/D") |
| ParaSet | Branch ("CUT_FOR_DMIN",&cut_for_dmin,"CUT_FOR_DMIN/D") |
| ParaSet | Branch ("CUT_FOR_DR",&cut_for_dr,"CUT_FOR_DR/D") |
| ParaSet | Branch ("CUT_FOR_DTHETA",&cut_for_dtheta,"CUT_FOR_DTHETA/D") |
| ParaSet | Branch ("CUT_FOR_DZ",&cut_for_dz,"CUT_FOR_DZ/D") |
| PARAMETERSET_DEFINITIONFILE_SHORT | cd () |
| ParaSet | Fill () |
| if (ParaSetNr >1000) | |
| outstream | open (OutputFile) |
| outstream<< " "<< ParaSetNr<< " "<< " "<< cut_back_dmin<< " "<< cut_back_dtheta<< " "<< cut_back_dr<< " "<< cut_back_dz<< " "<< cut_for_dmin<< " "<< cut_for_dtheta<< " "<< cut_for_dr<< " "<< cut_for_dz<< endl;++ParaSetNr;if(ParaSetNr >2000) stop=kTRUE;} ParaSet-> | Print () |
| outstream<< "#ParaSetNr CUT_BACK_DMIN CUT_BACK_DTHETA CUT_BACK_DR CUT_BACK_DZ CUT_FOR_DMIN CUT_FOR_DTHETA CUT_FOR_DR CUT_FOR_DZ "<< endl;int cnt[8]={0, 0, 0, 0, 0, 0, 0, 0};bool stop=kFALSE;while(!stop) { cut_back_dmin=gRandom-> | Uniform (0, 140)+80 |
| ParaSet | Write () |
Variables | |
| Double_t | cut_back_dmin |
| Double_t | cut_back_dr =gRandom->Uniform(0,160)+80 |
| Double_t | cut_back_dtheta =gRandom->Uniform(0,0.2)+0.08 |
| Double_t | cut_back_dz =gRandom->Uniform(0,4000)+4000 |
| Double_t | cut_for_dmin =gRandom->Uniform(0,140)+80 |
| Double_t | cut_for_dr =gRandom->Uniform(0,160)+80 |
| Double_t | cut_for_dtheta =gRandom->Uniform(0,0.2)+0.08 |
| Double_t | cut_for_dz =gRandom->Uniform(0,4000)+4000 |
| TString | OutputFile ="PARAMETERSET_DEFINITIONFILE_LONG_BW_ALG.txt" |
| ofstream | outstream |
| ParaSet = new TTree("ParaSet_Variables","ParaSet_Variables") | |
| Int_t | ParaSetNr =0 |
| return | |
| ParaSet Branch | ( | "CUT_BACK_DMIN" | , |
| & | cut_back_dmin, | ||
| "CUT_BACK_DMIN/D" | |||
| ) |
| ParaSet Branch | ( | "CUT_BACK_DR" | , |
| & | cut_back_dr, | ||
| "CUT_BACK_DR/D" | |||
| ) |
| ParaSet Branch | ( | "CUT_BACK_DTHETA" | , |
| & | cut_back_dtheta, | ||
| "CUT_BACK_DTHETA/D" | |||
| ) |
| ParaSet Branch | ( | "CUT_BACK_DZ" | , |
| & | cut_back_dz, | ||
| "CUT_BACK_DZ/D" | |||
| ) |
| ParaSet Branch | ( | "CUT_FOR_DMIN" | , |
| & | cut_for_dmin, | ||
| "CUT_FOR_DMIN/D" | |||
| ) |
| ParaSet Branch | ( | "CUT_FOR_DR" | , |
| & | cut_for_dr, | ||
| "CUT_FOR_DR/D" | |||
| ) |
| ParaSet Branch | ( | "CUT_FOR_DTHETA" | , |
| & | cut_for_dtheta, | ||
| "CUT_FOR_DTHETA/D" | |||
| ) |
| ParaSet Branch | ( | "CUT_FOR_DZ" | , |
| & | cut_for_dz, | ||
| "CUT_FOR_DZ/D" | |||
| ) |
| canv cd | ( | ) |
| ParaSet Fill | ( | ) |
| if | ( | ParaSetNr | , |
| 1000 | |||
| ) |
| outstream open | ( | OutputFile | ) |
| outstream<< " " << ParaSetNr << " " << " " << cut_back_dmin << " " << cut_back_dtheta << " " << cut_back_dr << " " << cut_back_dz << " " << cut_for_dmin << " " << cut_for_dtheta << " " << cut_for_dr << " " << cut_for_dz << endl; ++ParaSetNr; if (ParaSetNr>2000) stop=kTRUE; } ParaSet-> Print | ( | ) |
| outstream<< "#ParaSetNr CUT_BACK_DMIN CUT_BACK_DTHETA CUT_BACK_DR CUT_BACK_DZ CUT_FOR_DMIN CUT_FOR_DTHETA CUT_FOR_DR CUT_FOR_DZ "<< endl; int cnt[8]={0,0,0,0,0,0,0,0}; bool stop=kFALSE; while (!stop) { cut_back_dmin=gRandom-> Uniform | ( | 0 | , |
| 140 | |||
| ) |
| ParaSet Write | ( | ) |
| Double_t cut_back_dmin |
| cut_back_dr =gRandom->Uniform(0,160)+80 |
| cut_back_dtheta =gRandom->Uniform(0,0.2)+0.08 |
| cut_back_dz =gRandom->Uniform(0,4000)+4000 |
| cut_for_dmin =gRandom->Uniform(0,140)+80 |
| cut_for_dr =gRandom->Uniform(0,160)+80 |
| cut_for_dtheta =gRandom->Uniform(0,0.2)+0.08 |
| cut_for_dz =gRandom->Uniform(0,4000)+4000 |
| TString OutputFile ="PARAMETERSET_DEFINITIONFILE_LONG_BW_ALG.txt" |
| outstream<< " "<< ParaSetNr<< " "<< " "<< CUT_ZYLINDER_R_MAX<< " "<< CUT_ZYLINDER_ANGLE_MAX<< " "<< CUT_SHOWERFOLLOWERBT_DR_MAX<< " "<< CUT_SHOWERFOLLOWERBT_DTAN_MAX<< " "<< CUT_NHOLES_MAX<< endl++ParaSetNr CUT_ZYLINDER_R_MAX=800 CUT_ZYLINDER_ANGLE_MAX=0.02 CUT_SHOWERFOLLOWERBT_DR_MAX=150 CUT_SHOWERFOLLOWERBT_DTAN_MAX=0.15 CUT_NHOLES_MAX=3 ParaSet-> Fill() |
| ParaSet = new TTree("ParaSet_Variables","ParaSet_Variables") |
| Int_t ParaSetNr =0 |
| return |