Changeset 6365 for trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
- Timestamp:
- 02/10/05 19:28:10 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
r6351 r6365 138 138 static int Data_From_STDIN = FALSE; 139 139 140 //@: flag: TRUE: write all images to output; FALSE: only triggered showers 141 static int Write_All_Images = FALSE; 140 //@: flag: TRUE: write the event headers of all events to output; 141 //@: FALSE: only triggered showers 142 static int Write_All_Event_Headers = FALSE; 142 143 143 144 static int Write_McEvt = TRUE; … … 638 639 // write all images, even those without trigger? 639 640 640 Write_All_ Images = get_write_all_events();641 Write_All_Event_Headers = get_write_all_event_headers(); 641 642 642 643 Write_McEvt = get_write_McEvt() ; … … 806 807 807 808 log(SIGNATURE, 808 "%s:\n\t%2 0s: %s\n\t%20s: %s\n\t%20s: %s\n\t%20s: %s\n\t\t %s %3.2f,\n\t\t %s %3.2f (%s), %3.2f (%s) \n\t\t + %3.2f (%s)\n\n",809 "%s:\n\t%23s: %s\n\t%23s: %s\n\t%23s: %s\n\t%23s: %s\n\t\t %s %3.2f,\n\t\t %s %3.2f (%s), %3.2f (%s) \n\t\t + %3.2f (%s)\n\n", 809 810 "Flags", 810 811 "Data_From_STDIN", ONoff(Data_From_STDIN), 811 "Write_All_Event s", ONoff(Write_All_Images),812 "Write_All_Event_Headers", ONoff(Write_All_Event_Headers), 812 813 "Rotate Starfield", ONoff(Starfield_rotate), 813 814 "Electronic Noise", ONoff(addElecNoise), … … 2206 2207 2207 2208 Lev0=(Short_t) Trigger_CT[0]->ZeroLevel(); 2208 if (Lev0>0 || Write_All_ Images || btrigger)2209 if (Lev0>0 || Write_All_Event_Headers || btrigger) 2209 2210 { 2210 2211 … … 2246 2247 Lev0=1; 2247 2248 Int_t NumImages = Lev1; 2248 if(Lev1==0 && (Write_All_ Images || btrigger))2249 if(Lev1==0 && (Write_All_Event_Headers || btrigger)) 2249 2250 { 2250 2251 btrigger= 1; … … 2281 2282 SetTriggerPattern((UInt_t)MTriggerPattern::kTriggerLvl1); 2282 2283 // fill pixel information 2283 if (Lev1 || Write_All_Images){2284 if (Lev1 /*|| Write_All_Event_Headers AMTEST*/){ 2284 2285 if (addElecNoise) Fadc_CT[0]->DigitalNoise(); 2285 2286 for(UInt_t i=0; … … 2473 2474 // 2474 2475 2475 if ( Lev0MT[ict] > 0 || Write_All_Images)2476 if ( Lev0MT[ict] > 0 /*|| Write_All_Event_Headers*/) 2476 2477 Lev1MT[ict]= Trigger_CT[ict]->FirstLevel(); 2477 2478 … … 2490 2491 Lev0MT[ict]=1; 2491 2492 2492 if (Lev1MT[ict]==0 && Write_All_ Images)2493 if (Lev1MT[ict]==0 && Write_All_Event_Headers) 2493 2494 { 2494 2495 NumImages=1; … … 2540 2541 // fill pixel information 2541 2542 2542 if (Lev1MT[ict] || Write_All_Images){2543 if (Lev1MT[ict] /* || Write_All_Event_Headers */){ 2543 2544 if (addElecNoise) Fadc_CT[ict]->DigitalNoise(); 2544 2545 for(UInt_t i=0; … … 2823 2824 ftime, 2824 2825 icontrigger, 2825 !Write_All_ Images,2826 !Write_All_Event_Headers, 2826 2827 Write_McEvt, 2827 2828 Write_McTrig, … … 2860 2861 ftime, 2861 2862 icontrigger, 2862 !Write_All_ Images,2863 !Write_All_Event_Headers, 2863 2864 Write_McEvt, 2864 2865 Write_McTrig, … … 4982 4983 // 4983 4984 // $Log: not supported by cvs2svn $ 4985 // Revision 1.86 2005/02/10 14:49:21 moralejo 4986 // 4987 // Added setting of trigger flags in MRawEvtHeader::fTriggerPattern: 4988 // Lvl1 flag for normal shower runs, Calibration flag for calibration 4989 // runs and Pedestal flag for "calibration runs" in which the number 4990 // of photons per pixel is set to 0. 4991 // 4984 4992 // Revision 1.85 2005/02/10 12:00:32 moralejo 4985 4993 //
Note:
See TracChangeset
for help on using the changeset viewer.