TRGSim++

TRGSim++ is a set of packages to run trigger simulation ( since the trigger is fully digital  TRGSim++ is effectively an emulation). 

To run TRGSim++ OFFLINE as a simulation tool go to THIS PAGE.

To run TRGSim++ on ONLINE machines as a consumer MONITOR follow the instructions below ( which might be outdated).
 
 

How to run TRGSim++ on ONLINE machines as a consumer MONITOR
(To run TRGSim++ OFFLINE as a simulation tool go to THIS PAGE)


You will run on one of the linux machines: b0dap* ( Linux):
 

  • cd /data1/trigsim
  • source run_TRGSim++_online.csh partition number

  • this starts 2 processes:
  • TRGSim++ in your window ( we will call it AC++ window)
  • HistoDisplayMain

  • PS : the code runs off development.
    In the script the first command is
    setup cdfsoft2 TheLatestIntegrationRelease

    HistoDisplayMain

    HistoDisplayMain is the common Consumer Framework GUI:
  • select socket connection,
  • then insert the port number: localhost:9091

  • The port number is usually 9091 but you have to check in the AC++ window, where something like this appears, which tells you which port to use:
    ==========================================================================
    DisplayServer: Server socket for HISTO DISPLAY clients at PORT 9091
    available.
    Use b0dap30.fnal.gov:9091
    as input stream to connect from the HistoDisplay
    to the Display Server.
    ===========================================================================
  • then click on "open"

  • Finally click un "automatic update",
  • then click on start: a list of histos will appear. 
  • Histograms

    CalTrigger

    The CalTrigger Histos are the following:
  • TC2D EM Tower occupancy : EM trigger tower occupancy in eta-phi
  • TC2D Had Tower occupancy: HAD trigger tower occupancy in eta-phi
  • TC2D EM Tower real vs simulated : it gets filled when there is DISAGREAMENT between simulation and real data ==>> SIGN of ERROR!!
  • TC2D HAD Tower real vs simulated: it gets filled when there is DISAGREAMENT between simulation and real data ==>> SIGN of ERROR!!
  • TC2D/TC1D EM Hot cables : it gets filled when there is DISAGREAMENT between simulation and real data both for DCAS (TC2D) and DIRAC (TC1D) and the real value from TC2D is different than 0 ==>> SIGN of ERROR!! In general you don't have to mask the tower in this case because it is not a hot pmt but a loose cable between ADMEM/DIRAC/DCAS !!
  • TC2D/TC1D Had Hot cables: it gets filled when there is DISAGREAMENT between simulation and real data both for DCAS (TC2D) and DIRAC (TC1D) and the real value from TC2D is different than 0 ==>> SIGN of ERROR!! In general you don't have to mask the tower in this case because it is not a hot pmt but a loose cable between ADMEM/DIRAC/DCAS !!
  • TC1D_EM_Tower_Occupancy: occupancy in eta-phi of the EM DIRAC trigger
  • TC1D_TOT_Tower_Occupancy: occupancy in eta-phi of the TOT DIRAC trigger
  • TC1D_EM_Tower_Sim_vs_Data: it gets filled when there is DISAGREAMENTbetween simulation and real data ==>> SIGN of ERROR!!
  • TC1D_TOT_Tower_Sim_vs_Data: it gets filled when there is DISAGREAMENTbetween simulation and real data ==>> SIGN of ERROR!! 
  • XFTSim

    XFTSim is now enabled. Click here for more informations on the histograms available and their usage. Please send comments to Jong-Young Chung .

    TRGSim++

    TRGSim++ runs the various subsystems emulators. At the end of each event the real banks and the simulated ones are compared ( and the above histos updated):

    Moreover TRGSim++ produces many text error messages scrolling on the screen of the AC++ window at various level of debug ( you can control that via the talk-to in CaltriggerDataMaker throuhg the variable called debug_level:
  • debug_level set 0 prints only summary every 100 events
  • debug_level set 1 prints every error message.

  • In any case ALL THE ERROR MESSAGES + the summaries are reported in the summary file.

    Summary Files

    TRGsim++ produces several files:
  • Text Summary file: for CalTrigger and XFTSim

  • ex : 93027CalTrigger_Summary.txt
  • Root Summary file: ex TRGSim++_93027aa.root, for everything.

  • They are both written in the /data1/trigsim/ area.
    The text file contains a CalTrigger only summary every 100 events of the errors in DIRAC/CRATESUM/DCAS plus all the messages of the individual errors. You need to contact the experts at this point:
  • Simona Rolli for DIRAC and
  • Monica Tecchio for DCAS.

  • The root file contains the histos plotted with HistoDisplayMain.
    contact persons are:

  • Simona Rolli  for CalTrigger histos.
  • Carla Pilcher    or Simona Rolli  for DIRAC and
  • Monica Tecchio for DCAS.
  • Jong-Young Chung for XFT.
  • Running the same job offline

    You can run TRGSim++ also offline, namely while not taking data but later, for example on fcdfsgi2 reading data from the stager area: /cdf/data08/*.
    You need to copy the tcl file from: $PROJECT_DIR/TriggerMods/test/run_TRGSim++.tcl into your own area, edit and SET THE CORRECT INPUT FILE.
    The jobs produces histo files and the summary files.

    Enjoy!

    For questions send e-mail to Simona.Rolli@fnal.gov Last updated, Jan 26 2002