Changeset 2975


Ignore:
Timestamp:
01/30/04 10:32:37 (21 years ago)
Author:
blanch
Message:
[A. Moralejo]

Naem variables change and new number VERISION 1002.0
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/StarResponse/MStarLight.cxx

    r2430 r2975  
    1616  fBinsFadc    = FADCBINS   ;
    1717  fFadcShape   = 0. ;
    18   fAmplFadc    = 0. ;
     18  fIntegFadc    = 0. ;
    1919  fFwhmFadc    = 0. ;
    2020
     
    4646  fBinsFadc    = FADCBINS   ;
    4747  fFadcShape   = 0. ;
    48   fAmplFadc    = 0. ;
     48  fIntegFadc    = 0. ;
    4949  fFwhmFadc    = 0. ;
    5050
     
    9696
    9797
    98 Float_t MStarLight::GetAmplFadc ()
    99 {
    100   return fAmplFadc  ;
    101 }
    102 
    103 void MStarLight::SetAmplFadc (Float_t in )
    104 {
    105   fAmplFadc = in ;
     98Float_t MStarLight::GetIntegFadc ()
     99{
     100  return fIntegFadc  ;
     101}
     102
     103void MStarLight::SetIntegFadc (Float_t in )
     104{
     105  fIntegFadc = in ;
    106106}
    107107
     
    125125
    126126void 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++)
    129129    fFadcResp[i] = in[i] ;
    130  
    131130}
    132131
     
    155154  //   fill the FADC content
    156155  //
    157   //
    158   //
    159156
    160157  startbin = (Int_t) ( time / 0.6666666666 );
     
    167164  //
    168165
    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 ) {
    170177    ichanfadc = (Int_t) ((startbin+i)/5) ;
    171178   
     
    331338  fwrite ( &fBinsFadc  , sizeof(Float_t), 1, datei ) ;
    332339  fwrite ( &fFadcShape , sizeof(Float_t), 1, datei ) ;
    333   fwrite ( &fAmplFadc , sizeof(Float_t), 1, datei ) ;
     340  fwrite ( &fIntegFadc , sizeof(Float_t), 1, datei ) ;
    334341  fwrite ( &fFwhmFadc  , sizeof(Float_t), 1, datei ) ;
    335342
     
    390397    cout<<" Error: You are trying to read database VERSION "<<
    391398      read_version<<endl;
    392     cout<<" You must generate a databse for the current VERSION "<<
     399    cout<<" You must generate a database for the current VERSION "<<
    393400      current_version<<endl;
    394401    exit (230);
     
    406413  fread ( &fBinsFadc  , sizeof(Float_t), 1, datei ) ;
    407414  fread ( &fFadcShape , sizeof(Float_t), 1, datei ) ;
    408   fread ( &fAmplFadc , sizeof(Float_t), 1, datei ) ;
     415  fread ( &fIntegFadc , sizeof(Float_t), 1, datei ) ;
    409416  fread ( &fFwhmFadc  , sizeof(Float_t), 1, datei ) ;
    410417
Note: See TracChangeset for help on using the changeset viewer.