BesSCMParameter Class Reference

#include <BesSCMParameter.hh>

List of all members.

Public Member Functions

 BesSCMParameter ()
 ~BesSCMParameter ()
void ReadData ()
G4double getInnerCryo (G4int i)
G4double getL1Adia (G4int i)
G4double getInnerShield (G4int i)
G4double getL2Adia (G4int i)
G4double getOuterShield (G4int i)
G4double getL3Adia (G4int i)
G4double getEndShield (G4int i)
G4double getL1insu (G4int i)
G4double getCoil (G4int i)
G4double getL2insu (G4int i)
G4double getSupp (G4int i)
G4double getL4Adia (G4int i)
G4double getEndCoil (G4int i)
G4double getOuterCryo (G4int i)
G4double getEndCryo (G4int i)
G4double getRein (G4int i)
G4double getPipe1 (G4int i)
G4double getPipe2 (G4int i)
G4double getPipe3 (G4int i)
G4double getHole (G4int i)

Private Attributes

G4double innerCryo [3]
G4double l1Adia [3]
G4double innerShield [3]
G4double l2Adia [3]
G4double outerShield [3]
G4double l3Adia [3]
G4double endShield [5]
G4double l1insu [3]
G4double coil [3]
G4double l2insu [3]
G4double supp [3]
G4double l4Adia [3]
G4double endCoil [5]
G4double outerCryo [3]
G4double endCryo [5]
G4double rein [5]
G4double pipe1 [6]
G4double pipe2 [6]
G4double pipe3 [6]
G4double hole [13]


Detailed Description

Definition at line 17 of file BesSCMParameter.hh.


Constructor & Destructor Documentation

BesSCMParameter::BesSCMParameter (  ) 

Definition at line 16 of file BesSCMParameter.cc.

00017 {
00018 }

BesSCMParameter::~BesSCMParameter (  ) 

Definition at line 19 of file BesSCMParameter.cc.

00020 {
00021 }


Member Function Documentation

G4double BesSCMParameter::getCoil ( G4int  i  )  [inline]

Definition at line 33 of file BesSCMParameter.hh.

References coil.

Referenced by BesSCM::BesSCM().

00033 { return coil[i]; }

G4double BesSCMParameter::getEndCoil ( G4int  i  )  [inline]

Definition at line 37 of file BesSCMParameter.hh.

References endCoil.

Referenced by BesSCM::BesSCM().

00037 { return endCoil[i]; }

G4double BesSCMParameter::getEndCryo ( G4int  i  )  [inline]

Definition at line 39 of file BesSCMParameter.hh.

References endCryo.

Referenced by BesSCM::BesSCM().

00039 { return endCryo[i]; }

G4double BesSCMParameter::getEndShield ( G4int  i  )  [inline]

Definition at line 31 of file BesSCMParameter.hh.

References endShield.

Referenced by BesSCM::BesSCM().

00031 { return endShield[i]; }

G4double BesSCMParameter::getHole ( G4int  i  )  [inline]

Definition at line 44 of file BesSCMParameter.hh.

References hole.

Referenced by BesSCM::BesSCM().

00044 { return hole[i]; }

G4double BesSCMParameter::getInnerCryo ( G4int  i  )  [inline]

Definition at line 25 of file BesSCMParameter.hh.

References innerCryo.

Referenced by BesSCM::BesSCM().

00025 { return innerCryo[i]; }

G4double BesSCMParameter::getInnerShield ( G4int  i  )  [inline]

Definition at line 27 of file BesSCMParameter.hh.

References innerShield.

Referenced by BesSCM::BesSCM().

00027 { return innerShield[i]; }

G4double BesSCMParameter::getL1Adia ( G4int  i  )  [inline]

Definition at line 26 of file BesSCMParameter.hh.

References l1Adia.

Referenced by BesSCM::BesSCM().

00026 { return l1Adia[i]; }

G4double BesSCMParameter::getL1insu ( G4int  i  )  [inline]

Definition at line 32 of file BesSCMParameter.hh.

References l1insu.

Referenced by BesSCM::BesSCM().

00032 { return l1insu[i]; }

G4double BesSCMParameter::getL2Adia ( G4int  i  )  [inline]

Definition at line 28 of file BesSCMParameter.hh.

References l2Adia.

Referenced by BesSCM::BesSCM().

00028 { return l2Adia[i]; }

G4double BesSCMParameter::getL2insu ( G4int  i  )  [inline]

Definition at line 34 of file BesSCMParameter.hh.

References l2insu.

Referenced by BesSCM::BesSCM().

00034 { return l2insu[i]; }

G4double BesSCMParameter::getL3Adia ( G4int  i  )  [inline]

Definition at line 30 of file BesSCMParameter.hh.

References l3Adia.

Referenced by BesSCM::BesSCM().

00030 { return l3Adia[i]; }

G4double BesSCMParameter::getL4Adia ( G4int  i  )  [inline]

