Fork me on GitHub

Changeset 83e77ee in git


Ignore:
Timestamp:
Aug 24, 2021, 12:02:27 PM (3 years ago)
Author:
michele <michele.selvaggi@…>
Branches:
master
Children:
eee94204
Parents:
61dccd3
Message:

added neutral time of flight

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cards/delphes_card_IDEA.tcl

    r61dccd3 r83e77ee  
    99#####################################################################
    1010
     11## MOD2: set vtx mode timing to MC truth
     12
    1113set B 2.0
    1214
     
    3941  TrackMerger
    4042  Calorimeter
     43
     44  TimeSmearingNeutrals
     45  TimeOfFlightNeutralHadron
     46
    4147  EFlowMerger
    4248
     
    397403
    398404module TimeSmearing TimeSmearing {
    399   set TrackInputArray ClusterCounting/tracks
     405  set InputArray ClusterCounting/tracks
    400406  set OutputArray tracks
    401407
     
    406412}
    407413
     414
    408415########################################
    409416#   Time Of Flight Measurement
     
    411418
    412419module TimeOfFlight TimeOfFlight {
    413   set TrackInputArray TimeSmearing/tracks
     420  set InputArray TimeSmearing/tracks
    414421  set VertexInputArray TruthVertexFinder/vertices
    415422
     
    420427  # 2: calculate vertex time as vertex TOF, assuming tPV=0
    421428
    422   set VertexTimeMode 2
     429  set VertexTimeMode 0
    423430}
    424431
     
    455462  set EnergySignificanceMin 1.0
    456463
    457   set SmearTowerCenter true
     464  #set SmearTowerCenter true
     465  set SmearTowerCenter false
    458466    set pi [expr {acos(-1)}]
    459467
     
    511519    # energy fractions for K0short and Lambda
    512520    add EnergyFraction {310} {0.3 0.7}
     521    add EnergyFraction {130} {0.3 0.7}
    513522    add EnergyFraction {3122} {0.3 0.7}
    514523
     
    527536}
    528537
     538########################################
     539#   Time Smearing Neutrals
     540########################################
     541
     542module TimeSmearing TimeSmearingNeutrals {
     543  set InputArray Calorimeter/eflowNeutralHadrons
     544  set OutputArray eflowNeutralHadrons
     545
     546  # assume constant 30 ps resolution for now
     547  set TimeResolution {
     548                       (abs(eta) > 0.0 && abs(eta) <= 3.0)* 30E-12
     549                     }
     550}
     551
     552########################################
     553#   Time Of Flight Measurement
     554########################################
     555
     556module TimeOfFlight TimeOfFlightNeutralHadron {
     557  set InputArray TimeSmearingNeutrals/eflowNeutralHadrons
     558  set VertexInputArray TruthVertexFinder/vertices
     559
     560  set OutputArray eflowNeutralHadrons
     561
     562  # 0: assume vertex time tV from MC Truth (ideal case)
     563  # 1: assume vertex time tV = 0
     564  # 2: calculate vertex time as vertex TOF, assuming tPV=0
     565
     566  ## TBF (add option to take hard vertex time)
     567  set VertexTimeMode 1
     568}
     569
    529570####################
    530571# Energy flow merger
     
    535576  add InputArray Calorimeter/eflowTracks
    536577  add InputArray Calorimeter/eflowPhotons
    537   add InputArray Calorimeter/eflowNeutralHadrons
     578  add InputArray TimeOfFlightNeutralHadron/eflowNeutralHadrons
    538579  set OutputArray eflow
    539580}
     581
    540582
    541583###################
     
    848890    add Branch Calorimeter/eflowTracks EFlowTrack Track
    849891    add Branch Calorimeter/eflowPhotons EFlowPhoton Tower
    850     add Branch Calorimeter/eflowNeutralHadrons EFlowNeutralHadron Tower
     892    add Branch TimeOfFlightNeutralHadron/eflowNeutralHadrons EFlowNeutralHadron Tower
    851893
    852894    add Branch EFlowMerger/eflow ParticleFlowCandidate ParticleFlowCandidate
Note: See TracChangeset for help on using the changeset viewer.