Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring L1T emulation up to date with l1t-tsg-v4 tag #13768

Merged
merged 241 commits into from Apr 1, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
241 commits
Select commit Hold shift + click to select a range
5406f87
update L1T standard sequences
mulhearn Feb 9, 2016
d8e4835
cleanup summary module and related customs
mulhearn Feb 4, 2016
b0824f2
add ReEmul customization for cmsDriver workflows and more utilities
mulhearn Feb 5, 2016
7dcb5dc
Update EG isolation + Tau calibration LUTs
tstreble Feb 5, 2016
3d742d9
Fixed HBHENoiseFilterResult
bundocka Feb 5, 2016
8fc7039
new emulator for calo layer1
mulhearn Jan 26, 2016
c168773
unpacker for calo layer1
mulhearn Jan 26, 2016
dae3208
Added HF 1x1 handling
SridharaDasu Jan 28, 2016
e12adb7
Added HF tower handling
SridharaDasu Jan 29, 2016
0be1a05
Fixed so HF TPs are appended to regular collection with version set to 1
SridharaDasu Jan 29, 2016
9734d82
Removed empty hfTPGDigis stub :(
SridharaDasu Jan 29, 2016
4b1cedf
Added access to uctPhi() from tower for correct CaloTower making
SridharaDasu Jan 30, 2016
91b0a53
Added run number and dataset selection ability at run time to test sc…
SridharaDasu Feb 3, 2016
6bfc69b
move test code out of deprecated L1TCaloLayer1RawToDigi
mulhearn Feb 9, 2016
2bd812a
remove deprecated EventFilter/L1TCaloLayer1RawToDigi
mulhearn Feb 9, 2016
2865eac
fix l1t text summary in example code
mulhearn Feb 9, 2016
3489e9e
make L1TCaloLayer1 a drop in replacement, leave off by default
mulhearn Feb 9, 2016
5897e1b
Added Options 4 and 5 isolation LUTs for taus
davignon Feb 9, 2016
fe177ee
quiet verbose reEmul example
mulhearn Feb 9, 2016
faf8e0a
Added absolute value operator to z-coordinate variable
mrcarver Feb 9, 2016
df59949
disable GMT regional muon packing until fixed
mulhearn Feb 10, 2016
0aa725f
bugfix for standard sequences for pre6
mulhearn Feb 10, 2016
d5352f6
remove unsupported examples
mulhearn Feb 10, 2016
3f8977c
bugfix summary output and remove obsolete customs
mulhearn Feb 10, 2016
2e2000a
add muons to emulation ntuple
mulhearn Feb 10, 2016
e95c1eb
re-emulate HCAL TPs by default in reEmul custom
mulhearn Feb 10, 2016
4f28e8c
remove inadvertent override of HCAL TP re-emulation
mulhearn Feb 11, 2016
74785f1
Check the size of the track address map before using it when builting…
thomreis Feb 10, 2016
66fd6f6
Bugfix: Every BX, not just the first one, is now filled with 6 empty …
thomreis Feb 10, 2016
0531a74
* make get methods of L1TMuonOverlapParams to be const
akalinow Feb 1, 2016
694c341
* update connections tables
akalinow Feb 1, 2016
fce3b48
* add patterns file to git.
akalinow Feb 1, 2016
f2450cd
* add cfg.py file for merging XML patterns files.
akalinow Feb 1, 2016
148a7b7
* fix order of candidates saved to the event
akalinow Feb 2, 2016
1e165c5
* update ClassVersion for L1Muon.
akalinow Feb 2, 2016
576e996
checkFormat() function added to all EMTFBlock*.cc files
Feb 3, 2016
cdbbd06
MessageLogger printout frequency changed to every event
Feb 3, 2016
c4b8acb
Update and bug fixes to checkFormat()
Feb 4, 2016
09b2975
Added EMTFBlockRPC.cc
Feb 4, 2016
7927789
EMTF unpacker error handling in DataFormats and EventFilter
abrinke1 Feb 10, 2016
eb4d000
Added RegionalMuonCands to output
abrinke1 Feb 10, 2016
36708a6
Added DataFormats/L1DTTrackFinder, now code compiles
abrinke1 Feb 10, 2016
e194199
Merged l1t-dev-recipe-CMSSW_8_0_0_pre6-trial from repository cms-l1t-…
mulhearn Feb 11, 2016
35e25ac
Merged l1t-muon-CMSSW_8_0_0_pre6 from repository cms-l1t-offline
mulhearn Feb 11, 2016
b2556d1
*rename new version of XML cinfig files. Added suffix with FW version.
akalinow Feb 11, 2016
68ebb1c
Fixed test python to match name changes made by Mike
mulhearn Feb 11, 2016
06e40eb
Fixed caloEta check - mistakenly letting through caloEta = -29 earlie…
SridharaDasu Feb 10, 2016
5c9ac2a
Add L1NtupleAODEMU option
apana Feb 9, 2016
fb8d182
Add L1Event tree default L1Ntuples
apana Feb 9, 2016
3bdb66e
Fix default for muonToken
apana Feb 9, 2016
16090e0
Take out spurious cout
apana Feb 9, 2016
86d59de
Add option to remove gt,gmt,and calo Stage2 unpackers
apana Feb 9, 2016
26aaf6b
Add option to remove gt,gmt,and calo Stage2 unpackers
apana Feb 9, 2016
0d9a192
Take JEC from GlobalTag instead of local sqlite file
apana Feb 10, 2016
9ec02a8
Fix the defaults for when running for Stage1
apana Feb 10, 2016
58ec0c6
Fix error in stage1 collection names; update TP Token names
apana Feb 11, 2016
48e9520
Update HCAL TP token names
apana Feb 11, 2016
b69d577
fix run and event numbers
jimbrooke Feb 8, 2016
35c06df
add jet ID to offline HT, and eta < 3
jimbrooke Feb 8, 2016
533bcd5
include only HF TPs with version 1
jimbrooke Feb 9, 2016
f099ea9
fixed offline jetpt threshold
bundocka Feb 10, 2016
0d00b62
corrected jets for ht, mht
bundocka Feb 10, 2016
26009a6
fix poorly resolved conflicts
mulhearn Feb 11, 2016
92d5635
update for HF1x1 and remove dependency on RCT conditions
jimbrooke Jan 22, 2016
c673d98
include HF 1x1 TP production
jimbrooke Jan 22, 2016
c4512d4
include HCAL TPs in tower emu tree
jimbrooke Jan 22, 2016
1994746
fixes to jet finder to accomodate HF
jimbrooke Jan 22, 2016
19cd81f
add GT index conversion methods and fix hardcoded limit on ieta
jimbrooke Jan 23, 2016
269d353
use CaloTools to convert to GT units
jimbrooke Jan 23, 2016
d3449ca
this allows standard stage 2 jobs to run, but HF jets are absent
jimbrooke Jan 25, 2016
9122d33
fix rebase conflict in stage2 jet algo
mulhearn Feb 3, 2016
d2df29f
put back missing HF1x1 mods
jimbrooke Jan 13, 2016
f0feda7
Reverted corrected PF Jet sort
bundocka Feb 8, 2016
68a1898
Fixed typo in L1TRawToDigi_cff.py
bundocka Feb 8, 2016
6495cf8
added calibration for all jets in Jet emulator
bundocka Feb 8, 2016
f8b5cd4
Removed hardcoded eta boundaries in jet emulator
bundocka Feb 8, 2016
b651bca
temp workaround demux jet iphi problem
jimbrooke Feb 8, 2016
45527c8
split towers in hf
jimbrooke Feb 9, 2016
b430df3
fixes to GT indices
jimbrooke Feb 10, 2016
3e850dc
corrected jets for ht, mht
bundocka Feb 10, 2016
8ad4795
fix eta bounds for sums
jimbrooke Feb 11, 2016
f256e1a
change back to demux jets
jimbrooke Feb 11, 2016
b6ee4cf
fix eta range for ht sums
jimbrooke Feb 11, 2016
c71080f
manually fix files badly rebased from calo stage-2 dev branch
mulhearn Feb 12, 2016
fba7500
Merged l1t-calostage2-CMSSW_8_0_0_pre6 from repository cms-l1t-offline
jimbrooke Feb 12, 2016
3ae5c55
added calibration for all jets in Jet emulator
bundocka Feb 8, 2016
9e7335b
Removed hardcoded eta boundaries in jet emulator
bundocka Feb 8, 2016
db23c1e
corrected jets for ht, mht
bundocka Feb 10, 2016
2bf0d90
fix eta bounds for sums
jimbrooke Feb 11, 2016
99243af
fix eta range for ht sums
jimbrooke Feb 11, 2016
6504625
quiet a cout
mulhearn Feb 12, 2016
b612427
Update L1JEC.
Feb 12, 2016
f89409d
remove print out
jimbrooke Feb 12, 2016
713beb6
Merged l1t-muon-CMSSW_8_0_0_pre6 from repository cms-l1t-offline
akalinow Feb 15, 2016
24098c5
Merged l1t-calostage2-CMSSW_8_0_0_pre6 from repository cms-l1t-offline
Feb 15, 2016
d332b6a
* add configuration reset before loading a new configuration.
akalinow Feb 15, 2016
8b4fb17
Merge pull request #154 from akalinow/configButfix
akalinow Feb 15, 2016
f67df2e
Fix jet PUS bugs which would ignore -ve eta, screw up HF jets.
Feb 15, 2016
8acf914
Merged l1t-muon-CMSSW_8_0_0_pre6 from repository cms-l1t-offline
thomreis Feb 15, 2016
695d8c3
Prevent warning messages from being printed twice.
thomreis Feb 15, 2016
047e723
Use quality to decide coordinate based cancel out and min pT as a sec…
thomreis Feb 14, 2016
5980c84
Calculate and add input muon index to uGMT output muons
thomreis Feb 15, 2016
2779cb0
Update L1JEC to take into account PUS bugfix.
Feb 15, 2016
79a7a69
Merged l1t-muon-CMSSW_8_0_0_pre6 from repository cms-l1t-offline
Feb 17, 2016
831c24b
Extra LUTs for algo2
Feb 17, 2016
e0d33ac
Algo2 phib
Feb 17, 2016
415fe88
set bx range
Feb 17, 2016
e55ea9f
WS - three output muons
Feb 17, 2016
fdb673c
use rpc if dt low quality
Feb 17, 2016
737703a
Merge pull request #158 from gflouris/mydevel_800pre6
Feb 17, 2016
f9f1e48
unpacker update for demux FED move
jimbrooke Feb 17, 2016
da0b143
Merge branch 'l1t-calostage2-CMSSW_8_0_0_pre6' of github.com:cms-l1t-…
jimbrooke Feb 17, 2016
9678f63
Add forgotten increment for muon index counter
thomreis Feb 18, 2016
0d8d9e8
* add configuration reset before loading a new configuration.
akalinow Feb 15, 2016
740ece3
force checkout of L1Trigger/L1TGlobal, as a work-around (this is fixe…
mulhearn Feb 19, 2016
dd7bed9
Fix bug L1RecoTreeProducer where variables not written to tree.
Feb 19, 2016
3bf1b93
Reset vectors in L1AnalysisRecoVertexDataFormat before each event.
Feb 20, 2016
c55bb01
Merged l1t-muon-CMSSW_8_0_0_pre6 from repository cms-l1t-offline
konec Feb 21, 2016
5fb9eb4
changes from Pawel towards separation of object, definitely not final
konec Feb 21, 2016
a7b7a5b
Merged l1t-calostage2-CMSSW_8_0_0_pre6 from repository cms-l1t-offline
mulhearn Feb 22, 2016
fb19b85
fix crash in runL1T unit test due to missing ESProducer for CaloTPGRe…
mulhearn Feb 22, 2016
c7b80d6
Merged l1t-muon-CMSSW_8_0_0_pre6 from repository cms-l1t-offline
mulhearn Feb 22, 2016
dc1d9d6
changes from Pawel to accomodate recent changes from Artur
konec Feb 22, 2016
b09970d
use only quality based cancel out
thomreis Feb 19, 2016
cd6db0a
Merge branch 'l1t-muon-CMSSW_8_0_0_pre6_uGMT-dev-cancelByQuality' int…
thomreis Feb 22, 2016
a72897b
Use only 2 MSBs for uGMT output muon quality
thomreis Feb 19, 2016
2b18449
Adjust also intermediate muon quality
thomreis Feb 19, 2016
79e370f
Merge pull request #167 from thomreis/l1t-muon-CMSSW_8_0_0_pre6_uGMT-dev
thomreis Feb 23, 2016
dc29144
add customizations for Event Setup of HF 1x1 TPs
mulhearn Feb 23, 2016
3fb02cc
deprecate reEmul.py for customizations, after bitwise equivalence dem…
mulhearn Feb 23, 2016
7656c6b
Added HF LUTs with unity transform as default
SridharaDasu Feb 22, 2016
1023b5f
Added HFLUTs table
SridharaDasu Feb 22, 2016
d99271c
Updated HFLUT values - no longer unity
SridharaDasu Feb 22, 2016
cceb3e3
switch back to stand-in Layer1 by default
mulhearn Feb 23, 2016
3e597fd
Merged l1t-integration-v4.0 from repository cms-l1t-offline
SridharaDasu Feb 23, 2016
ab736a4
deprecate customise_Stage2Calo.py
mulhearn Feb 23, 2016
27b3f3e
Merged l1t-muon-CMSSW_8_0_0_pre6 from repository cms-l1t-offline
mulhearn Feb 23, 2016
2071047
Set good muon quality of QualityAdjuster to 12 so that the two MSBs f…
thomreis Feb 23, 2016
88f0d45
Changed to caloPhi=1-72 for HF as well
SridharaDasu Feb 24, 2016
c85a2ef
revert HT to sum of all jets no jet ID
jimbrooke Feb 24, 2016
485b857
increase default jet threshold for HT, MHT to 35 GeV
jimbrooke Feb 24, 2016
8005fe7
Merge branch 'mydevel' into bugfix
mulhearn Feb 24, 2016
f342c93
Merge branch 'bugfix' into mydevel
mulhearn Feb 24, 2016
2aa48aa
revert to stand-in layer-1 emulator
mulhearn Feb 24, 2016
2111dd7
Eta map fix
Feb 24, 2016
82c8111
switch to FW version 2.0 for BMTF
mulhearn Feb 24, 2016
9c92b34
add back support for L1 tech triggers before stage-2
mulhearn Feb 16, 2016
20d4861
L1T unit testing
mulhearn Feb 26, 2016
fb0e384
Added region unpacking and fixed test program
SridharaDasu Feb 29, 2016
9f2128e
Now makes region summary from raw data
SridharaDasu Feb 29, 2016
f2a61f7
Merged l1t-integration-CMSSW_8_0_0_pre6 from repository cms-l1t-offline
SridharaDasu Feb 29, 2016
acc9276
Put in HFTPGs in HCALDigis again as that change went away mysteriously
SridharaDasu Feb 29, 2016
c3439b2
Merged dasu-updates-for-layer1 from repository cms-l1t-offline
jimbrooke Mar 2, 2016
796ed18
Fixed HF 1x1 tower handling
SridharaDasu Mar 3, 2016
824a18b
Merge branch 'dasu-updates-for-layer1' of github.com:cms-l1t-offline/…
jimbrooke Mar 3, 2016
e802917
Merge branch 'integration' into dasu-updates-for-layer1
mulhearn Mar 3, 2016
051d6ea
Merge branch 'dasu-updates-for-layer1' into integration
mulhearn Mar 3, 2016
94bf0a3
fix crash in GtBoard when exit before 1 event processed
mulhearn Mar 3, 2016
92994bb
fix integration test code
mulhearn Mar 3, 2016
7b7eb8a
set towers in layer 1 output vector, instead of push back
jimbrooke Mar 3, 2016
5834e9e
fix quality, now based on hit pattern
konec Mar 3, 2016
57b2eeb
Merged l1t-tsg-v3 from repository cms-l1t-offline
thomreis Mar 4, 2016
0ab3839
Merge pull request #181 from konec/omtfdev_mk3
akalinow Mar 4, 2016
0a68960
actually apply the change
jimbrooke Mar 4, 2016
fc102ef
Merged l1t-muon-quality-CMSSW_8_0_0_pre6 from repository cms-l1t-offline
Mar 4, 2016
9b793ea
Merge branch 'l1t-calospeedup-CMSSW_8_0_0_pre6' of https://github.com…
mulhearn Mar 4, 2016
d49afd8
Merge branch 'jimbrooke-l1t-calospeedup-CMSSW_8_0_0_pre6' into integr…
mulhearn Mar 4, 2016
bc2487e
extend Calo objects to include intermediate values from emulation
mulhearn Mar 3, 2016
c7b80a8
improvements to integration testing to check L1T global output, unpac…
mulhearn Mar 4, 2016
9aa18f1
4bit Quality v2
Mar 4, 2016
b480ca7
Masking
Mar 4, 2016
0f0ea88
Fix for GT muon unpacking
blwiner Mar 1, 2016
b4f2da1
bugfix integration test
mulhearn Mar 4, 2016
5b467c1
switch on Calo Layer1 bitwise emulate by default
mulhearn Mar 4, 2016
6212904
Revert "switch on Calo Layer1 bitwise emulate by default"
mulhearn Mar 4, 2016
3ea6905
Add TF muon index variable to upgrade muon ntuple
thomreis Feb 23, 2016
13b9f0b
add support for convenient command-line driven config files, while st…
mulhearn Mar 5, 2016
5fd0db4
Merged l1t-muon-quality-CMSSW_8_0_0_pre6 from repository cms-l1t-offline
mrcarver Mar 5, 2016
6bcde1c
Added Correct BX and quality assignment
mrcarver Mar 5, 2016
0923aaf
uGMT ntuple and config file
thomreis Mar 7, 2016
c9c540d
use TF emulator muons as input for the uGMT istead of the quality adj…
thomreis Mar 7, 2016
aaec590
output edm root file
thomreis Mar 7, 2016
2bfdc2f
Fixed lack of EMTF output muons
mrcarver Mar 7, 2016
1e76aba
Merge branch 'l1t-muon-quality-CMSSW_8_0_0_pre6' of github.com:cms-l1…
mrcarver Mar 7, 2016
0a8494d
Make Calo Jet/EGamma/Tau packing consistent with unpacking, wrt HW Eta
mulhearn Feb 18, 2016
01c3cc3
update to L1T integration tests adding bitwise comparison of Calo/Muo…
mulhearn Mar 7, 2016
598b588
Merged l1t-integration-v9.3 from repository cms-l1t-offline
rekovic Mar 7, 2016
06b320e
add menu summary comparison to integration test, until full GT is add…
mulhearn Mar 7, 2016
8b0dea3
Merged l1t-tsg-v3 from repository cms-l1t-offline
mulhearn Mar 7, 2016
a4e5a5a
backport integration tests to l1t-tsg-v3
mulhearn Mar 7, 2016
012bc2d
Merged cp-backport-integration-tests from repository cms-l1t-offline
mulhearn Mar 7, 2016
82f7cd7
Updated BX assignment to reflect using second earliest LCT
mrcarver Mar 8, 2016
8ddd9af
Merged l1t-integration-v9.4 from repository cms-l1t-offline
rekovic Mar 8, 2016
0bebaa9
Added Correct BX and quality assignment
mrcarver Mar 5, 2016
13b53b2
Fixed lack of EMTF output muons
mrcarver Mar 7, 2016
223eb49
Updated BX assignment to reflect using second earliest LCT
mrcarver Mar 8, 2016
fdaf95b
fix for ugmt ntuple. correct tower sum input for ugmt
thomreis Mar 9, 2016
f8bf1b6
Merge branch 'l1t-muon-quality-CMSSW_8_0_0_pre6' of github.com:cms-l1…
mrcarver Mar 9, 2016
ef30b27
Fixed quality assignment that got messed up somehow
mrcarver Mar 9, 2016
0045f64
Removed inzone requirement from phi matching function to reflect FW
mrcarver Mar 9, 2016
998bb12
add comparisons for sim sequence
mulhearn Mar 10, 2016
2e15d85
Fixed LUT usage?
SridharaDasu Mar 9, 2016
6f0c820
turn off test failing due to missing file
mulhearn Mar 10, 2016
c93f8db
turn on layer-1
mulhearn Mar 10, 2016
3912f74
Revert "turn on layer-1"
mulhearn Mar 10, 2016
946cb2d
Merge remote-tracking branch 'remotes/cms-l1t-offline/l1t-integration…
rekovic Mar 10, 2016
ce4b461
Revert "fix for ugmt ntuple. correct tower sum input for ugmt"
rekovic Mar 10, 2016
e2e689e
Revert "output edm root file"
rekovic Mar 10, 2016
dcd8103
Revert "uGMT ntuple and config file"
rekovic Mar 10, 2016
a16b534
Use the Trigger Tower Sums
rekovic Mar 10, 2016
db8dbb1
Merge branch 'l1t-muon-quality-CMSSW_8_0_0_pre6' into l1t-integration…
rekovic Mar 10, 2016
cbf413c
Updated stage2 tau compression, calibration and isolation LUTs, updat…
davignon Mar 8, 2016
7a74166
Updated stage2 tau compression, calibration and isolation LUTs, updat…
davignon Mar 10, 2016
79d8201
udpates tests to add discrepant plots and distinguish forward-jet-onl…
mulhearn Mar 11, 2016
6f70dc7
Merged l1t-dev-l1t-tsg-v3-801 from repository cms-l1t-offline
mulhearn Mar 11, 2016
86914a2
Merge branch 'integration' into l1t-integration-CMSSW_8_0_0_pre6
mulhearn Mar 11, 2016
d9e9ed8
Merge branch 'l1t-integration-CMSSW_8_0_0_pre6' into integration
mulhearn Mar 11, 2016
b3ba959
bring back diff plots
mulhearn Mar 11, 2016
5eee1cd
turn on layer1 by default
mulhearn Mar 11, 2016
f2a9d1d
Revert "turn on layer1 by default"
mulhearn Mar 11, 2016
ce61c82
Changed hcal scale
gomber Mar 11, 2016
bab44b7
turn on layer1 by default
mulhearn Mar 11, 2016
98a8692
Revert "turn on layer1 by default"
mulhearn Mar 11, 2016
e2eebe6
Merged l1t-tsg-v4 from repository cms-l1t-offline
mulhearn Mar 18, 2016
06cccfd
purge data area of files put into cms-data
mulhearn Mar 18, 2016
cc419ff
remove PDF files form L1TRawToDigi
mulhearn Mar 18, 2016
563341a
cleanup unneeded dummy change to L1TGlobal
mulhearn Mar 18, 2016
d29872b
remove root file
mulhearn Mar 18, 2016
84f5939
Merged refs/pull/13767/head from repository cms-sw
mulhearn Mar 18, 2016
42c6cb9
Merged pr-l1t-tsg-v4-81x from repository cms-l1t-offline
nsmith- Mar 23, 2016
597d6e2
L1TCaloLayer1 move to MessageLogger
nsmith- Mar 23, 2016
9deec31
Move L1TCaloLayer1 constants to anonymous namespace + constexpr
nsmith- Mar 23, 2016
da38130
Add reserves for some std::vectors, std::abs
nsmith- Mar 23, 2016
135fb74
Move statics to class member variable
nsmith- Mar 23, 2016
252e7a1
Move all L1TCaloLayer1 constants to namespace
nsmith- Mar 29, 2016
0b8a8dd
Merge branch 'nsmith-layer1-style-81X' into pr-l1t-tsg-v4-81x
mulhearn Mar 30, 2016
22d781a
remove self reference in library BuildFile
mulhearn Mar 30, 2016
e5f40ef
first step in migration from static variables in OMTF configuration
mulhearn Mar 30, 2016
2df598b
complete migration from static variable in OMTF configuration
mulhearn Mar 31, 2016
e19f34a
make static config member variable const in BMTF config
mulhearn Mar 31, 2016
65b0bdd
only consume things we are actually going to eat
mulhearn Mar 31, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
52 changes: 26 additions & 26 deletions CondFormats/L1TObjects/interface/L1TMuonOverlapParams.h
Expand Up @@ -109,35 +109,35 @@ class L1TMuonOverlapParams {
void setFwVersion(unsigned fwVersion) { fwVersion_ = fwVersion; }

///General definitions
std::vector<int>* generalParams() { return &pnodes_[GENERAL].iparams_; }
const std::vector<int>* generalParams() const { return &pnodes_[GENERAL].iparams_; }
void setGeneralParams (const std::vector<int> & paramsVec) { pnodes_[GENERAL].type_ = "INT"; pnodes_[GENERAL].iparams_ = paramsVec;}

///Access to specific general settings.
int nPdfAddrBits() { return pnodes_[GENERAL].iparams_[GENERAL_ADDRBITS];};
int nPdfAddrBits() const { return pnodes_[GENERAL].iparams_[GENERAL_ADDRBITS];};

int nPdfValBits() { return pnodes_[GENERAL].iparams_[GENERAL_VALBITS];};
int nPdfValBits() const { return pnodes_[GENERAL].iparams_[GENERAL_VALBITS];};

int nHitsPerLayer() { return pnodes_[GENERAL].iparams_[GENERAL_HITSPERLAYER];};
int nHitsPerLayer() const { return pnodes_[GENERAL].iparams_[GENERAL_HITSPERLAYER];};

int nPhiBits() { return pnodes_[GENERAL].iparams_[GENERAL_PHIBITS];};
int nPhiBits() const { return pnodes_[GENERAL].iparams_[GENERAL_PHIBITS];};

int nPhiBins() { return pnodes_[GENERAL].iparams_[GENERAL_PHIBINS];};
int nPhiBins() const { return pnodes_[GENERAL].iparams_[GENERAL_PHIBINS];};

int nRefHits() { return pnodes_[GENERAL].iparams_[GENERAL_NREFHITS];};
int nRefHits() const { return pnodes_[GENERAL].iparams_[GENERAL_NREFHITS];};

int nTestRefHits() { return pnodes_[GENERAL].iparams_[GENERAL_NTESTREFHITS];};
int nTestRefHits() const { return pnodes_[GENERAL].iparams_[GENERAL_NTESTREFHITS];};

int nProcessors() { return pnodes_[GENERAL].iparams_[GENERAL_NPROCESSORS];};
int nProcessors() const { return pnodes_[GENERAL].iparams_[GENERAL_NPROCESSORS];};

int nLogicRegions() { return pnodes_[GENERAL].iparams_[GENERAL_NLOGIC_REGIONS];};
int nLogicRegions() const { return pnodes_[GENERAL].iparams_[GENERAL_NLOGIC_REGIONS];};

int nInputs() { return pnodes_[GENERAL].iparams_[GENERAL_NINPUTS];};
int nInputs() const { return pnodes_[GENERAL].iparams_[GENERAL_NINPUTS];};

int nLayers() { return pnodes_[GENERAL].iparams_[GENERAL_NLAYERS];};
int nLayers() const { return pnodes_[GENERAL].iparams_[GENERAL_NLAYERS];};

int nRefLayers() { return pnodes_[GENERAL].iparams_[GENERAL_NREFLAYERS];};
int nRefLayers() const { return pnodes_[GENERAL].iparams_[GENERAL_NREFLAYERS];};

int nGoldenPatterns() { return pnodes_[GENERAL].iparams_[GENERAL_NGOLDENPATTERNS];};
int nGoldenPatterns() const { return pnodes_[GENERAL].iparams_[GENERAL_NGOLDENPATTERNS];};

///Connections definitions
void setLayerMap(const std::vector<LayerMapNode> &aVector) { layerMap_ = aVector;}
Expand All @@ -154,27 +154,27 @@ class L1TMuonOverlapParams {

void setConnectedSectorsEnd(const std::vector<int> &aVector){pnodes_[SECTORS_END].type_ = "INT"; pnodes_[SECTORS_END].iparams_ = aVector;};

std::vector<LayerMapNode> * layerMap() { return &layerMap_;};
const std::vector<LayerMapNode> * layerMap() const { return &layerMap_;};

std::vector<RefLayerMapNode> * refLayerMap() { return &refLayerMap_;};
const std::vector<RefLayerMapNode> * refLayerMap() const { return &refLayerMap_;};

std::vector<RefHitNode> * refHitMap() {return &refHitMap_;};
const std::vector<RefHitNode> * refHitMap() const {return &refHitMap_;};

std::vector<int> * globalPhiStartMap() { return &globalPhiStart_;};
const std::vector<int> * globalPhiStartMap() const { return &globalPhiStart_;};

std::vector<LayerInputNode> * layerInputMap() { return &layerInputMap_;};
const std::vector<LayerInputNode> * layerInputMap() const { return &layerInputMap_;};

std::vector<int> * connectedSectorsStart() { return &pnodes_[SECTORS_START].iparams_;};
const std::vector<int> * connectedSectorsStart() const { return &pnodes_[SECTORS_START].iparams_;};

std::vector<int> * connectedSectorsEnd() { return &pnodes_[SECTORS_END].iparams_;};
const std::vector<int> * connectedSectorsEnd() const { return &pnodes_[SECTORS_END].iparams_;};


///Golden Patterns definitions
l1t::LUT* chargeLUT() { return &pnodes_[CHARGE].LUT_; }
l1t::LUT* etaLUT() { return &pnodes_[ETA].LUT_; }
l1t::LUT* ptLUT() { return &pnodes_[PT].LUT_; }
l1t::LUT* pdfLUT() { return &pnodes_[PDF].LUT_; }
l1t::LUT* meanDistPhiLUT() { return &pnodes_[MEANDISTPHI].LUT_; }
const l1t::LUT* chargeLUT() const { return &pnodes_[CHARGE].LUT_; }
const l1t::LUT* etaLUT() const { return &pnodes_[ETA].LUT_; }
const l1t::LUT* ptLUT() const { return &pnodes_[PT].LUT_; }
const l1t::LUT* pdfLUT() const { return &pnodes_[PDF].LUT_; }
const l1t::LUT* meanDistPhiLUT() const { return &pnodes_[MEANDISTPHI].LUT_; }

void setChargeLUT (const l1t::LUT & lut) { pnodes_[CHARGE].type_ = "LUT"; pnodes_[CHARGE].LUT_ = lut; }
void setEtaLUT (const l1t::LUT & lut) { pnodes_[ETA].type_ = "LUT"; pnodes_[ETA].LUT_ = lut; }
Expand Down
14 changes: 10 additions & 4 deletions DataFormats/L1TMuon/interface/EMTF/AMC13Header.h
Expand Up @@ -15,12 +15,15 @@ namespace l1t {

// Empty constructor
AMC13Header() :
orn(-99), lv1_id(-99), bx_id(-99), source_id(-99), evt_ty(-99), fov(-99), ufov(-99), res(-99), namc(-99), h(-99), x(-99), dataword(-99)
orn(-99), lv1_id(-99), bx_id(-99), source_id(-99), evt_ty(-99), fov(-99), ufov(-99),
res(-99), namc(-99), h(-99), x(-99), format_errors(0), dataword(-99)
{};

// Fill constructor
AMC13Header(int int_orn, int int_lv1_id, int int_bx_id, int int_source_id, int int_evt_ty, int int_fov, int int_ufov, int int_res, int int_namc, int int_h, int int_x) :
orn(int_orn), lv1_id(int_lv1_id), bx_id(int_bx_id), source_id(int_source_id), evt_ty(int_evt_ty), fov(int_fov), ufov(int_ufov), res(int_res), namc(int_namc), h(int_h), x(int_x), dataword(-99)
AMC13Header(int int_orn, int int_lv1_id, int int_bx_id, int int_source_id, int int_evt_ty, int int_fov, int int_ufov,
int int_res, int int_namc, int int_h, int int_x) :
orn(int_orn), lv1_id(int_lv1_id), bx_id(int_bx_id), source_id(int_source_id), evt_ty(int_evt_ty), fov(int_fov), ufov(int_ufov),
res(int_res), namc(int_namc), h(int_h), x(int_x), format_errors(0), dataword(-99)
{};

virtual ~AMC13Header() {};
Expand All @@ -36,6 +39,7 @@ namespace l1t {
void set_namc(int bits) { namc = bits; };
void set_h(int bits) { h = bits; };
void set_x(int bits) { x = bits; };
void add_format_error() { format_errors += 1; };
void set_dataword(uint64_t bits) { dataword = bits; };

const int ORN() const { return orn ; };
Expand All @@ -49,7 +53,8 @@ namespace l1t {
const int Namc() const { return namc ; };
const int H() const { return h ; };
const int X() const { return x ; };
const uint64_t Dataword() const { return dataword; };
const int Format_Errors() const { return format_errors; };
const uint64_t Dataword() const { return dataword; };

private:
int orn;
Expand All @@ -63,6 +68,7 @@ namespace l1t {
int namc;
int h;
int x;
int format_errors;
uint64_t dataword;

}; // End class AMC13Header
Expand Down
7 changes: 5 additions & 2 deletions DataFormats/L1TMuon/interface/EMTF/AMC13Trailer.h
Expand Up @@ -15,12 +15,12 @@ namespace l1t {

// Empty constructor
AMC13Trailer() :
evt_lgth(-99), crc16(-99), evt_stat(-99), tts(-99), c(-99), f(-99), t(-99), r(-99), dataword(-99)
evt_lgth(-99), crc16(-99), evt_stat(-99), tts(-99), c(-99), f(-99), t(-99), r(-99), format_errors(0), dataword(-99)
{};

// Fill constructor
AMC13Trailer(int int_evt_lgth, int int_crc16, int int_evt_stat, int int_tts, int int_c, int int_f, int int_t, int int_r) :
evt_lgth(int_evt_lgth), crc16(int_crc16), evt_stat(int_evt_stat), tts(int_tts), c(int_c), f(int_f), t(int_t), r(int_r), dataword(-99)
evt_lgth(int_evt_lgth), crc16(int_crc16), evt_stat(int_evt_stat), tts(int_tts), c(int_c), f(int_f), t(int_t), r(int_r), format_errors(0), dataword(-99)
{};

virtual ~AMC13Trailer() {};
Expand All @@ -33,6 +33,7 @@ namespace l1t {
void set_f(int bits) { f = bits; };
void set_t(int bits) { t = bits; };
void set_r(int bits) { r = bits; };
void add_format_error() { format_errors += 1; };
void set_dataword(uint64_t bits) { dataword = bits; };

const int Evt_lgth() const { return evt_lgth ; };
Expand All @@ -43,6 +44,7 @@ namespace l1t {
const int F() const { return f ; };
const int T() const { return t ; };
const int R() const { return r ; };
const int Format_Errors() const { return format_errors; };
const uint64_t Dataword() const { return dataword; };

private:
Expand All @@ -54,6 +56,7 @@ namespace l1t {
int f;
int t;
int r;
int format_errors;
uint64_t dataword;

}; // End class AMC13Trailer
Expand Down
7 changes: 5 additions & 2 deletions DataFormats/L1TMuon/interface/EMTF/Counters.h
Expand Up @@ -14,29 +14,32 @@ namespace l1t {

// rpc_counter not yet implemented in FW - AWB 31.01.16
Counters() :
track_counter(-99), orbit_counter(-99), rpc_counter(-99), dataword(-99)
track_counter(-99), orbit_counter(-99), rpc_counter(-99), format_errors(0), dataword(-99)
{};

Counters(int int_track_counter, int int_orbit_counter, int int_rpc_counter) :
track_counter(int_track_counter), orbit_counter(int_orbit_counter), rpc_counter(int_rpc_counter), dataword(-99)
track_counter(int_track_counter), orbit_counter(int_orbit_counter), rpc_counter(int_rpc_counter), format_errors(0), dataword(-99)
{};

virtual ~Counters() {};

void set_track_counter(int bits) { track_counter = bits; };
void set_orbit_counter(int bits) { orbit_counter = bits; };
void set_rpc_counter(int bits) { rpc_counter = bits; };
void add_format_error() { format_errors += 1; };
void set_dataword(uint64_t bits) { dataword = bits; };

const int Track_counter() const { return track_counter; };
const int Orbit_counter() const { return orbit_counter; };
const int RPC_counter() const { return rpc_counter; };
const int Format_Errors() const { return format_errors; };
const uint64_t Dataword() const { return dataword; };

private:
int track_counter;
int orbit_counter;
int rpc_counter;
int format_errors;
uint64_t dataword;

}; // End of class Counters
Expand Down
21 changes: 18 additions & 3 deletions DataFormats/L1TMuon/interface/EMTF/EventHeader.h
Expand Up @@ -13,18 +13,26 @@ namespace l1t {
explicit EventHeader(uint64_t dataword);

EventHeader() :
l1a(-99), l1a_bxn(-99), sp_ts(-99), sp_ersv(-99), sp_addr(-99), tbin(-99), ddm(-99), spa(-99), rpca(-99), skip(-99), rdy(-99), bsy(-99), osy(-99), wof(-99), me1a(-99), me1b(-99), me2(-99), me3(-99), me4(-99), dataword(-99)
l1a(-99), l1a_bxn(-99), sp_ts(-99), endcap(-99), sector(-99), sp_ersv(-99), sp_addr(-99),
tbin(-99), ddm(-99), spa(-99), rpca(-99), skip(-99), rdy(-99), bsy(-99), osy(-99),
wof(-99), me1a(-99), me1b(-99), me2(-99), me3(-99), me4(-99), format_errors(0), dataword(-99)
{};

EventHeader(int int_l1a, int int_l1a_bxn, int int_sp_ts, int int_sp_ersv, int int_sp_addr, int int_tbin, int int_ddm, int int_spa, int int_rpca, int int_skip, int int_rdy, int int_bsy, int int_osy, int int_wof, int int_me1a, int int_me1b, int int_me2, int int_me3, int int_me4) :
l1a(int_l1a), l1a_bxn(int_l1a_bxn), sp_ts(int_sp_ts), sp_ersv(int_sp_ersv), sp_addr(int_sp_addr), tbin(int_tbin), ddm(int_ddm), spa(int_spa), rpca(int_rpca), skip(int_skip), rdy(int_rdy), bsy(int_bsy), osy(int_osy), wof(int_wof), me1a(int_me1a), me1b(int_me1b), me2(int_me2), me3(int_me3), me4(int_me4), dataword(-99)
EventHeader(int int_l1a, int int_l1a_bxn, int int_sp_ts, int int_endcap, int int_sector, int int_sp_ersv, int int_sp_addr,
int int_tbin, int int_ddm, int int_spa, int int_rpca, int int_skip, int int_rdy, int int_bsy, int int_osy,
int int_wof, int int_me1a, int int_me1b, int int_me2, int int_me3, int int_me4) :
l1a(int_l1a), l1a_bxn(int_l1a_bxn), sp_ts(int_sp_ts), endcap(int_endcap), sector(int_sector), sp_ersv(int_sp_ersv), sp_addr(int_sp_addr),
tbin(int_tbin), ddm(int_ddm), spa(int_spa), rpca(int_rpca), skip(int_skip), rdy(int_rdy), bsy(int_bsy), osy(int_osy),
wof(int_wof), me1a(int_me1a), me1b(int_me1b), me2(int_me2), me3(int_me3), me4(int_me4), format_errors(0), dataword(-99)
{};

virtual ~EventHeader() {};

void set_l1a(int bits) { l1a = bits; };
void set_l1a_bxn(int bits) { l1a_bxn = bits; };
void set_sp_ts(int bits) { sp_ts = bits; };
void set_endcap(int bits) { endcap = bits; };
void set_sector(int bits) { sector = bits; };
void set_sp_ersv(int bits) { sp_ersv = bits; };
void set_sp_addr(int bits) { sp_addr = bits; };
void set_tbin(int bits) { tbin = bits; };
Expand All @@ -41,11 +49,14 @@ namespace l1t {
void set_me2(int bits) { me2 = bits; };
void set_me3(int bits) { me3 = bits; };
void set_me4(int bits) { me4 = bits; };
void add_format_error() { format_errors += 1; };
void set_dataword(uint64_t bits) { dataword = bits; };

const int L1A() const { return l1a ; };
const int L1A_BXN() const { return l1a_bxn ; };
const int SP_ts() const { return sp_ts ; };
const int Endcap() const { return endcap ; };
const int Sector() const { return sector ; };
const int SP_ersv() const { return sp_ersv ; };
const int SP_addr() const { return sp_addr ; };
const int Tbin() const { return tbin ; };
Expand All @@ -62,12 +73,15 @@ namespace l1t {
const int ME2() const { return me2 ; };
const int ME3() const { return me3 ; };
const int ME4() const { return me4 ; };
const int Format_Errors() const { return format_errors; };
const uint64_t Dataword() const { return dataword; };

private:
int l1a;
int l1a_bxn;
int sp_ts;
int endcap;
int sector;
int sp_ersv;
int sp_addr;
int tbin;
Expand All @@ -84,6 +98,7 @@ namespace l1t {
int me2;
int me3;
int me4;
int format_errors;
uint64_t dataword;

}; // End of class EventHeader
Expand Down
18 changes: 15 additions & 3 deletions DataFormats/L1TMuon/interface/EMTF/EventTrailer.h
Expand Up @@ -13,16 +13,21 @@ namespace l1t {
explicit EventTrailer(uint64_t dataword);

EventTrailer() :
crc22(-99), ddcsr_bid(-99), ddcsr_lf(-99), spcsr_scc(-99), l1a(-99), yy(-99), mm(-99), dd(-99), sp_ladr(-99), sp_ersv(-99), sp_padr(-99), lfff(-99), bb(-99), dataword(-99)
crc22(-99), lp(-99), hp(-99), ddcsr_bid(-99), ddcsr_lf(-99), spcsr_scc(-99), l1a(-99), yy(-99),
mm(-99), dd(-99), sp_ladr(-99), sp_ersv(-99), sp_padr(-99), lfff(-99), bb(-99), format_errors(0), dataword(-99)
{};

EventTrailer(int int_crc22, int int_ddcsr_bid, int int_ddcsr_lf, int int_spcsr_scc, int int_l1a, int int_yy, int int_mm, int int_dd, int int_sp_ladr, int int_sp_ersv, int int_sp_padr, int int_lfff, int int_bb) :
crc22(int_crc22), ddcsr_bid(int_ddcsr_bid), ddcsr_lf(int_ddcsr_lf), spcsr_scc(int_spcsr_scc), l1a(int_l1a), yy(int_yy), mm(int_mm), dd(int_dd), sp_ladr(int_sp_ladr), sp_ersv(int_sp_ersv), sp_padr(int_sp_padr), lfff(int_lfff), bb(int_bb), dataword(-99)
EventTrailer(int int_crc22, int int_lp, int int_hp, int int_ddcsr_bid, int int_ddcsr_lf, int int_spcsr_scc, int int_l1a, int int_yy,
int int_mm, int int_dd, int int_sp_ladr, int int_sp_ersv, int int_sp_padr, int int_lfff, int int_bb) :
crc22(int_crc22), lp(int_lp), hp(int_hp), ddcsr_bid(int_ddcsr_bid), ddcsr_lf(int_ddcsr_lf), spcsr_scc(int_spcsr_scc), l1a(int_l1a), yy(int_yy),
mm(int_mm), dd(int_dd), sp_ladr(int_sp_ladr), sp_ersv(int_sp_ersv), sp_padr(int_sp_padr), lfff(int_lfff), bb(int_bb), format_errors(0), dataword(-99)
{};

virtual ~EventTrailer() {};

void set_crc22(int bits) { crc22 = bits; };
void set_lp(int bits) { lp = bits; };
void set_hp(int bits) { hp = bits; };
void set_ddcsr_bid(int bits) { ddcsr_bid = bits; };
void set_ddcsr_lf(int bits) { ddcsr_lf = bits; };
void set_spcsr_scc(int bits) { spcsr_scc = bits; };
Expand All @@ -35,9 +40,12 @@ namespace l1t {
void set_sp_padr(int bits) { sp_padr = bits; };
void set_lfff(int bits) { lfff = bits; };
void set_bb(int bits) { bb = bits; };
void add_format_error() { format_errors += 1; };
void set_dataword(uint64_t bits) { dataword = bits; };

const int CRC22() const { return crc22 ; };
const int LP() const { return lp ; };
const int HP() const { return hp ; };
const int DDCRC_bid() const { return ddcsr_bid ; };
const int DDCRC_lf() const { return ddcsr_lf ; };
const int SPCSR_scc() const { return spcsr_scc ; };
Expand All @@ -50,10 +58,13 @@ namespace l1t {
const int SP_padr() const { return sp_padr ; };
const int LFFF() const { return lfff ; };
const int BB() const { return bb ; };
const int Format_Errors() const { return format_errors; };
const uint64_t Dataword() const { return dataword; };

private:
int crc22;
int lp;
int hp;
int ddcsr_bid;
int ddcsr_lf;
int spcsr_scc;
Expand All @@ -66,6 +77,7 @@ namespace l1t {
int sp_padr;
int lfff;
int bb;
int format_errors;
uint64_t dataword;

}; // End of class EventTrailer
Expand Down