This file reports the latest tags to fix various bugs discovered during use and to add new features.

When a release is not mentioned it means that the features of TRGSim++ are of nearest previously mentioned release.

For the releases status look here

TRGSim++ 6.1.4 (Jan 13, 2006)
TRGSim++ 6.1.3 (Sept 20, 2005)
TRGSim++ 6.1.2 (July 27, 2005)
TRGSim++ 6.1.1 (Apr 2005)
TRGSim++ 6.0.0 (Dec 2004)


May20_2004
MuonTrigger
MuonTrigger is about to have many changes introduced.
I tagged it today ( May 20 2004) for historical reason.


TRGSim++  5.3.1 (March 2004)

    it includes Prereq to select events in output based on the trigger bits
    it includes cotqModule,svqModule,calqModule and sxmqModule to unpack Pad squeezed banks in input
    the tcl for data is here and for MC is here


v5_3_1pre6
XFTSim
      added access to db to fetch the miss hit configuration, based on the run number found in the EventRecord

v5_3_1pre3


XTRPSim
     reinstated the code allowing XTRPSim to fetch the event number from the EventRecord for MC data.
     If you use 5.3.1pre2 release you'll need to pass the run number via talk-to in XTRPSim

XFTSim
     
added tcl switch to make XFTSim backward compatible with older releases, as for the MC pedestal correction in simualated COTD
       see below.

TriggerMods
        updated tcl's


After tagging for pre2, it was discovered that the 5.x. series of releases requires FOR MC that after loading the COT hits, one should add the pedestal of 132 ns. So we had to modify XFTSim.cc to do this for MC data.  We added a switch to the XFTSim talk-to to make XFTSim backward compatible to be run on MC files generated with older releases. The switch is in the tcl examples and reads as follows:

module talk   XFTSim
# to run on simulated data:
    data_flag       set false
# with 5.3.1pre1 onward CotqModule will puff a COTD back, for previous releasese activate the line below
#  useCOTQ set true
# MCPedestalCorrection, it has been introduced for COTD in releases 5.x. onward
# to be set to 0 for older MC data
MCPedestalCorr set 1
....
This does not apply to data, which had always had the pedestal correction.

this has been tagged for pre3.
so, you can use with release 5_3_1pre2 where you need to add
addpkg XFTSim v5_3_1pre3
addpkg TriggerMods  v5_3_1pre3
gmake XFTSim.nobin; gmake TriggerMods.bin







v5_3_1pre2
CalTrigger
       scale factors are now accessed through CalibL1
TriggerMods  v5_3_1pre2a
       updated tcl's
L2GlobalTrigger
        removed redundant output
XFTSim  v5_3_1pre2a
         check to see if COTD is empty -- if it is, don't try to record garbage values
          fixed bug in LinkerChip.cc
svtsim
          most complete version of the SVT beamlines A. Cerri  has right now.
          It is not 100% cross checked, which is why he doesn't overwrite testSVTBeam



v5_3_1pre1
TriggerMods
        added   Prereq ,CalqModule, SmxqModule, CotqModule, SvxqModule
        to TRGSim++.cc ( bin) and TRGSim++_MC (tbin for farm use *only*)

CalTrigger
        fixed a bug in the use of thresholds for MET PreFred bit setting
        and removed some redundant output to file

XFTSim

        add checks for COTQ or COTD banks in MC case

I had to modify Prereq to properly access the simulated TL2D ( you can still use Prereq from the release if you use TFRD to access L1 bits, but need to get the new version to access TL2D - L2 bits or L1)
I have tagged Level3Mods with PrereqSimBank tag.
You can :
addpkg Level3Mods PrereqSimBank ;
gmake Level3Mods.nobin;
gmake TriggerMods.bin

The tcl to run on MC are available from the TRGSim++ page.





TRGSim++  5.3.0

    it does not include Prereq to select events in output based on the trigger bits
    it includes corrections for the IMU maps in XTRPSim


 v5_3_0pre3
XTRPSim v5_3_0pre3
  Two changes were to keep up with changes to the hardware:
  1.  modified IMU maps
  2.  update the code to be consistent with the hardware for
       CMU phi-gap triggers



