Changeset 6567 for trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
- Timestamp:
- 02/17/05 15:37:12 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
r6560 r6567 1206 1206 1207 1207 RunHeader->SetMagicNumber(MRawRunHeader::kMagicNumber); 1208 1209 // 1210 // We set as format version 5, the current real data version as of February 2005. 1211 // These data have the peculiarity that the trigger pattern bits 1212 // (MRawEventHeader.fTrigPattern[0]) will be inverted (0 <-> 1) with respect 1213 // to the definitions in Mars/mtrigger/MTriggerPattern. We will account for this 1214 // below when setting the trigger pattern. 1215 // 1208 1216 RunHeader->SetFormatVersion(5); 1217 1218 1209 1219 RunHeader->SetSoftVersion((UShort_t) (VERSION*10)); 1210 1220 RunHeader->SetRunType(256); … … 2085 2095 } 2086 2096 2087 }// end if(simulateNSB && inumphe _CT[0]>= nphe2NSB) ...2097 }// end if(simulateNSB && inumphe >= nphe2NSB) ... 2088 2098 2089 2099 … … 2292 2302 EvtHeader[iconcount]-> 2293 2303 FillHeader( (UInt_t) (ntshow + nshow),0); 2304 2305 // Set trigger pattern. WARNING: the trigger pattern of real 2306 // data is inverted for the MRawRunHeader.fFormatVersion=5 2307 // which is the one we now set in the camera outputs. Hence 2308 /// we use the binary inversion operator "~" below: 2309 2294 2310 EvtHeader[iconcount]-> 2295 SetTriggerPattern((UInt_t)MTriggerPattern::kTriggerLvl1); 2311 SetTriggerPattern((UInt_t)~MTriggerPattern::kTriggerLvl1); 2312 2296 2313 // fill pixel information 2297 if (Lev1 /*|| Write_All_Event_Headers AMTEST*/){2314 if (Lev1){ 2298 2315 if (addElecNoise) Fadc_CT[0]->DigitalNoise(); 2299 2316 for(UInt_t i=0; … … 2564 2581 EvtHeader[ict] 2565 2582 ->FillHeader ( (UInt_t) (ntshow + nshow) , 0 ) ; 2566 EvtHeader[ict]->SetTriggerPattern((UInt_t)MTriggerPattern::kTriggerLvl1); 2583 2584 2585 // Set trigger pattern. WARNING: the trigger pattern of real 2586 // data is inverted for the MRawRunHeader.fFormatVersion=5 2587 // which is the one we now set in the camera outputs. Hence 2588 /// we use the binary inversion operator "~" below: 2589 EvtHeader[ict]->SetTriggerPattern((UInt_t)~MTriggerPattern::kTriggerLvl1); 2567 2590 2568 2591 // Fill pixel information … … 4753 4776 if (phot_per_pix > 1.e-3) 4754 4777 { 4755 EvtHeader[ict]->SetTriggerPattern((UInt_t)(MTriggerPattern::kCalibration | 4756 MTriggerPattern::kTriggerLvl1)); 4778 // Set trigger pattern. WARNING: the trigger pattern of real 4779 // data is inverted for the MRawRunHeader.fFormatVersion=5 4780 // which is the one we now set in the camera outputs. Hence 4781 // we use the binary inversion operators "~" below. The Calibration 4782 // pattern, on the contrary, is not inverted. 4783 EvtHeader[ict]->SetTriggerPattern((UInt_t)(~(MTriggerPattern::kCalibration | 4784 MTriggerPattern::kTriggerLvl1))); 4757 4785 // 4758 4786 // FIXME! For now color and intensity of the pulser is fixed! … … 4760 4788 } 4761 4789 else // 0 cal. photons per pixel ==> pedestal run 4762 EvtHeader[ict]->SetTriggerPattern((UInt_t) MTriggerPattern::kPedestal);4790 EvtHeader[ict]->SetTriggerPattern((UInt_t)~MTriggerPattern::kPedestal); 4763 4791 4764 4792 … … 5031 5059 // 5032 5060 // $Log: not supported by cvs2svn $ 5061 // Revision 1.89 2005/02/17 09:15:28 moralejo 5062 // 5063 // Set as default option that of writing all event headers to output file, 5064 // not only those of the triggered events. To disable it, set the input card 5065 // flag "no_write_all_event_headers". 5066 // 5067 // Changed such that output images for events below the minimum number of 5068 // photoelectrons nphe2NSB required to simulate the noise (NSB & electronic) 5069 // will be empty. This will avoid the problem of these events being processed, 5070 // without any noise, later in the chain. Although those images are not in the 5071 // output, one can still check in the headers (MMcTrig) how many such events 5072 // with less than nphe2NSB photoelectrons would have triggered. 5073 // 5033 5074 // Revision 1.88 2005/02/11 20:00:01 moralejo 5034 5075 //
Note:
See TracChangeset
for help on using the changeset viewer.