Ignore:
Timestamp:
02/10/05 14:49:21 (20 years ago)
Author:
moralejo
Message:
Added setting of trigger flags in MRawEvtHeader::fTriggerPattern:
Lvl1 flag for normal shower events, Calibration flag for calibration
events and Pedestal flag for "calibration runs" in which the number
of photons per pixel is set to 0.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx

    r6343 r6351  
    3535#include "TArrayC.h"
    3636#include "TObjArray.h"
    37                                                         
     37                                               
    3838#include "MTrigger.hxx"
    3939#include "MFadc.hxx"
     
    6161#include "MGeomPix.h"
    6262#include "MGeomCorsikaCT.h"
     63#include "MTriggerPattern.h"
    6364
    6465/*!@"
     
    22772278                                    EvtHeader[iconcount]->
    22782279                                      FillHeader( (UInt_t) (ntshow + nshow),0);
    2279 
     2280                                    EvtHeader[iconcount]->
     2281                                      SetTriggerPattern((UInt_t)MTriggerPattern::kTriggerLvl1);
    22802282                                    //   fill pixel information
    22812283                                    if (Lev1 || Write_All_Images){
     
    25342536                EvtHeader[ict]
    25352537                  ->FillHeader ( (UInt_t) (ntshow + nshow) , 0 ) ;
    2536              
     2538                EvtHeader[ict]->SetTriggerPattern((UInt_t)MTriggerPattern::kTriggerLvl1);
     2539
    25372540                //   fill pixel information
    25382541             
     
    46984701          EvtHeader[ict]->FillHeader((UInt_t) calevent, 0);
    46994702
     4703          // Set flag to indicate this is a calibration or a pedestal run:
     4704          if (phot_per_pix > 1.e-3)
     4705            {
     4706              EvtHeader[ict]->SetTriggerPattern((UInt_t)(MTriggerPattern::kCalibration |
     4707              MTriggerPattern::kTriggerLvl1));
     4708              //
     4709              // FIXME! For now color and intensity of the pulser is fixed!
     4710              EvtHeader[ict]->SetCalibrationPattern((UInt_t)((BIT(11) | BIT(12))<<16));
     4711            }
     4712          else  // 0 cal. photons per pixel ==> pedestal run
     4713            EvtHeader[ict]->SetTriggerPattern((UInt_t)MTriggerPattern::kPedestal);
     4714
     4715
    47004716          McEvt[ict]->Fill( 0, 0, 0., -1.0, -1.0, -1.0, 0., 0., 0., 0., 0.,
    47014717                            0., 0., 0., 0., 0., 0., 0., 0.,
     
    49664982//
    49674983// $Log: not supported by cvs2svn $
    4968 // Revision 1.84  2004/12/15 01:56:39  MAGIC
     4984// Revision 1.85  2005/02/10 12:00:32  moralejo
     4985//
     4986//  Changed call to EvtHeader[ict]->FillHeader in line 2535: second argument
     4987//  was 20, and I set it now to 0. No idea why that was 20: like that, it was
     4988//  setting a CL trigger pattern on all events (???!!!)
     4989//
     4990// Revision 1.84  2004/12/15 01:56:39  moralejo
    49694991//
    49704992//  Added input card option pmt_jitter_ns to simulate the time jitter of
Note: See TracChangeset for help on using the changeset viewer.