Changeset 6365
- Timestamp:
- 02/10/05 19:28:10 (20 years ago)
- Location:
- trunk/MagicSoft/Simulation/Detector/Camera
- Files:
-
- 3 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 // -
trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx
r5600 r6365 19 19 //= 20 20 //= $RCSfile: creadparam.cxx,v $ 21 //= $Revision: 1.3 5$22 //= $Author: MAGIC$23 //= $Date: 200 4-12-15 01:56:39$21 //= $Revision: 1.36 $ 22 //= $Author: moralejo $ 23 //= $Date: 2005-02-10 19:28:10 $ 24 24 //= 25 25 //=////////////////////////////////////////////////////////////////////// … … 62 62 static int nSkip=0; 63 63 static int Data_From_STDIN = FALSE; 64 static int Write_All_ Images = FALSE;64 static int Write_All_Event_Headers = FALSE; 65 65 static int Write_McEvt = TRUE; 66 66 static int Write_McTrig = FALSE; … … 424 424 break; 425 425 426 case write_all_event s: //@< to write ALL the images426 case write_all_event_headers: //@< to write ALL the event headers 427 427 428 428 // change boolean value 429 Write_All_ Images = TRUE;429 Write_All_Event_Headers = TRUE; 430 430 431 431 break; … … 1092 1092 1093 1093 //!----------------------------------------------------------- 1094 // @name write_all_events 1095 // 1096 // @desc write all images to .phe, even those without trigger 1094 // @name write_all_event_headers 1095 // 1096 // @desc write all event headers to output, even those without 1097 // trigger 1097 1098 // 1098 1099 // @return TRUE: we'll write everything; FALSE: we won't … … 1104 1105 //!@{ 1105 1106 int 1106 get_write_all_event s(void)1107 { 1108 return ( Write_All_ Images );1107 get_write_all_event_headers(void) 1108 { 1109 return ( Write_All_Event_Headers ); 1109 1110 } 1110 1111 //!@} … … 1444 1445 // 1445 1446 // $Log: not supported by cvs2svn $ 1447 // Revision 1.35 2004/12/15 01:56:39 MAGIC 1448 // 1449 // Added input card option pmt_jitter_ns to simulate the time jitter of 1450 // PMTs. The input parameter is the sigma of a gaussian, which by 1451 // default is sigma=0.25 ns. This jitter is applied to each phe- 1452 // independently. We have not applied this to the NSB noise, since the 1453 // arrival time of NSB photons is random and nothing would change. 1454 // 1446 1455 // Revision 1.34 2004/11/17 11:36:07 moralejo 1447 1456 // *** empty log message *** -
trunk/MagicSoft/Simulation/Detector/Camera/creadparam.h
r5600 r6365 19 19 //= 20 20 //= $RCSfile: creadparam.h,v $ 21 //= $Revision: 1.3 1$22 //= $Author: MAGIC$23 //= $Date: 200 4-12-15 01:56:39$21 //= $Revision: 1.32 $ 22 //= $Author: moralejo $ 23 //= $Date: 2005-02-10 19:28:10 $ 24 24 //= 25 25 //=////////////////////////////////////////////////////////////////////// … … 91 91 T(data_from_stdin), /* to read data from STDIN */ \ 92 92 T(skip), /* skip pathological showers */ \ 93 T(write_all_event s),/* write to file .phe ALL images (even w.o. trigger)*/ \93 T(write_all_event_headers),/* write to file .phe ALL event headers (even w.o. trigger)*/ \ 94 94 T(nowrite_McEvt), /* nowrite to file .root McEvt infos */ \ 95 95 T(write_McTrig), /* write to file .root McTrig infos */ \ … … 171 171 int get_nskip_showers( void ); 172 172 int get_data_from_stdin(void); 173 int get_write_all_event s(void);173 int get_write_all_event_headers(void); 174 174 int get_write_McEvt(void); 175 175 int get_write_McTrig(void); … … 216 216 /* 217 217 * $Log: not supported by cvs2svn $ 218 * Revision 1.31 2004/12/15 01:56:39 MAGIC 219 * 220 * Added input card option pmt_jitter_ns to simulate the time jitter of 221 * PMTs. The input parameter is the sigma of a gaussian, which by 222 * default is sigma=0.25 ns. This jitter is applied to each phe- 223 * independently. We have not applied this to the NSB noise, since the 224 * arrival time of NSB photons is random and nothing would change. 225 * 218 226 * Revision 1.30 2004/11/17 11:36:07 moralejo 219 227 * *** empty log message ***
Note:
See TracChangeset
for help on using the changeset viewer.