BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
BesEmcParameter Class Reference

#include <BesEmcParameter.hh>

Public Member Functions

 BesEmcParameter ()
 
 ~BesEmcParameter ()
 
void ReadData ()
 
G4long GetArraySize ()
 
G4double GetTau ()
 
G4double GetHighRange ()
 
G4double GetMidRange ()
 
G4double GetLowRange ()
 
G4double GetSampleTime ()
 
G4double GetPeakTime ()
 
G4double GetTimeOffset ()
 
G4int GetADCbit ()
 
G4double GetPhotonsPerMeV ()
 
G4double GetNonuniformity ()
 
G4double GetWorldRmin1 ()
 
G4double GetWorldRmax1 ()
 
G4double GetWorldRmin2 ()
 
G4double GetWorldRmax2 ()
 
G4double GetWorldDz ()
 
G4double GetWorldZPosition ()
 
G4double GetCrystalLength ()
 
G4double GetCrystalLength1 ()
 
G4int GetCryInOneLayer (G4int nb)
 
G4int GetPentaInOneSector (G4int nb)
 
G4double GetTyvekThickness ()
 
G4double GetAlThickness ()
 
G4double GetMylarThickness ()
 
G4double GetBSCRmin ()
 
G4double GetBSCDz ()
 
G4double GetBSCRmin1 ()
 
G4double GetBSCRmax1 ()
 
G4double GetBSCRmin2 ()
 
G4double GetBSCRmax2 ()
 
G4double GetBSCDz1 ()
 
G4double GetBSCAngleRotat ()
 
G4int GetBSCNbPhi ()
 
G4int GetBSCNbTheta ()
 
G4double GetBSCYFront0 ()
 
G4double GetBSCYFront ()
 
G4double GetBSCYFront1 ()
 
G4double GetBSCPosition0 ()
 
G4double GetBSCPosition1 ()
 
G4double GetTaperRingDz ()
 
G4double GetTaperRingThickness1 ()
 
G4double GetTaperRingThickness2 ()
 
G4double GetTaperRingThickness3 ()
 
G4double GetTaperRingTheta ()
 
G4double GetTaperRingInnerLength ()
 
G4double GetTaperRingOuterLength ()
 
G4double GetRearBoxLength ()
 
G4double GetRearBoxDz ()
 
G4double GetHangingPlateDz ()
 
G4double GetOCGirderAngle ()
 
G4double GetRearCasingThickness ()
 
G4double GetOrgGlassLengthX ()
 
G4double GetOrgGlassLengthY ()
 
G4double GetOrgGlassLengthZ ()
 
G4double GetPDLengthX ()
 
G4double GetPDLengthY ()
 
G4double GetPDLengthZ ()
 
G4double GetAlPlateDz ()
 
G4double GetPABoxDz ()
 
G4double GetPABoxThickness ()
 
G4double GetCableDr ()
 
G4double GetWaterPipeDr ()
 
G4double GetWaterPipeThickness ()
 
G4double GetSPBarThickness ()
 
G4double GetSPBarThickness1 ()
 
G4double GetSPBarwidth ()
 
G4double GetEndRingDz ()
 
G4double GetEndRingDr ()
 
G4double GetEndRingRmin ()
 
G4double GetLightOutput (G4int i)
 
G4double GetLightOutput (G4int, G4int, G4int)
 

Static Public Member Functions

static BesEmcParameterGetInstance ()
 
static bool Exist ()
 
static void Kill ()
 

Detailed Description

Definition at line 17 of file BesEmcParameter.hh.

Constructor & Destructor Documentation

◆ BesEmcParameter()

BesEmcParameter::BesEmcParameter ( )

Definition at line 22 of file BesEmcParameter.cc.

23{
24}

Referenced by GetInstance().

◆ ~BesEmcParameter()

BesEmcParameter::~BesEmcParameter ( )

Definition at line 27 of file BesEmcParameter.cc.

28{
29}

Member Function Documentation

◆ Exist()

bool BesEmcParameter::Exist ( )
static

Definition at line 42 of file BesEmcParameter.cc.

43{
44 return fpInstance!=0;
45}

Referenced by GetInstance(), and Kill().

◆ GetADCbit()

G4int BesEmcParameter::GetADCbit ( )
inline

Definition at line 45 of file BesEmcParameter.hh.

