Ignore:
Timestamp:
09/16/04 17:20:13 (20 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r2989 r5082  
    365365
    366366MTrigger::MTrigger(Int_t pix, MGeomCam *camgeom,
    367                    float gate, float overt, float ampl, float fwhm) {
     367                   float gate, float overt, float ampl, float fwhm, int ct_id) {
    368368  // ============================================================
    369369  //
     
    487487  //
    488488
    489   histPmt = new TH1F ("histPmt","Noise of PMT", 40, 0., 40.) ;
     489  char histname[32];
     490  sprintf(histname, "histPmt_%d", ct_id);
     491  histPmt = new TH1F (histname,"Noise of PMT", 40, 0., 40.) ;
    490492 
    491493  Stat_t ValRazmik[41] = { 0., 2.14, 2.06, 2.05, 2.05, 2.06, 2.07, 2.08,  2.15,
     
    925927  else if ( iPix >= pixnum ) {
    926928    //
    927     //  We have not to fill information in the trigger part,
    928     //  but we must create the height of the puls going into
     929    //  We do not have to fill information in the trigger part,
     930    //  but we must create the height of the pulse going into
    929931    //  the FADC simulation
    930932    //
    931933    PmtAmp =  (histPmt->GetRandom()/histMean) ;
    932    
    933     //
    934     //  But we fill the information in the counters of phe's
    935     //
    936    
    937     if ( fall == CASE_SHOW )
    938       nphotshow[iPix]++ ;
    939     else if ( fall == CASE_NSB )
    940       nphotshow[iPix]++ ;
    941     else if ( fall == CASE_STAR )
    942       nphotstar[iPix]++ ;
    943    
    944      
     934
     935    // AM April 2004: removed updating of counters nphotshow, nphotnsb,
     936    // nphotstar for outer pixels... these arrays (see constructors) are
     937    // initialized only with as many elements as trigger pixels!! This
     938    // made the camera crash at random in some ocassions.
    945939  }
    946940  else { 
     
    995989      nphotshow[iPix]++ ;
    996990    else if ( fall == CASE_NSB )
    997       nphotshow[iPix]++ ;
     991      nphotnsb[iPix]++ ;
    998992    else if ( fall == CASE_STAR )
    999993      nphotstar[iPix]++ ;
Note: See TracChangeset for help on using the changeset viewer.