Changeset 5326


Ignore:
Timestamp:
10/28/04 18:43:13 (20 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5248 r5326  
    1919
    2020
    21   fBinsTrig = (Int_t)(TRIG_SLICES_PER_NSEC*TIMERANGE);   // Default value 4*10000=40000
     21  fBinsTrig = (Int_t)(TRIG_SLICES_PER_NSEC*fTimeRange);   // Default value 4*10000=40000
    2222  fTrigShape   = 0;
    2323  fAmplTrig    = 0.;
    2424  fFwhmTrig    = 0.;
    2525
    26   fBinsFadc    = (Int_t)(fFadcSlicesPerNanosec*TIMERANGE);  // Default value 0.3*10000=3000
     26  fBinsFadc    = (Int_t)(fFadcSlicesPerNanosec*fTimeRange);  // Default value 0.3*10000=3000
    2727  fFadcShape   = 0;
    2828  fIntegFadc   = 0.;
     
    5050void MStarLight::Reset() {
    5151
    52  
    53   fBrightness  = 0. ;
    54   fTimeRange   = TIMERANGE;
     52  fBrightness  = 0. ;
    5553
    5654  fTrigShape   = 0;
     
    109107{
    110108  fFadcSlicesPerNanosec = in;
    111   fBinsFadc    = (Int_t)(fFadcSlicesPerNanosec*TIMERANGE);
     109  fBinsFadc    = (Int_t)(fFadcSlicesPerNanosec*fTimeRange);
    112110
    113111  if (fFadc)
     
    157155  //  fill the trigger response
    158156 
    159   Int_t startbin = (Int_t) (time * ((Float_t)fBinsTrig/TIMERANGE));
     157  Int_t startbin = (Int_t) (time * ((Float_t)fBinsTrig/fTimeRange));
    160158
    161159  Int_t icount = 0;
     
    177175  //
    178176
    179   startbin = (Int_t) ( time * ((Float_t)(fBinsFadc*SUBBINS)/TIMERANGE));
     177  startbin = (Int_t) ( time * ((Float_t)(fBinsFadc*SUBBINS)/fTimeRange));
    180178
    181179  Int_t ichanfadc = 0 ;
     
    252250  //
    253251
    254   TH1F  trigresp ("trigresp", "Trigger Response", fBinsTrig, 0., TIMERANGE);
     252  TH1F  trigresp ("trigresp", "Trigger Response", fBinsTrig, 0., fTimeRange);
    255253
    256254  for (Int_t i=0; i< fBinsTrig ; i++ )
     
    263261 
    264262  TH1F  trigbase ("trigbase", "Response after Baseline shift",
    265                   fBinsTrig, 0., TIMERANGE) ;
     263                  fBinsTrig, 0., fTimeRange) ;
    266264
    267265  for (Int_t i = 0; i < fBinsTrig ; i++)
     
    279277  //
    280278
    281   TH1F  fadcresp ("fadcresp", "Fadc Response", fBinsFadc, 0., TIMERANGE);
     279  TH1F  fadcresp ("fadcresp", "Fadc Response", fBinsFadc, 0., fTimeRange);
    282280
    283281  baseline = 0.;
     
    291289 
    292290  TH1F  fadcbase ("fadcbase", "Fadc after Baseline shift",
    293                   fBinsFadc, 0., TIMERANGE) ;
     291                  fBinsFadc, 0., fTimeRange) ;
    294292
    295293  for (Int_t i=0; i< fBinsFadc ; i++ )
Note: See TracChangeset for help on using the changeset viewer.