45{ return m_bitNb; }

Referenced by BesEmcWaveform::BesEmcWaveform().

◆ GetAlPlateDz()

G4double BesEmcParameter::GetAlPlateDz ( )
inline

Definition at line 106 of file BesEmcParameter.hh.

106{ return AlPlateDz; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetAlThickness()

G4double BesEmcParameter::GetAlThickness ( )
inline

Definition at line 62 of file BesEmcParameter.hh.

62{ return fAlThickness; }

Referenced by BesEmcGeometry::ReadEMCParameters(), and BesEmcEndGeometry::ReadParameters().

◆ GetArraySize()

G4long BesEmcParameter::GetArraySize ( )
inline

Definition at line 37 of file BesEmcParameter.hh.

37{ return array_size; }

Referenced by BesEmcWaveform::BesEmcWaveform().

◆ GetBSCAngleRotat()

G4double BesEmcParameter::GetBSCAngleRotat ( )
inline

Definition at line 73 of file BesEmcParameter.hh.

73{ return BSCAngleRotat; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetBSCDz()

G4double BesEmcParameter::GetBSCDz ( )
inline

Definition at line 66 of file BesEmcParameter.hh.

66{ return BSCDz; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetBSCDz1()

G4double BesEmcParameter::GetBSCDz1 ( )
inline

Definition at line 71 of file BesEmcParameter.hh.

71{ return BSCDz1; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetBSCNbPhi()

G4int BesEmcParameter::GetBSCNbPhi ( )
inline

Definition at line 74 of file BesEmcParameter.hh.

74{ return BSCNbPhi; }

Referenced by BesEmcDigitizer::AddNoise5x5(), BesEmcDigitizer::AddNoiseAll(), and BesEmcGeometry::ReadEMCParameters().

◆ GetBSCNbTheta()

G4int BesEmcParameter::GetBSCNbTheta ( )
inline

Definition at line 75 of file BesEmcParameter.hh.

75{ return BSCNbTheta; }

Referenced by BesEmcDigitizer::AddNoise5x5(), BesEmcDigitizer::AddNoiseAll(), and BesEmcGeometry::ReadEMCParameters().

◆ GetBSCPosition0()

G4double BesEmcParameter::GetBSCPosition0 ( )
inline

Definition at line 80 of file BesEmcParameter.hh.

80{ return BSCPosition0; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetBSCPosition1()

G4double BesEmcParameter::GetBSCPosition1 ( )
inline

Definition at line 81 of file BesEmcParameter.hh.

81{ return BSCPosition1; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetBSCRmax1()

G4double BesEmcParameter::GetBSCRmax1 ( )
inline

Definition at line 68 of file BesEmcParameter.hh.

68{ return BSCRmax1; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetBSCRmax2()

G4double BesEmcParameter::GetBSCRmax2 ( )
inline

Definition at line 70 of file BesEmcParameter.hh.

70{ return BSCRmax2; }

◆ GetBSCRmin()

G4double BesEmcParameter::GetBSCRmin ( )
inline

Definition at line 65 of file BesEmcParameter.hh.

65{ return BSCRmin; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetBSCRmin1()

G4double BesEmcParameter::GetBSCRmin1 ( )
inline

Definition at line 67 of file BesEmcParameter.hh.

67{ return BSCRmin1; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetBSCRmin2()

G4double BesEmcParameter::GetBSCRmin2 ( )
inline

Definition at line 69 of file BesEmcParameter.hh.

69{ return BSCRmin2; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetBSCYFront()

G4double BesEmcParameter::GetBSCYFront ( )
inline

Definition at line 78 of file BesEmcParameter.hh.

78{ return BSCYFront; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetBSCYFront0()

G4double BesEmcParameter::GetBSCYFront0 ( )
inline

Definition at line 77 of file BesEmcParameter.hh.

77{ return BSCYFront0; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetBSCYFront1()

G4double BesEmcParameter::GetBSCYFront1 ( )
inline

Definition at line 79 of file BesEmcParameter.hh.

79{ return BSCYFront1; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetCableDr()

G4double BesEmcParameter::GetCableDr ( )
inline

Definition at line 110 of file BesEmcParameter.hh.

110{ return cableDr; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetCryInOneLayer()

G4int BesEmcParameter::GetCryInOneLayer ( G4int  nb)
inline

Definition at line 58 of file BesEmcParameter.hh.

58{ return cryNumInOneLayer[nb]; }

Referenced by BesEmcDigitizer::AddNoiseAll(), and BesEmcEndGeometry::ReadParameters().

◆ GetCrystalLength()

G4double BesEmcParameter::GetCrystalLength ( )
inline

Definition at line 55 of file BesEmcParameter.hh.

55{ return CrystalLength; }

Referenced by BesEmcGeometry::ReadEMCParameters(), and BesEmcEndGeometry::ReadParameters().

◆ GetCrystalLength1()

G4double BesEmcParameter::GetCrystalLength1 ( )
inline

Definition at line 56 of file BesEmcParameter.hh.

56{ return CrystalLength1; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetEndRingDr()

G4double BesEmcParameter::GetEndRingDr ( )
inline

Definition at line 119 of file BesEmcParameter.hh.

119{ return EndRingDr; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetEndRingDz()

G4double BesEmcParameter::GetEndRingDz ( )
inline

Definition at line 118 of file BesEmcParameter.hh.

118{ return EndRingDz; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetEndRingRmin()

G4double BesEmcParameter::GetEndRingRmin ( )
inline

Definition at line 120 of file BesEmcParameter.hh.

120{ return EndRingRmin; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetHangingPlateDz()

G4double BesEmcParameter::GetHangingPlateDz ( )
inline

Definition at line 93 of file BesEmcParameter.hh.

93{ return HangingPlateDz; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetHighRange()

G4double BesEmcParameter::GetHighRange ( )
inline

Definition at line 39 of file BesEmcParameter.hh.

39{ return m_highRange; }

Referenced by BesEmcWaveform::BesEmcWaveform().

◆ GetInstance()

BesEmcParameter & BesEmcParameter::GetInstance ( )
static

Definition at line 33 of file BesEmcParameter.cc.

34{
35 if(!Exist()) {
36 fpInstance=new BesEmcParameter;
37 fpInstance->ReadData();
38 }
39 return *fpInstance;
40}
static bool Exist()

Referenced by BesEmcDigitizer::AddNoise5x5(), BesEmcDigitizer::AddNoiseAll(), BesEmcWaveform::BesEmcWaveform(), BesEmcGeometry::ReadEMCParameters(), and BesEmcEndGeometry::ReadParameters().

◆ GetLightOutput() [1/2]

G4double BesEmcParameter::GetLightOutput ( G4int  i)
inline

Definition at line 122 of file BesEmcParameter.hh.

122{ return lightOutput[i]; }

Referenced by BesEmcDigitizer::AddNoise5x5(), and BesEmcDigitizer::AddNoiseAll().

◆ GetLightOutput() [2/2]

G4double BesEmcParameter::GetLightOutput ( G4int  partId,
G4int  theta,
G4int  phi 
)

Definition at line 144 of file BesEmcParameter.cc.

145{
146 EmcStructure struc;
147 struc.setEmcStruc();
148 G4int index = struc.getGeomIndex(partId,theta,phi);
149 if(index>=0&&index<6240) {
150 return lightOutput[index];
151 } else {
152 return 1.;
153 }
154}
int getGeomIndex(unsigned int PartId, unsigned int ThetaIndex, unsigned int PhiIndex) const
void setEmcStruc()

◆ GetLowRange()

G4double BesEmcParameter::GetLowRange ( )
inline

Definition at line 41 of file BesEmcParameter.hh.

41{ return m_lowRange; }

Referenced by BesEmcWaveform::BesEmcWaveform().

◆ GetMidRange()

G4double BesEmcParameter::GetMidRange ( )
inline

Definition at line 40 of file BesEmcParameter.hh.

40{ return m_midRange; }

Referenced by BesEmcWaveform::BesEmcWaveform().

◆ GetMylarThickness()

G4double BesEmcParameter::GetMylarThickness ( )
inline

Definition at line 63 of file BesEmcParameter.hh.

63{ return fMylarThickness; }

Referenced by BesEmcGeometry::ReadEMCParameters(), and BesEmcEndGeometry::ReadParameters().

◆ GetNonuniformity()

G4double BesEmcParameter::GetNonuniformity ( )
inline

Definition at line 47 of file BesEmcParameter.hh.

47{ return m_nonuniformity; }

Referenced by BesEmcWaveform::BesEmcWaveform().

◆ GetOCGirderAngle()

G4double BesEmcParameter::GetOCGirderAngle ( )
inline

Definition at line 94 of file BesEmcParameter.hh.

94{ return OCGirderAngle; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetOrgGlassLengthX()

G4double BesEmcParameter::GetOrgGlassLengthX ( )
inline

Definition at line 98 of file BesEmcParameter.hh.

98{ return orgGlassLengthX; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetOrgGlassLengthY()

G4double BesEmcParameter::GetOrgGlassLengthY ( )
inline

Definition at line 99 of file BesEmcParameter.hh.

99{ return orgGlassLengthY; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetOrgGlassLengthZ()

G4double BesEmcParameter::GetOrgGlassLengthZ ( )
inline

Definition at line 100 of file BesEmcParameter.hh.

100{ return orgGlassLengthZ; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetPABoxDz()

G4double BesEmcParameter::GetPABoxDz ( )
inline

Definition at line 107 of file BesEmcParameter.hh.

107{ return PABoxDz; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetPABoxThickness()

G4double BesEmcParameter::GetPABoxThickness ( )
inline

Definition at line 108 of file BesEmcParameter.hh.

108{ return PABoxThickness; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetPDLengthX()

G4double BesEmcParameter::GetPDLengthX ( )
inline

Definition at line 102 of file BesEmcParameter.hh.

102{ return PDLengthX; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetPDLengthY()

G4double BesEmcParameter::GetPDLengthY ( )
inline

Definition at line 103 of file BesEmcParameter.hh.

103{ return PDLengthY; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetPDLengthZ()

G4double BesEmcParameter::GetPDLengthZ ( )
inline

Definition at line 104 of file BesEmcParameter.hh.

104{ return PDLengthZ; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetPeakTime()

G4double BesEmcParameter::GetPeakTime ( )
inline

Definition at line 43 of file BesEmcParameter.hh.

43{ return m_peakTime; }

Referenced by BesEmcWaveform::BesEmcWaveform().

◆ GetPentaInOneSector()

G4int BesEmcParameter::GetPentaInOneSector ( G4int  nb)
inline

Definition at line 59 of file BesEmcParameter.hh.

59{ return pentaInOneSector[nb]; }

Referenced by BesEmcEndGeometry::ReadParameters().

◆ GetPhotonsPerMeV()

G4double BesEmcParameter::GetPhotonsPerMeV ( )
inline

Definition at line 46 of file BesEmcParameter.hh.

46{ return m_photonsPerMeV; }

Referenced by BesEmcWaveform::BesEmcWaveform().

◆ GetRearBoxDz()

G4double BesEmcParameter::GetRearBoxDz ( )
inline

Definition at line 92 of file BesEmcParameter.hh.

92{ return rearBoxDz; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetRearBoxLength()

G4double BesEmcParameter::GetRearBoxLength ( )
inline

Definition at line 91 of file BesEmcParameter.hh.

91{ return rearBoxLength; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetRearCasingThickness()

G4double BesEmcParameter::GetRearCasingThickness ( )
inline

Definition at line 96 of file BesEmcParameter.hh.

96{ return rearCasingThickness; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetSampleTime()

G4double BesEmcParameter::GetSampleTime ( )
inline

Definition at line 42 of file BesEmcParameter.hh.

42{ return m_sampleTime; }

Referenced by BesEmcWaveform::BesEmcWaveform().

◆ GetSPBarThickness()

G4double BesEmcParameter::GetSPBarThickness ( )
inline

Definition at line 114 of file BesEmcParameter.hh.

114{ return SPBarThickness; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetSPBarThickness1()

G4double BesEmcParameter::GetSPBarThickness1 ( )
inline

Definition at line 115 of file BesEmcParameter.hh.

115{ return SPBarThickness1; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetSPBarwidth()

G4double BesEmcParameter::GetSPBarwidth ( )
inline

Definition at line 116 of file BesEmcParameter.hh.

116{ return SPBarwidth; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetTaperRingDz()

G4double BesEmcParameter::GetTaperRingDz ( )
inline

Definition at line 83 of file BesEmcParameter.hh.

83{ return TaperRingDz; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetTaperRingInnerLength()

G4double BesEmcParameter::GetTaperRingInnerLength ( )
inline

Definition at line 88 of file BesEmcParameter.hh.

88{ return TaperRingInnerLength; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetTaperRingOuterLength()

G4double BesEmcParameter::GetTaperRingOuterLength ( )
inline

Definition at line 89 of file BesEmcParameter.hh.

89{ return TaperRingOuterLength; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetTaperRingTheta()

G4double BesEmcParameter::GetTaperRingTheta ( )
inline

Definition at line 87 of file BesEmcParameter.hh.

87{ return TaperRingTheta; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetTaperRingThickness1()

G4double BesEmcParameter::GetTaperRingThickness1 ( )
inline

Definition at line 84 of file BesEmcParameter.hh.

84{ return TaperRingThickness1; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetTaperRingThickness2()

G4double BesEmcParameter::GetTaperRingThickness2 ( )
inline

Definition at line 85 of file BesEmcParameter.hh.

85{ return TaperRingThickness2; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetTaperRingThickness3()

G4double BesEmcParameter::GetTaperRingThickness3 ( )
inline

Definition at line 86 of file BesEmcParameter.hh.

86{ return TaperRingThickness3; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetTau()

G4double BesEmcParameter::GetTau ( )
inline

Definition at line 38 of file BesEmcParameter.hh.

38{ return m_tau; }

Referenced by BesEmcWaveform::BesEmcWaveform().

◆ GetTimeOffset()

G4double BesEmcParameter::GetTimeOffset ( )
inline

Definition at line 44 of file BesEmcParameter.hh.

44{ return m_timeOffset; }

Referenced by BesEmcWaveform::BesEmcWaveform().

◆ GetTyvekThickness()

G4double BesEmcParameter::GetTyvekThickness ( )
inline

Definition at line 61 of file BesEmcParameter.hh.

61{ return fTyvekThickness; }

Referenced by BesEmcGeometry::ReadEMCParameters(), and BesEmcEndGeometry::ReadParameters().

◆ GetWaterPipeDr()

G4double BesEmcParameter::GetWaterPipeDr ( )
inline

Definition at line 111 of file BesEmcParameter.hh.

111{ return waterPipeDr; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetWaterPipeThickness()

G4double BesEmcParameter::GetWaterPipeThickness ( )
inline

Definition at line 112 of file BesEmcParameter.hh.

112{ return waterPipeThickness; }

Referenced by BesEmcGeometry::ReadEMCParameters().

◆ GetWorldDz()

G4double BesEmcParameter::GetWorldDz ( )
inline

Definition at line 53 of file BesEmcParameter.hh.

53{ return WorldDz; }

Referenced by BesEmcEndGeometry::ReadParameters().

◆ GetWorldRmax1()

G4double BesEmcParameter::GetWorldRmax1 ( )
inline

Definition at line 50 of file BesEmcParameter.hh.

50{ return WorldRmax1; }

Referenced by BesEmcEndGeometry::ReadParameters().

◆ GetWorldRmax2()

G4double BesEmcParameter::GetWorldRmax2 ( )
inline

Definition at line 52 of file BesEmcParameter.hh.

52{ return WorldRmax2; }

Referenced by BesEmcEndGeometry::ReadParameters().

◆ GetWorldRmin1()

G4double BesEmcParameter::GetWorldRmin1 ( )
inline

Definition at line 49 of file BesEmcParameter.hh.

49{ return WorldRmin1; }

Referenced by BesEmcEndGeometry::ReadParameters().

◆ GetWorldRmin2()

G4double BesEmcParameter::GetWorldRmin2 ( )
inline

Definition at line 51 of file BesEmcParameter.hh.

51{ return WorldRmin2; }

Referenced by BesEmcEndGeometry::ReadParameters().

◆ GetWorldZPosition()

G4double BesEmcParameter::GetWorldZPosition ( )
inline

Definition at line 54 of file BesEmcParameter.hh.

54{ return WorldZPosition; }

Referenced by BesEmcEndGeometry::ReadParameters().

◆ Kill()

void BesEmcParameter::Kill ( )
static

Definition at line 47 of file BesEmcParameter.cc.

48{
49 if(Exist()) {
50 delete fpInstance;
51 fpInstance=0;
52 }
53}

Referenced by BesEmcConstruction::~BesEmcConstruction().

◆ ReadData()

void BesEmcParameter::ReadData ( )

Definition at line 55 of file BesEmcParameter.cc.

56{
57 G4String ParaPath = getenv("EMCSIMROOT");
58 if(!ParaPath){
59 G4Exception("BOOST environment not set!");
60 }
61
62 G4String ParaPath1 = ParaPath;
63
64 ParaPath += "/dat/BesEmc.txt";
65 ifstream fin;
66 fin.open(ParaPath);
67 assert(fin);
68
69 const int maxCharOfOneLine=255;
70 char temp[maxCharOfOneLine],*p;
71 int lineNo=0,inputNo=0;
72
73 while(fin.peek()!=EOF)
74 {
75 fin.getline(temp,maxCharOfOneLine);
76 p=temp;
77 lineNo++;
78 while(*p!='\0')
79 {
80 if(*p=='#')
81 {
82 *p='\0'; //delete the comments.
83 break;
84 }
85 p++;
86 }
87 p=temp; //reset the pointer to the beginning of the string.
88 while(*p==' '||*p=='\t')p++;
89 if(*p=='\0')continue;
90 inputNo++;
91 switch(inputNo)
92 {
93 case 1:
94 istrstream(p)>>array_size>>m_tau>>m_highRange>>m_midRange>>m_lowRange>>m_sampleTime>>m_bitNb>>m_photonsPerMeV>>m_nonuniformity>>m_peakTime>>m_timeOffset;
95 break;
96 case 2:
97 istrstream(p)>>WorldRmin1>>WorldRmax1>>WorldRmin2>>WorldRmax2>>WorldDz>>WorldZPosition>>CrystalLength>>CrystalLength1;
98 break;
99 case 3:
100 istrstream(p)>>cryNumInOneLayer[0]>>cryNumInOneLayer[1]>>cryNumInOneLayer[2]>>cryNumInOneLayer[3]>>cryNumInOneLayer[4]>>cryNumInOneLayer[5];
101 break;
102 case 4:
103 istrstream(p)>>pentaInOneSector[0]>>pentaInOneSector[1]>>pentaInOneSector[2]>>pentaInOneSector[3]>>pentaInOneSector[4];
104 break;
105 case 5:
106 istrstream(p)>>fTyvekThickness>>fAlThickness>>fMylarThickness;
107 break;
108 case 6:
109 istrstream(p)>>BSCRmin>>BSCDz>>BSCRmin1>>BSCRmax1>>BSCRmin2>>BSCRmax2>>BSCDz1;
110 break;
111 case 7:
112 istrstream(p)>>BSCAngleRotat>>BSCNbPhi>>BSCNbTheta;
113 break;
114 case 8:
115 istrstream(p)>>BSCYFront0>>BSCYFront>>BSCYFront1>>BSCPosition0>>BSCPosition1;
116 break;
117 case 9:
118 istrstream(p)>>TaperRingDz>>TaperRingThickness1>>TaperRingThickness2>>TaperRingThickness3
119 >>TaperRingTheta>>TaperRingInnerLength>>TaperRingOuterLength;
120 case 10:
121 istrstream(p)>>rearBoxLength>>rearBoxDz>>HangingPlateDz>>OCGirderAngle>>rearCasingThickness;
122 case 11:
123 istrstream(p)>>orgGlassLengthX>>orgGlassLengthY>>orgGlassLengthZ
124 >>PDLengthX>>PDLengthY>>PDLengthZ>>AlPlateDz>>PABoxDz>>PABoxThickness;
125 case 12:
126 istrstream(p)>>cableDr>>waterPipeDr>>waterPipeThickness
127 >>SPBarThickness>>SPBarThickness1>>SPBarwidth>>EndRingDz>>EndRingDr>>EndRingRmin;
128 default:
129 ;
130 }
131 }
132 fin.close();
133
134 ifstream fin1;
135 ParaPath1 += "/dat/EmcLightOutput.dat";
136 fin1.open(ParaPath1);
137 assert(fin1);
138 for(G4int i=0;i<6240;i++) {
139 fin1>>lightOutput[i];
140 }
141 fin1.close();
142}
std::ifstream ifstream
Definition: bpkt_streams.h:44

Referenced by GetInstance().


The documentation for this class was generated from the following files: