StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
drift_konstanten.C
1 void drift_konstanten(Float_t Vc)
2 {
3  Float_t RA=30.05;
4  Float_t RI=7.73;
5 
6  cout<<"Calculate the values needed for the creation of the drift map tables:"<<endl;
7 
8  cout<<"RA = "<<RA<<endl;
9  cout<<"RI = "<<RI<<endl;
10 
11  Float_t inv_konst=1/log(RA/RI);
12  //cout<<inv_konst<<endl;
13 
14  cout<<"Vc = "<<Vc<<endl;
15 
16  Float_t rtimesE=(inv_konst*Vc)*1000;
17 
18  cout<<"radiusTimesField = "<<rtimesE<<endl;
19  //cout<<(rtimesE/RI-rtimesE/RA)/(RA-RI)<<endl;
20  //Float_t eprocm=(rtimesE/RI-rtimesE/RA)/(RA-RI)/10;
21  //cout<<eprocm<<endl;
22  cout<<"minimumDriftField ="<<int (rtimesE/RA)<<endl;
23  cout<<"maximumDriftField ="<<rtimesE/RI<<endl;
24  //cout<<"minimumDriftField ="<<rtimesE/RI<<endl;
25  cout<<"numberOfEFieldBinsUsed = "<<fabs((rtimesE/RA)-(rtimesE/RI))<<endl;
26 }