Definition at line 36 of file BesSCMParameter.hh.

References l4Adia.

Referenced by BesSCM::BesSCM().

00036 { return l4Adia[i]; }

G4double BesSCMParameter::getOuterCryo ( G4int  i  )  [inline]

Definition at line 38 of file BesSCMParameter.hh.

References outerCryo.

Referenced by BesSCM::BesSCM().

00038 { return outerCryo[i]; }

G4double BesSCMParameter::getOuterShield ( G4int  i  )  [inline]

Definition at line 29 of file BesSCMParameter.hh.

References outerShield.

Referenced by BesSCM::BesSCM().

00029 { return outerShield[i]; }

G4double BesSCMParameter::getPipe1 ( G4int  i  )  [inline]

Definition at line 41 of file BesSCMParameter.hh.

References pipe1.

Referenced by BesSCM::BesSCM().

00041 { return pipe1[i]; }

G4double BesSCMParameter::getPipe2 ( G4int  i  )  [inline]

Definition at line 42 of file BesSCMParameter.hh.

References pipe2.

Referenced by BesSCM::BesSCM().

00042 { return pipe2[i]; }

G4double BesSCMParameter::getPipe3 ( G4int  i  )  [inline]

Definition at line 43 of file BesSCMParameter.hh.

References pipe3.

Referenced by BesSCM::BesSCM().

00043 { return pipe3[i]; }

G4double BesSCMParameter::getRein ( G4int  i  )  [inline]

Definition at line 40 of file BesSCMParameter.hh.

References rein.

Referenced by BesSCM::BesSCM().

00040 { return rein[i]; }

G4double BesSCMParameter::getSupp ( G4int  i  )  [inline]

Definition at line 35 of file BesSCMParameter.hh.

References supp.

Referenced by BesSCM::BesSCM().

00035 { return supp[i]; }

void BesSCMParameter::ReadData (  ) 

Definition at line 22 of file BesSCMParameter.cc.

References coil, endCoil, endCryo, endShield, hole, innerCryo, innerShield, l1Adia, l1insu, l2Adia, l2insu, l3Adia, l4Adia, outerCryo, outerShield, pipe1, pipe2, pipe3, rein, supp, and subSeperate::temp.

Referenced by BesSCM::BesSCM().

00023 {
00024   G4String GeometryPath = getenv("BESSIMROOT");
00025   if(!GeometryPath){
00026     G4Exception("BOOST environment not set!");
00027   }
00028   GeometryPath += "/dat/BesSCM.txt";
00029         
00030   ifstream fin;
00031   fin.open(GeometryPath);
00032 
00033   const int maxCharOfOneLine=255;
00034   char temp[maxCharOfOneLine],*p;
00035   int lineNo=0,inputNo=0;
00036   while(fin.peek()!=EOF)
00037   {
00038     fin.getline(temp,maxCharOfOneLine);
00039     p=temp;
00040     lineNo++; 
00041     while(*p!='\0')
00042     {
00043       if(*p=='#')
00044       {
00045         *p='\0';  //delete the comments.
00046          break;
00047       }
00048       p++;
00049     }
00050     p=temp; //reset the pointer to the beginning of the string.
00051     while(*p==' '||*p=='\t')p++; 
00052     if(*p=='\0')continue; 
00053     inputNo++; 
00054     switch(inputNo)
00055     {
00056       case 1:
00057         istrstream(p)>>innerCryo[0]>>innerCryo[1]>>innerCryo[2];
00058       break;
00059       case 2:
00060         istrstream(p)>>l1Adia[0]>>l1Adia[1]>>l1Adia[2];
00061       break;
00062       case 3:
00063         istrstream(p)>>innerShield[0]>>innerShield[1]>>innerShield[2];
00064       break;
00065       case 4:
00066         istrstream(p)>>l2Adia[0]>>l2Adia[1]>>l2Adia[2];
00067       break;
00068       case 5:
00069         istrstream(p)>>outerShield[0]>>outerShield[1]>>outerShield[2];
00070       break;
00071       case 6:
00072         istrstream(p)>>l3Adia[0]>>l3Adia[1]>>l3Adia[2];
00073       break;    
00074       case 7:
00075         istrstream(p)>>endShield[0]>>endShield[1]>>endShield[2]>>endShield[3]>>endShield[4];
00076       break;    
00077       case 8:
00078         istrstream(p)>>l1insu[0]>>l1insu[1]>>l1insu[2];
00079         break;
00080       case 9:
00081         istrstream(p)>>coil[0]>>coil[1]>>coil[2];
00082         break;
00083       case 10:
00084         istrstream(p)>>l2insu[0]>>l2insu[1]>>l2insu[2];
00085         break;
00086       case 11:
00087         istrstream(p)>>supp[0]>>supp[1]>>supp[2];
00088         break;
00089       case 12:
00090         istrstream(p)>>l4Adia[0]>>l4Adia[1]>>l4Adia[2];
00091         break;
00092       case 13:
00093         istrstream(p)>>endCoil[0]>>endCoil[1]>>endCoil[2]>>endCoil[3]>>endCoil[4];
00094         break;
00095       case 14:
00096         istrstream(p)>>outerCryo[0]>>outerCryo[1]>>outerCryo[2];
00097         break;
00098       case 15:
00099         istrstream(p)>>endCryo[0]>>endCryo[1]>>endCryo[2]>>endCryo[3]>>endCryo[4];
00100         break;
00101       case 16:
00102         istrstream(p)>>rein[0]>>rein[1]>>rein[2]>>rein[3]>>rein[4];
00103         break;
00104       case 17:
00105         istrstream(p)>>pipe1[0]>>pipe1[1]>>pipe1[2]>>pipe1[3]>>pipe1[4]>>pipe1[5];
00106         break;
00107       case 18:
00108         istrstream(p)>>pipe2[0]>>pipe2[1]>>pipe2[2]>>pipe2[3]>>pipe2[4]>>pipe2[5];
00109         break;
00110       case 19:
00111         istrstream(p)>>pipe3[0]>>pipe3[1]>>pipe3[2]>>pipe3[3]>>pipe3[4]>>pipe3[5];
00112         break;
00113       case 20:
00114         istrstream(p)>>hole[0]>>hole[1]>>hole[2]>>hole[3]>>hole[4]>>hole[5]>>hole[6]>>hole[7]>>hole[8]>>hole[9]>>hole[10]>>hole[11]>>hole[12];
00115     }
00116   }
00117 }


