Skip to content

Hide the Delphes Card for LHCb configuration.

Hide the Delphes Card for LHCb configuration.

Method: Use python template replacement with generalized templates for modules, mergers and calorimeter.

For now: Can simply load ipython from the Gauss Environment and form a new card:

from LbDelphes.LbDelphesCardTemplates import make_default_card
card = make_default_card.make_default_card('my_test_card')
#modify default card here
card.card.make_execution_order()
card.card.make_TCL_card()  
card.card.write_to_file() 

This will write in the current directory the file my_test_card.tcl which can then be called directly in LbDelphes.py

I've validated against the "Default" card delphes_card_LHCb_EndVelo_Rich2_withEcal.tcl with all smearing turned off. This is done as the calo formation is done manually. Plots below show photons with the old card in blue, new in red for event level variables. They are completely overlapping with the same stats.

Screen_Shot_2019-03-27_at_1.07.38_PM

Screen_Shot_2019-03-27_at_1.09.20_PM

Screen_Shot_2019-03-27_at_1.10.55_PM

Screen_Shot_2019-03-27_at_1.12.30_PM

Screen_Shot_2019-03-27_at_1.13.46_PM

Screen_Shot_2019-03-27_at_1.06.22_PM

@fedor, can you please do a check to make sure the custom configuration in LHCbDelphesCalorimeter.py fit your needs?

@bsiddi @gcorti

Merge request reports

Loading