Changeset 2975
- Timestamp:
- 01/30/04 10:32:37 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/StarResponse/MStarLight.cxx
r2430 r2975 16 16 fBinsFadc = FADCBINS ; 17 17 fFadcShape = 0. ; 18 f AmplFadc = 0. ;18 fIntegFadc = 0. ; 19 19 fFwhmFadc = 0. ; 20 20 … … 46 46 fBinsFadc = FADCBINS ; 47 47 fFadcShape = 0. ; 48 f AmplFadc = 0. ;48 fIntegFadc = 0. ; 49 49 fFwhmFadc = 0. ; 50 50 … … 96 96 97 97 98 Float_t MStarLight::Get AmplFadc ()99 { 100 return f AmplFadc ;101 } 102 103 void MStarLight::Set AmplFadc (Float_t in )104 { 105 f AmplFadc = in ;98 Float_t MStarLight::GetIntegFadc () 99 { 100 return fIntegFadc ; 101 } 102 103 void MStarLight::SetIntegFadc (Float_t in ) 104 { 105 fIntegFadc = in ; 106 106 } 107 107 … … 125 125 126 126 void MStarLight::SetFadcResponse( Float_t *in ) { 127 128 for (Int_t i= 0; i<45; i++) 127 128 for (Int_t i= 0; i<45; i++) 129 129 fFadcResp[i] = in[i] ; 130 131 130 } 132 131 … … 155 154 // fill the FADC content 156 155 // 157 //158 //159 156 160 157 startbin = (Int_t) ( time / 0.6666666666 ); … … 167 164 // 168 165 169 for ( Int_t i = 0 ; i< 45; i++ ) { 166 // 167 // Changed, Jan 2004, A. Moralejo: now the FADC does not integrate all 168 // the signal within each FADC slice, but measures just the signal height 169 // at one point, like the real FADC does. By default, each FADC slice 170 // contains 5 bins of the response histogram(fFadcResp[45]). Warning: 171 // do not change this unless you do the corresponding modifications also 172 // in MFadc.cxx, or the signal and the noise photoelectrons will be treated 173 // differently!! 174 // 175 176 for ( Int_t i = 0 ; i < 45; i += 5 ) { 170 177 ichanfadc = (Int_t) ((startbin+i)/5) ; 171 178 … … 331 338 fwrite ( &fBinsFadc , sizeof(Float_t), 1, datei ) ; 332 339 fwrite ( &fFadcShape , sizeof(Float_t), 1, datei ) ; 333 fwrite ( &f AmplFadc, sizeof(Float_t), 1, datei ) ;340 fwrite ( &fIntegFadc , sizeof(Float_t), 1, datei ) ; 334 341 fwrite ( &fFwhmFadc , sizeof(Float_t), 1, datei ) ; 335 342 … … 390 397 cout<<" Error: You are trying to read database VERSION "<< 391 398 read_version<<endl; 392 cout<<" You must generate a datab se for the current VERSION "<<399 cout<<" You must generate a database for the current VERSION "<< 393 400 current_version<<endl; 394 401 exit (230); … … 406 413 fread ( &fBinsFadc , sizeof(Float_t), 1, datei ) ; 407 414 fread ( &fFadcShape , sizeof(Float_t), 1, datei ) ; 408 fread ( &f AmplFadc, sizeof(Float_t), 1, datei ) ;415 fread ( &fIntegFadc , sizeof(Float_t), 1, datei ) ; 409 416 fread ( &fFwhmFadc , sizeof(Float_t), 1, datei ) ; 410 417
Note:
See TracChangeset
for help on using the changeset viewer.