Member Data Documentation

G4double BesSCMParameter::coil[3] [private]

Definition at line 55 of file BesSCMParameter.hh.

Referenced by getCoil(), and ReadData().

G4double BesSCMParameter::endCoil[5] [private]

Definition at line 59 of file BesSCMParameter.hh.

Referenced by getEndCoil(), and ReadData().

G4double BesSCMParameter::endCryo[5] [private]

Definition at line 61 of file BesSCMParameter.hh.

Referenced by getEndCryo(), and ReadData().

G4double BesSCMParameter::endShield[5] [private]

Definition at line 53 of file BesSCMParameter.hh.

Referenced by getEndShield(), and ReadData().

G4double BesSCMParameter::hole[13] [private]

Definition at line 66 of file BesSCMParameter.hh.

Referenced by getHole(), and ReadData().

G4double BesSCMParameter::innerCryo[3] [private]

Definition at line 47 of file BesSCMParameter.hh.

Referenced by getInnerCryo(), and ReadData().

G4double BesSCMParameter::innerShield[3] [private]

Definition at line 49 of file BesSCMParameter.hh.

Referenced by getInnerShield(), and ReadData().

G4double BesSCMParameter::l1Adia[3] [private]

Definition at line 48 of file BesSCMParameter.hh.

Referenced by getL1Adia(), and ReadData().

G4double BesSCMParameter::l1insu[3] [private]

Definition at line 54 of file BesSCMParameter.hh.

Referenced by getL1insu(), and ReadData().

G4double BesSCMParameter::l2Adia[3] [private]

Definition at line 50 of file BesSCMParameter.hh.

Referenced by getL2Adia(), and ReadData().

G4double BesSCMParameter::l2insu[3] [private]

Definition at line 56 of file BesSCMParameter.hh.

Referenced by getL2insu(), and ReadData().

G4double BesSCMParameter::l3Adia[3] [private]

Definition at line 52 of file BesSCMParameter.hh.

Referenced by getL3Adia(), and ReadData().

G4double BesSCMParameter::l4Adia[3] [private]

Definition at line 58 of file BesSCMParameter.hh.

Referenced by getL4Adia(), and ReadData().

G4double BesSCMParameter::outerCryo[3] [private]

Definition at line 60 of file BesSCMParameter.hh.

Referenced by getOuterCryo(), and ReadData().

G4double BesSCMParameter::outerShield[3] [private]

Definition at line 51 of file BesSCMParameter.hh.

Referenced by getOuterShield(), and ReadData().

G4double BesSCMParameter::pipe1[6] [private]

Definition at line 63 of file BesSCMParameter.hh.

Referenced by getPipe1(), and ReadData().

G4double BesSCMParameter::pipe2[6] [private]

Definition at line 64 of file BesSCMParameter.hh.

Referenced by getPipe2(), and ReadData().

G4double BesSCMParameter::pipe3[6] [private]

Definition at line 65 of file BesSCMParameter.hh.

Referenced by getPipe3(), and ReadData().

G4double BesSCMParameter::rein[5] [private]

Definition at line 62 of file BesSCMParameter.hh.

Referenced by getRein(), and ReadData().

G4double BesSCMParameter::supp[3] [private]

Definition at line 57 of file BesSCMParameter.hh.

Referenced by getSupp(), and ReadData().


Generated on Tue Nov 29 23:17:35 2016 for BOSS_7.0.2 by  doxygen 1.4.7