Changeset 19702 for trunk/Mars/resmc


Ignore:
Timestamp:
10/01/19 13:27:56 (5 years ago)
Author:
tbretz
Message:
Adapted some binning, removed wobble option, added comments, set a reasonable (whatever that means) trigger threshold, fixed the source position for th eplots in the center o fthe camera.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/resmc/hawcseye/ceres.rc

    r19680 r19702  
    4343# BinningEnergy.Raw:      100      1    100000  log
    4444# BinningSize.Raw:        100      1  10000000  log
    45 BinningImpact.Raw:       60   0       600
     45BinningImpact.Raw:       40   0       400
    4646# BinningHeight.Raw:       50      0        12
    4747# BinningAz.Raw:          360   -360       360
    4848# BinningZd.Raw:           70      0        70
    49 BinningViewCone.Raw:     56      0        14
     49BinningViewCone.Raw:     32      0        8
    5050BinningTrigPos.Raw:     100     -5        45
    5151BinningTotLength.Raw:   150      0       150
     
    6161BinningDist.Raw:         25    0    15
    6262
     63# Note that you might not exactly get this binning limit as
     64# the limits are internally optimized (or to have N bins of size 1)
     65HPhotonEventGround.MaxImpact: 250
    6366
    6467# -------------------------------------------------------------------------
     
    9497# For details see MSimPointingPos
    9598# -------------------------------------------------------------------------
    96 MSimPointingPos.OffTargetDistance: 0.6
     99#MSimPointingPos.OffTargetDistance: 0.6
    97100#MSimPointingPos.OffTargetPhi: -1
    98101
    99102
    100103# -------------------------------------------------------------------------
    101 # Setup the reflector and camera geometry
     104# Setup the optics
    102105# -------------------------------------------------------------------------
    103106#Reflector.Constructor: MReflector();
    104107Reflector.Constructor: MFresnelLens();
    105108
     109# -------------------------------------------------------------------------
     110# Note that this is the setup for the 'Reflector' being MFresnelLens
    106111Reflector.Transmission.FileName: resmc/hawcseye/transmission-pmma-3mm.txt
    107112Reflector.Transmission.Thickness: 0.3
    108 Reflector.Transmission.FresnelCorrection: True
    109 Reflector.SurfaceRoughness: 0.001
    110 
     113Reflector.Transmission.FresnelCorrection: true
     114#Reflector.SurfaceRoughness: 0.001
     115
     116# -------------------------------------------------------------------------
     117# Note that this is the setup for the 'Reflector' being MReflector
    111118
    112119# For the file definition see MReflector::ReadFile
    113 
    114120Reflector.FileName: resmc/hawcseye/fake-reflector.txt
    115121# Units mm: ~0.02°
     
    132138#paraboloid_focal   488.87
    133139
     140# -------------------------------------------------------------------------
     141# Setup the camera geometry
     142# -------------------------------------------------------------------------
     143
    134144#MGeomCam.Constructor:   MGeomCamDwarf(189.8,  9.5,  4.8887);
    135145MGeomCam.Constructor:   MGeomCamFAMOUS(0.502,false);
    136146
    137147#MSimBundlePhotons.FileName: resmc/fact/dwarf-fact.txt
     148
     149# -------------------------------------------------------------------------
     150# Setup the sensors
     151# -------------------------------------------------------------------------
    138152
    139153# Set the APD type (1: 30x30 <default>, 2: 60x60, 3:60x60(ct=15%))
     
    221235MSimTrigger.FileNameRouteAC: resmc/hawcseye/trigger.txt
    222236
    223 # DiscriminatorThreshold is 9*offset(-1850)+21*gain(22.375)=16180.125
    224 #MSimTrigger.DiscriminatorThreshold: -16180.125
    225 MSimTrigger.DiscriminatorThreshold: -192.387
     237# DiscriminatorThreshold is in arbitrary units
     238# This is the FACT default
     239#MSimTrigger.DiscriminatorThreshold: -192.387
     240# This is optimized to trigger not more than 1 out of 1000 simulated pedestal events
     241MSimTrigger.DiscriminatorThreshold: 700  # The units correspond to DRS4 ADC counts (FIXME: Conversion to DAC cnts)
     242
     243# In FACT: 300 DAC counts are roughly 21pe. 1pe is roughly 10 mV / 20 ADC counts (see MSimCamera.DefaultGain)
     244# Therefore, the conversion from ADC to DAC is therefore (300/21.)/22.553 = 0.63
     245# A simulated DiscriminatorThreshold or 700 therefore corresponds to a DAC threshold of about 450
     246
    226247# Note that this is in SAMPLES! I have taken the values from the SW trigger
    227248MSimTrigger.CableDelay: 21
     
    229250MSimTrigger.CoincidenceTime: 0.5
    230251
     252# The baseline shift (unfortunately -- as well as the A/C coupling!) is already added
     253# before the trigger electornics to the signal. If the sum-trigger is calculated,
     254# the baseline is summed as N*pixels - 0.96*N*pixels and therefore shifts indiviudally
     255# according to the number of pixels in a patch (I believe that this is wrong).
     256# Therefore, this effect can be correct be a shift of N*(1-0.96)
     257MSimTrigger.ShiftBaseline: Yes
     258
     259# Setting this resource allows to copy the sum signal back to the source pixels
     260# so that instead of the original signal, the sum-signal is digitzed in the eleotronics
     261#MSimTrigger.DebugTrigger: Yes
     262
     263# Use this to turn off the trigger electronics. A trigger is always issued.
     264#MSimTrigger.SimulateElectronics: No
    231265
    232266# Every Pixel(!) should see the same signal independant of its size
     
    259293MRawRunHeader.FadcResolution:      12
    260294
    261 MSimCamera.DefaultOffset: -1850.0
    262 MSimCamera.DefaultNoise:    2.8125
    263 MSimCamera.DefaultGain:    22.553
     295MSimCamera.DefaultOffset: -1850.0    # ADC counts
     296MSimCamera.DefaultNoise:    2.8125   # ADC counts
     297MSimCamera.DefaultGain:    22.553    # Conversion for the pulse to ADC counts
    264298
    265299# Value for the fudgefactor in the calculation of the accoupling:
     
    305339ContEmpty3.Condition: MPhotonEvent.GetNumPhotons<10
    306340
     341# Take a fixed position in the camera.... for now!
     342MSrcPosCalc.FixedPos: 0 0
     343
    307344MFixTimeOffset.FileName: resmc/fact/pixel_delays_ALL_ZERO.csv
    308345# MFixTimeOffset.FileName: resmc/fact/AllPhidoFiles_delays.csv
Note: See TracChangeset for help on using the changeset viewer.