Changeset 5082 for trunk/MagicSoft/Simulation/Detector/include-MTrigger
- Timestamp:
- 09/16/04 17:20:13 (20 years ago)
- Location:
- trunk/MagicSoft/Simulation/Detector/include-MTrigger
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/include-MTrigger/MTrigger.cxx
r2989 r5082 365 365 366 366 MTrigger::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) { 368 368 // ============================================================ 369 369 // … … 487 487 // 488 488 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.) ; 490 492 491 493 Stat_t ValRazmik[41] = { 0., 2.14, 2.06, 2.05, 2.05, 2.06, 2.07, 2.08, 2.15, … … 925 927 else if ( iPix >= pixnum ) { 926 928 // 927 // We have notto fill information in the trigger part,928 // but we must create the height of the puls going into929 // We do not have to fill information in the trigger part, 930 // but we must create the height of the pulse going into 929 931 // the FADC simulation 930 932 // 931 933 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. 945 939 } 946 940 else { … … 995 989 nphotshow[iPix]++ ; 996 990 else if ( fall == CASE_NSB ) 997 nphot show[iPix]++ ;991 nphotnsb[iPix]++ ; 998 992 else if ( fall == CASE_STAR ) 999 993 nphotstar[iPix]++ ; -
trunk/MagicSoft/Simulation/Detector/include-MTrigger/MTrigger.hxx
r2444 r5082 115 115 116 116 TH1F *histPmt ; 117 Float_t histMean ; // Mean value of the distribution of Ra smik (stored in histPmt)117 Float_t histMean ; // Mean value of the distribution of Razmik (stored in histPmt) 118 118 TRandom *GenElec ; // RandomGenerator for the Electronic Noise 119 119 … … 174 174 175 175 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) ; 177 177 178 178 MTrigger(int pix,
Note:
See TracChangeset
for help on using the changeset viewer.