Changeset 459 for trunk/MagicSoft


Ignore:
Timestamp:
12/30/00 16:28:04 (24 years ago)
Author:
harald
Message:
For the development of the StarResponse program, some smaller changes
in the class MTrigger are neccessary. Be carefull, perhaps a change
in the destructor of MTrigger can effect other programs. Be aware of
that!!
Location:
trunk/MagicSoft/Simulation/Detector/include-MTrigger
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/include-MTrigger/MTrigger.cxx

    r410 r459  
    496496  //   destructor
    497497  //
    498   int i;
    499   // delete histPmt ;
    500   for(i=0;i<TRIGGER_PIXELS;i++){
    501     delete [] a_sig[i];
    502     delete [] d_sig[i];
    503   }
     498  // cout << "destructor of MTrigger" << endl ;
     499 
     500  delete histPmt ;
     501
     502  for(Int_t i=0;i<TRIGGER_PIXELS;i++){
     503    // delete [] a_sig[i];
     504    // delete [] d_sig[i];
     505  }
     506 
    504507  delete GenElec;
     508
    505509}
    506510
     
    788792  }
    789793       
     794}
     795
     796void MTrigger::GetResponse(Float_t *resp) {
     797  // ============================================================
     798  //
     799  //    puts the standard response function into the array resp
     800
     801  for ( Int_t i=0; i< RESPONSE_SLICES; i++ ) {
     802
     803    resp[i] = sing_resp[i] ;
     804  }
     805 
    790806}
    791807
  • trunk/MagicSoft/Simulation/Detector/include-MTrigger/MTrigger.hxx

    r411 r459  
    199199  }
    200200
     201  void GetResponse( Float_t * resp) ;
     202
    201203  void Diskriminate() ;
    202204
     
    210212
    211213  Int_t GetFirstLevelPixel( Int_t il ) ;
     214
     215  Float_t GetAmplitude() {
     216    return  ampl_resp ; 
     217  }
     218
     219  Float_t GetFwhm() {
     220    return fwhm_resp ;
     221  }
     222
    212223} ;
    213224
Note: See TracChangeset for help on using the changeset viewer.