Ecal TP emulator TWiki

Complete: 3


The EcalTrigPrimProducer class takes EBDataFrame and EEdataFrame collections and constructs one EcalTriggerPrimitiveDigi for each trigger tower found in input. The software design aimed at reflecting the hardware as far as possible/reasonable.

Detailed Description

Packages and dependencies

Barrel part

2 main classes:

  • EcalBarrelFenixStrip containing 5 subclasses:
    • EcalFenixLinearizer
    • EcalFenixEtStrip
    • EcalFenixAmplitudeFilter
    • EcalFenixPeakFinder
    • EcalFenixStripFormat
  • EcalBarrelFenixTcp
    • EcalFenixBypassLin
    • EcalFenixEtTot
    • EcalFenixMaxof2
    • EcalFenixTcpFormat
    • EcalFenixFgvbEB

Endcap part

to come...

Endcap particularities:

In the endcap:
  • the 2 inner rings (ieta =27,28) contain half number of real trigger towers. Each existing trigger tower gives rise to 2 virtuel tirgger towers and so 2 trigger primitives where each of them contains half the energy of the real trigger tower. This is taken into account in the EcalTrigPrimAnalyzer.
  • EEDataFrames come with a scaling (AdcToGeV= 0.060) different from EBDataFrames (AdcToGeV= 0.035;). As a workaround, as long as the endcap emulation does not use calibration parameters, the endcap TP-s have been rescaled to the barrel TP-s.

How to run the emulator

  • Using TPG.txt file

1) Please put your TPG.txt file into the "/data" directory of the SimCalorimetry/EcalTrigPrimProducers package. The TPG.txt file should be compressed (format *.gz).

2) Addapt file from SimCalorimetry/EcalTrigPrimProducers/python putting the TPG.txt file's name.

3) Include into SimCalorimetry/EcalTrigPrimProducers/python/ configuration file adding the following command from EcalTrigPrimProducers.ecalTrigPrimESProducer_cff import *

4) Include SimCalorimetry/EcalTrigPrimProducers/python/ into your main configuration file process.load("SimCalorimetry.EcalTrigPrimProducers.ecalTriggerPrimitiveDigis_cff")

Please note that several examples are avalaible in the SimCalorimetry/EcalTrigPrimProducers package under the "/test" directory.

  • Reading the offline db
Example to be addapted : SimCalorimetry/EcalTrigPrimProducers/test/

1) Addapt the name of records and the tags

2) Connect to the right database (could be orcoff db or local sqlite file)

Offline software validation


The original validation code for the Ecal TPG is situated in the package Validation/EcalTriggerPrimitives. This code has been updated for the automatic CMS.RelVal validation and copied to the package Validation/L1Trigger.

To execute the validation

  • In the Validation/EcalTriggerPrimitives: run the script file validateTPG.csh.
  • In the Validation/L1Trigger: run the python configuration file

Plots done by the validation

  • Transverse energy for the Ecal barrel and endcap
  • Fine grain veto bit for the Ecal barrel and endcap
  • Trigger Tower Flag Ecal barrel and endcap

The results for the offline software validation of the ECAL TPG are available for various releases in EcalTPGOfflineSoftwareValidationResults.

Review Status

Editor/Reviewer and date Comments
Main.uberthon - 07 Nov 2006 page content last edited
CMSUserSupport - 12 Mar 2007 moved page into swguide
JennyWilliams - 13 Mar 2007 editing to match swguide layout

Responsible: Main.emiliabecheva
Last reviewed by: MostRecentReviewer and date

Edit | Attach | Watch | Print version | History: r13 < r12 < r11 < r10 < r9 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r13 - 2013-09-20 - EmiliaBecheva

    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback