EmanuelPerez/cmssw — pull request #2 by slava77 (2014-05-29 17:42:10+00:00)
Title: L1MuonParticleExtended with its producer and L1TkMus made with it

Current version with details is mainly CSTFC-based. Basic implementation (without per-station details) works for all cases.
Presented in https://indico.cern.ch/event/320970/

can run this with the following added:
```
process.load("L1Trigger.L1ExtraFromDigis.l1extraMuExtended_cfi")
process.load("SLHCUpgradeSimulations.L1TrackTrigger.l1TkMuonsExt_cff")
# this is based on all GMTs available (BX=0 is hardcoded )
process.l1tkMusFromExtendedAllEta = cms.Path(process.l1extraMuExtended * process.l1TkMuonsExt )
# this is based on CSCTF record directly (no GMT sorting) and creates TkMus in |eta| > 1.1
process.l1tkMusFromExtendedForward = cms.Path(process.l1extraMuExtended * process.l1TkMuonsExtCSC )

process.output.outputCommands.append('keep *_l1extraMuExtended_*_*')
process.output.outputCommands.append('keep *_l1TkMuonsExt*_*_*')

```

with the config above and using files 1 and 2 from the SingleMu sample I was able to get some sensible data in fwlite
```
Events->Scan("l1extraL1TkMuonParticles_l1TkMuonsExt__Muo.obj.pt():l1extraL1TkMuonParticles_l1TkMuonsExt__Muo.obj.eta():l1extraL1TkMuonParticles_l1TkMuonsExt__Muo.obj.phi():l1extraL1TkMuonParticles_l1TkMuonsExt__Muo.obj.getMuExtendedRef().get().quality():l1extraL1TkMuonParticles_l1TkMuonsExt__Muo.obj.getMuExtendedRef().get().sigmaEta():l1extraL1TkMuonParticles_l1TkMuonsExt__Muo.obj.getMuExtendedRef().get().cscData(1).phi:l1extraL1TkMuonParticles_l1TkMuonsExt__Muo.obj.quality()")

***********************************************************************************************************
* Row * Instance * l1extraL1 * l1extraL1 * l1extraL1 * l1extraL1 * l1extraL1 * l1extraL1 * l1extraL1 *
***********************************************************************************************************
* 0 * 0 * 40.944236 * 2.2254393 * -1.532887 * 6 * 0.0144337 * -1.515527 * 6 *
* 1 * 0 * 8.2302656 * 2.2908017 * -0.565674 * 6 * 0.0144337 * -0.485783 * 6 *
* 1 * 1 * 4.8580880 * 2.2111852 * -0.497428 * 6 * 0.0144337 * -0.716554 * 6 *
* 2 * 0 * 27.187711 * 0.1788435 * -2.426229 * 7 * 0.0288675 * -99 * 7 *
* 3 * 0 * * * * * * * *
* 4 * 0 * 38.35495 * 0.7851876 * 1.6775841 * 7 * 0.0288675 * -99 * 7 *
* 5 * 0 * 2.2268390 * -2.329706 * 0.4953083 * 6 * 0.0144337 * -99 * 6 *
* 6 * 0 * 39.992569 * -1.204157 * 1.1598551 * 6 * 0.0288674 * 1.2194032 * 6 *
* 7 * 0 * 94.749687 * -1.455650 * 2.6641905 * 7 * 0.0288675 * 2.6854798 * 7 *
* 7 * 1 * 2.1450190 * -1.757436 * -2.923944 * 6 * 0.0144337 * -2.291229 * 6 *
* 8 * 0 * 52.680988 * -1.445546 * 1.9482523 * 6 * 0.0288675 * 1.9826939 * 6 *
* 9 * 0 * * * * * * * *
* 10 * 0 * 77.212608 * -1.207060 * 2.5326073 * 7 * 0.0288674 * 2.5633068 * 7 *
* 11 * 0 * 12.162325 * -2.286857 * 2.6636803 * 6 * 0.0144337 * 2.7236833 * 6 *

```