TRGSim++  5.2.0int2

    it includes infrastructure changes to improve the database connection and a fix for the Sumet thresholds
    used in the CalTrigger Prefred simulation - the sumet bits are correctly set.
    Starting with 5.2.0int2 XFTSim should not produce random crashes at the end of job, as a major rewriting of the code
    has been made by Ben Whitehouse.


 v5_2_0int2

CalTrigger  v5_2_0int2a
XTRPSim v5_2_0int2a
L1GlobalTrigger v5_2_0int2a
L2GlobalTrigger v5_2_0int2a
TriggerDB v5_2_0int2a

The above packages have changes to improve db connection on the CAF. NOTE the "a" suffix.

XFTSim v5_2_0int2

various changes to handle memory corruption problems leading to frequent crashes at the end of run

TriggerObjects v5_2_0int2

TDC raw data bank format changes.





PreFred_091103 (Septmber 11, 2003)
CalTrigger
    fetching of PreFred Sumet/MET thresholds from the database has been implemented
    a sneaky bug regarding overwriting of run_number in CalTriggerDataMaker talk-to has been fixed, now the
    run number for simulation is read from the event record and there is no need to pass it via talk-to.

    The patch applies to 4.9.1 and 4.11.1/2.
    addpkg CalTrigger PreFred_091103
    addpkg TriggerMods
    gmake CalTrigger.nobin
    gmake TriggerMods.bin

    use the tcl from TriggerMods/test/run_TRGSim++_MC.tcl



TRGSim++  4.10.x and 4.11.1

   it includes a change in the FRED bits scheme. Incorrect Sumet and MET thresholds.  


v4_10_0 (February 2003)

v4_10_0pre2     L1GlobalTrigger
        Replaced one trigger bit on FRED and added two new ones.  I am sending you the
        new bit numbers at the input to the FRED card and the corresponding bit numbers of these
       triggers in the TL1D bank. 
       FRED bit 1 is PreFRED trigger bit 1 in the "Multi (GA 11)" card of the TL1D bank.
       Note: FRED bit 1 used to be SUM(E_T)1.
       FRED bit 20 is PreFRED trigger bit 8 in the "BSCtrg (GA 10)" card of the TL1D bank.
       FRED bit 22 is PreFRED trigger bit 9 in the "BSCtrg (GA 10)" card of the TL1D bank.

v4_10_0pre1  CalTrigger/src/CalTriggerPatterns.cc

        speeded up access to DOWNLAODS

v4_10_0pre1  XFTSim/XFTSim/XFTRoadMaskGen.hh
v4_10_0pre1  L1GlobalTrigger/src/TFRDMonitor.cc
v4_10_0pre1  L1GlobalTrigger/src/TFRDMonitor.hh
        changes related to Framework header changes


v4_10_0pre1  TriggerMods/test/run_TRGSim++_MCProduction.tcl
v4_10_0pre1  TriggerMods/test/run_TRGSim++.tcl
v4_10_0pre1  TriggerMods/test/run_TRGSim++_MC.tcl
         updated tcl's

v4_10_0pre1 L2GlobalTrigger/src/L2DecisionMaker.cc
        fix to an array going out of boundary


In this release the talk-to to CalibrationManager is the same as in pms





TRGSim++  4.9.x

   it includes modifications to the db connection ( tcl changes to CalibrationManager talk-to from 4.9.1 to 4.9.1pms)


4.9.1pms (January 2003)

CalTrigger
L1GlobalTrigger
TriggerMods
XFTSim
XTRPSim

Modifications to comply with DB connection code review recommendations.
        (CDF 6179). The tag is: db_connection_test
From Dmitri Litvinse:
Modules that perform connection to DB acquired std::string data member
_dataDB with default value "ofotl_prd_read". This parameter can be set
via talk to incantation, e.g.:

        talk CalibrationManager
          DataDB set onotl_prd_read
        exit


to get a list of valid logical db identifiers, one does this:
          help DataDB




V_trig_1
( November 2002)

