Ignore:
Timestamp:
09/16/04 17:20:13 (20 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Simulation/Detector/include-MTrigger
Files:
2 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]++ ;
  • trunk/MagicSoft/Simulation/Detector/include-MTrigger/MTrigger.hxx

    r2444 r5082  
    115115
    116116  TH1F     *histPmt ;
    117   Float_t  histMean ;    // Mean value of the distribution of Rasmik (stored in histPmt)
     117  Float_t  histMean ;    // Mean value of the distribution of Razmik (stored in histPmt)
    118118  TRandom  *GenElec  ;   // RandomGenerator for the Electronic Noise
    119119
     
    174174
    175175  MTrigger(int pix, MGeomCam *camgeom,
    176            float gate, float overt, float ampl, float fwhm) ;
     176           float gate, float overt, float ampl, float fwhm, int ct_id=0) ;
    177177 
    178178  MTrigger(int pix,
Note: See TracChangeset for help on using the changeset viewer.