Changeset 402 for trunk/MagicSoft/Simulation/Detector/Camera
- Timestamp:
- 06/13/00 14:25:24 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
r388 r402 21 21 // 22 22 // $RCSfile: camera.cxx,v $ 23 // $Revision: 1. 8$23 // $Revision: 1.9 $ 24 24 // $Author: blanch $ 25 // $Date: 2000-0 5-11 13:57:27$25 // $Date: 2000-06-13 13:25:24 $ 26 26 // 27 27 //////////////////////////////////////////////////////////////////////// … … 601 601 // Definition and initialization of array to save trigger statistics 602 602 603 int ntriggerloop[(int) (Trigger_loop_uthres+1)][Trigger_loop_umult+1][Trigger_loop_utop+1]; 604 605 for (ithrescount=Trigger_loop_lthres;ithrescount<=Trigger_loop_uthres;ithrescount++){ 606 for (imulticount=Trigger_loop_lmult;imulticount<=Trigger_loop_umult;imulticount++){ 607 for(itopocount=Trigger_loop_ltop;itopocount<=Trigger_loop_utop;itopocount++){ 603 int ***ntriggerloop; 604 605 ntriggerloop= new int ** [(int) (Trigger_loop_uthres+1-Trigger_loop_lthres)]; 606 for (ithrescount=0;ithrescount<=Trigger_loop_uthres-Trigger_loop_lthres;ithrescount++){ 607 ntriggerloop[ithrescount]= new int * [Trigger_loop_umult-Trigger_loop_lmult+1]; 608 for (imulticount=0;imulticount<=Trigger_loop_umult-Trigger_loop_lmult;imulticount++){ 609 ntriggerloop[ithrescount][imulticount]= new int [Trigger_loop_utop-Trigger_loop_ltop+1]; 610 for(itopocount=0;itopocount<=Trigger_loop_utop-Trigger_loop_ltop;itopocount++){ 608 611 ntriggerloop[ithrescount][imulticount][itopocount]=0; 609 612 } … … 1102 1105 McTrig->SetFirstLevel (Lev1=Trigger.FirstLevel()); 1103 1106 if(Lev1>0) { 1104 ntriggerloop[ithrescount ][imulticount][itopocount]++;1107 ntriggerloop[ithrescount-Trigger_loop_lthres][imulticount-Trigger_loop_lmult][itopocount-Trigger_loop_ltop]++; 1105 1108 McTrig->SetTopology(itopocount); 1106 1109 McTrig->SetMultiplicity(imulticount); … … 1366 1369 for(itopocount=Trigger_loop_ltop;itopocount<=Trigger_loop_utop;itopocount++){ 1367 1370 log( SIGNATURE, "Thres %d, Multi %d, Topo %d: %5.1f%% (%d out of %d)\n", 1368 ithrescount,imulticount,itopocount,((float)ntriggerloop[ithrescount ][imulticount][itopocount] / ((float)ntshow) * 100.0), ntriggerloop[ithrescount][imulticount][itopocount], ntshow);1371 ithrescount,imulticount,itopocount,((float)ntriggerloop[ithrescount-Trigger_loop_lthres][imulticount-Trigger_loop_lmult][itopocount-Trigger_loop_ltop] / ((float)ntshow) * 100.0), ntriggerloop[ithrescount-Trigger_loop_lthres][imulticount-Trigger_loop_lmult][itopocount-Trigger_loop_ltop], ntshow); 1369 1372 } 1370 1373 } … … 2866 2869 // 2867 2870 // $Log: not supported by cvs2svn $ 2871 // Revision 1.8 2000/05/11 13:57:27 blanch 2872 // The option to loop over several trigger configurations has been included. 2873 // Some non-sense with triggertime range has been solved. 2874 // Montecarlo information and ADC counts are saved in a root file. 2875 // There was a problem with the maximum number of phe that the program could analyse. Now there is not limit. 2876 // 2868 2877 // Revision 1.7 2000/03/24 18:10:46 blanch 2869 2878 // A first FADC simulation and a trigger simulation are already implemented.
Note:
See TracChangeset
for help on using the changeset viewer.