These TRGSim++ specific tags have been tested against 4.9.0. They also work against 4.9.1 and 4.9.1hpt1 This means that the user needs to add the following packages as follows for the 2 releases:

setup cdfsoft2  4.9.0

addpkg TriggerMods  V_trig_1
addpkg L1GlobalTrigger  V_trig_1
addpkg XTRPSim  V_trig_1
addpkg L2GlobalTrigger v_4_9_0pre2
gmake nobin
gmake TriggerMods.bin



setup cdfsoft2  4.9.1

addpkg TriggerMods  V_trig_1
addpkg L1GlobalTrigger  V_trig_1
addpkg XTRPSim  V_trig_1
addpkg CalTrigger
V_trig_2
gmake nobin
gmake TriggerMods.bin



The L1GlobalTrigger tags are necessary to run on MC and they need to be added.
The tags for XTRPSim and TriggerMods are optional.
The  v_4_9_0pre2 for L2GlobalTrigger is necessary only when running against 4.9.0 ( see below). The fix has gone into 4.9.1


TRGSim++ specific tags V_trig_1
XTRPSim
     new code to read the DOWNLOADS view.
L1GlobalTrigger
      a change in the setting of the prescaled bits (needed for MC). Prescaled bits are set equal to unprescaled ( since TRGSim++ does not simulate prescaling)
TriggerMods
    changes to the makefile to remove the compilation of obsolete code + changes to the tcl's
CalTrigger
    modification to get scale factors for MC data with physical run number V_trig_2



v4_9_1 ( November 7, 2002)

CalTrigger
L1GlobalTrigger
XTRPSim
    changes requested by the simulation/b group to  run on simulated data with different run numbers.
L2GlobalTrigger
    fixes for the new trigger table







 v4_9_0int1 (October 23, 2002)

L2GlobalTrigger
        fixed a bug in reading Triggers with missing paths
TriggerMods
        removed L2Decision module and left L2Sim as the L2 simulator





v4_9_0 (October 2002)

this release is broken for TRGSim++, because L2GlobalTrigger was not updated to reflect the recent changes in the newest trigger tables.

To be able to run TRGSim++  in 4.9.0 one  absolutely needs to do the following:
 
setup cdfsoft2 4.9.0
addpkg 
L2GlobalTrigger   v4_9_1pre2 ,
addpkg TriggerMods
gmake nobin
gmake TriggerMods.bin

and rebuild TRGSim++




v4_8_0pre1

TriggerMods
        l2 code added - L2SimModule  now fills TL2D and the L2 bits
L2GlobalTrigger
        l2 code added - L2Decision is switched off by default, L2simModule needs to be used.
svtsim
        has not been tagged in a while: some new code added on August 5, makes necessary to add svtsim from the head for all the releases from 4.7.0int2 up to 4.8.0 in order to run fine on data taken after August 5.



4.7.0int5 (28 Aug 2002)

TriggerMods
        added L2Decision module, in test phase. It is disabled by default in the tcl ( it still gives lots of printouts statements)
 
 



v4_7_0int3 ( 14 Aug 2002)

CalTrigger
        MET calculated with Lookup tables
        TL1DMonitor added

TriggerMods
        added L2Decision code - test phase

L1GlobalTrigger
        bug fixed in muon PreFred bits
        The bits are taken from TCMD and are bits 0-9 of word 2, block2,
        card0 and not as previously in the code bits 10-19 of the
        same word.

TriggerObjects
        bug fixed in TL2D ( clusters energies saved as integers in eN, while they're were converted into real)
 
 



v4_7_0int2 (06 Aug 2002)

L2GlobalTrigger
        fixed small bug in filling RECES block of TL2D
CalTrigger
        added SpikeKiller algorithm for CEM
         fixed a bug in method hot_tower: this is a monitor method that is flagging events where there is a mismatch BOTH in tower energies and dirac words. The tower energy was not correctly read from TC2D.
 
 



v4_7_0int1 ( 02 Aug 2002)

TriggerMods
    Tl1Dmaker was uncorrectly filling the MET word  and bits 10-19 of MuonPrefred- fixed


v4_7_0pre2 (01 Aug 2002)

CalTrigger:
the clustering routine has been fixed,
new thresholds  have been added for physics runs and cosmic runs, new talk-to verb added to select
cosmic or physics runs ( cosmic_run set to FALSE by default)
 

TriggerMods
added SpikeFilter to emulate the effect of spike killer not yet
implemented in CalTrigger. This filter select events  and passes them to L2Sim
if there is no mismatch between Trigger Tower energies or if there is mismatch the energy of the tower is above 4 ADC counts. IT HAS TO BE TURNED OFF WHEN RUNNING ON SIMULATED DATA
 

XTRPSim ( Kevin made some changes to the map file)

TriggerObjects and L1GlobalTrigger
removed some annoying printouts ( Event = #, max size = 17)
 

L2GlobalTrigger
added RECES simulation
 
 



v4_6_0int5 (July 2002)

L2GlobalTrigger
        added RECES simulation ( Masa Tanaka)
 
 



v4_6_0int2 ( 19 Jun 2002)

MuonTrigger
        added talk-to's to to simulate only selected detectors

svtsim
         added capability of overwriting the run number to emulate physics tables conditions
        the talkto  has changed considerably!
 
 



v4_6_0int1 ( 13 Jun 2002 )

TriggerMods
        added slot numbers for simulated TL1D bank in TL1DMaker

TriggerObjects
        added slot numbers for simulated TC2D
        fixed bug in SVTDNtuplizer, now selected based on process name

CalTrigger
        a typo in the description string of the temporary TL1D bank has been fixed. This was causing FredSim to not fill the
        sumEt and MET words properly
 
 



v4_5_0int2 (16 Apr 2002)

CalTrigger
        fixd bug in PreFred simulation ( affecting MET) (Simona fixed it first , then Carla)
TriggerObjects
        fixed minor bug in XFLD
 
 



 
v4_4_0int6 (25 Mar 2002)

TriggerMods
        fix to GNUmakefile for Linux compilation
MuonTrigger
        hasnn't been tagged in a while
L2GlobalTrigger
        standalone feature enabled
CalTrigger
        bug fixed in generating patterns for simulated data -  the selection on old DIRAC option name was done using TrigNumber() and not nRun
XTRPSim
        added DB access
TriggerObjects
        added TCMDNtuplizer, fixed bug in TL1DNtuplizer for simualted data



v4_4_0int2 (26 Feb 2002)

TriggerMods

    L2Sim added

CalTrigger
        CalTriggerPatterns.cc modifiied to accomodate new  names for OPTION parameters in
        TriggerTableDB -
    DIRAC_ELECTRON became ELECTRON, DIRAC_JET became JET ,DIRAC_TAU  became TAU,DIRAC_PHOTON became PHOTON
 
 


v4.2.0int1 (December 2001)

TriggerMods
        TRGSim executable is now called TRGSim++ ( not anymore
        TRGSim++_online)
        cleanup in the scripts directory;
        only reference tcl to run TRGSim++ is in
        TriggerMods/test/run_TRGSim++.tcl;
        CalTriggerMonitor2 modified to use accessors for real trigger
        banks when cards are missing;
 

TriggerObjects
        TC2Dntuplizer modified to use accessors for real trigger
        banks when cards are missing;

CalTrigger
        subtle bug fixed when using new scale factors ( which are floats!)
        monitor code modified to use accessors for real trigger banks when cards are missing;
        CalTriggerExe moved to ntuple dir.
        CalorimetryModule appended to it to repuff D-banks from CalData;
        eN, eNFinal appended to fill evtNtuple in output.
        CalTrigger/test/run_CalTriggerExe.tcl points now to TriggerMods/test/run_TRGSim++.tcl for
        CalTriggerDataMaker,CalibrationManager,CalorimetryModule talk-to
 
 



v4_2_0pre1 (30 Nov 2001)

CalTrigger -
    slightly revised Et summing as from new P. Wilson's note

TriggerObjects
     TL2D more accessors and XFLD typo fixed
 
 

 


4.1.0int4 (14 Nov 2001)



TriggerMods
        updated scripts

L1GlobalTrigger
        FredSim now fully functional