Version 1.5.3 - Another fix for Main file to call different runs
This commit is contained in:
		
							parent
							
								
									ea536da54d
								
							
						
					
					
						commit
						fb42b93a5f
					
				
							
								
								
									
										18
									
								
								BM1D.cc
								
								
								
								
							
							
						
						
									
										18
									
								
								BM1D.cc
								
								
								
								
							| 
						 | 
					@ -7,22 +7,22 @@ using namespace std;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int main(int argc, char* argv[])
 | 
					int main(int argc, char* argv[])
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    Int_t nSteps, nRuns, x0,x1,x2,x3;
 | 
					    Int_t nSteps, nRuns, p0,p1,x1,x2;
 | 
				
			||||||
    Double_t mu1, mu2, sigma1, sigma2;
 | 
					    Double_t mu1, mu2, sigma1, sigma2;
 | 
				
			||||||
    string fileName="input.root";
 | 
					    string fileName="input.root";
 | 
				
			||||||
    char random_type='u';
 | 
					    char random_type='u';
 | 
				
			||||||
    Int_t vis, typeOfRun;
 | 
					    Int_t vis, typeOfRun;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    nSteps=nRuns=x0=x1=x2=x3=vis=typeOfRun=0;
 | 
					    nSteps=nRuns=p0=p1=x1=x2=vis=typeOfRun=0;
 | 
				
			||||||
    mu1=mu2=sigma1=sigma2=0.0;
 | 
					    mu1=mu2=sigma1=sigma2=0.0;
 | 
				
			||||||
    if(argc==15)
 | 
					    if(argc==15)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        nSteps=atoi(argv[1]);
 | 
					        nSteps=atoi(argv[1]);
 | 
				
			||||||
        nRuns=atoi(argv[2]);
 | 
					        nRuns=atoi(argv[2]);
 | 
				
			||||||
        x0=atoi(argv[3]);
 | 
					        p0=atoi(argv[3]);
 | 
				
			||||||
        x1=atoi(argv[4]);
 | 
					        p1=atoi(argv[4]);
 | 
				
			||||||
        x2=atoi(argv[5]);
 | 
					        x1=atoi(argv[5]);
 | 
				
			||||||
        x3=atoi(argv[6]);
 | 
					        x2=atoi(argv[6]);
 | 
				
			||||||
        mu1=atof(argv[7]);
 | 
					        mu1=atof(argv[7]);
 | 
				
			||||||
        mu2=atof(argv[8]);
 | 
					        mu2=atof(argv[8]);
 | 
				
			||||||
        sigma1=atof(argv[9]);
 | 
					        sigma1=atof(argv[9]);
 | 
				
			||||||
| 
						 | 
					@ -44,13 +44,13 @@ int main(int argc, char* argv[])
 | 
				
			||||||
  myBM1DProcess->Init();
 | 
					  myBM1DProcess->Init();
 | 
				
			||||||
    switch(random_type){
 | 
					    switch(random_type){
 | 
				
			||||||
        case 'u':
 | 
					        case 'u':
 | 
				
			||||||
            myBM1DProcess->Run(nRuns, nSteps, x0, x1);
 | 
					            myBM1DProcess->Run(nRuns, nSteps, p0, p1);
 | 
				
			||||||
            break;
 | 
					            break;
 | 
				
			||||||
        case 'g':
 | 
					        case 'g':
 | 
				
			||||||
            myBM1DProcess->Run(nRuns, nSteps, x0, mu1, sigma1);
 | 
					            myBM1DProcess->Run(nRuns, nSteps, p0, mu1, sigma1);
 | 
				
			||||||
            break;
 | 
					            break;
 | 
				
			||||||
        case 'l':
 | 
					        case 'l':
 | 
				
			||||||
            myBM1DProcess->Run(nRuns, nSteps, x0, x1, x2, mu1, sigma1, mu2, sigma2);
 | 
					            myBM1DProcess->Run(nRuns, nSteps, p0, x1, x2, mu1, sigma1, mu2, sigma2);
 | 
				
			||||||
            break;
 | 
					            break;
 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
            cout<<"ERROR! Wrong parameter for type of random generator! \n No run!"<<endl;
 | 
					            cout<<"ERROR! Wrong parameter for type of random generator! \n No run!"<<endl;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue