CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1TMuonBarrelTrackProducer Class Reference
Inheritance diagram for L1TMuonBarrelTrackProducer:
edm::stream::EDProducer<>

Public Member Functions

 L1TMuonBarrelTrackProducer (const edm::ParameterSet &pset)
 Constructor. More...
 
void produce (edm::Event &e, const edm::EventSetup &c) override
 Produce digis out of raw data. More...
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Private Attributes

L1MuBMTrackFinder dtbx_
 
edm::EDPutTokenT< l1t::RegionalMuonCandBxCollectionregionToken_
 
edm::EDPutTokenT< vector< L1MuBMTrackSegEta > > segEtaToken_
 
edm::EDPutTokenT< vector< L1MuBMTrackSegPhi > > segPhiToken_
 
edm::EDPutTokenT< vector< L1MuBMTrack > > trackToken_
 
edm::EDPutTokenT< l1t::RegionalMuonCandBxCollectionunsortRegionToken_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Definition at line 33 of file L1TMuonBarrelTrackProducer.cc.

Constructor & Destructor Documentation

◆ L1TMuonBarrelTrackProducer()

L1TMuonBarrelTrackProducer::L1TMuonBarrelTrackProducer ( const edm::ParameterSet pset)

Constructor.

Definition at line 53 of file L1TMuonBarrelTrackProducer.cc.

References L1MuBMTrackFinder::clear(), dtbx_, regionToken_, segEtaToken_, segPhiToken_, trackToken_, and unsortRegionToken_.

54  : dtbx_(pset, consumesCollector()) {
55  regionToken_ = produces<l1t::RegionalMuonCandBxCollection>("BMTF");
56  unsortRegionToken_ = produces<l1t::RegionalMuonCandBxCollection>("UnsortedBMTF");
57  trackToken_ = produces<vector<L1MuBMTrack>>("BMTF");
58  segPhiToken_ = produces<vector<L1MuBMTrackSegPhi>>("BMTF");
59  segEtaToken_ = produces<vector<L1MuBMTrackSegEta>>("BMTF");
60  //without clearing before the first call things fail
61  dtbx_.clear();
62 }
edm::EDPutTokenT< l1t::RegionalMuonCandBxCollection > unsortRegionToken_
edm::EDPutTokenT< vector< L1MuBMTrackSegPhi > > segPhiToken_
edm::EDPutTokenT< vector< L1MuBMTrackSegEta > > segEtaToken_
edm::EDPutTokenT< vector< L1MuBMTrack > > trackToken_
edm::EDPutTokenT< l1t::RegionalMuonCandBxCollection > regionToken_

Member Function Documentation

◆ produce()

void L1TMuonBarrelTrackProducer::produce ( edm::Event e,
const edm::EventSetup c 
)
override

Produce digis out of raw data.

Muons before muon sorter

Muons after muon sorter, for uGMT

Definition at line 64 of file L1TMuonBarrelTrackProducer.cc.

References DummyCfis::c, L1MuBMTrackFinder::clear(), L1MuBMTrackFinder::config(), gather_cfg::cout, L1MuBMTFConfig::Debug(), dtbx_, MillePedeFileConverter_cfg::e, L1MuBMTrackFinder::getcache(), L1MuBMTrackFinder::getcache0(), L1MuBMTrackFinder::getcache1(), L1MuBMTrackFinder::getcache2(), L1MuBMTrackFinder::getcache3(), eostools::move(), L1MuBMTrackFinder::numberOfTracks(), regionToken_, L1MuBMTrackFinder::run(), segEtaToken_, segPhiToken_, trackToken_, and unsortRegionToken_.

64  {
65  if (dtbx_.config().Debug(1))
66  cout << endl;
67  if (dtbx_.config().Debug(1))
68  cout << "**** L1MuonBMTFTrigger processing event ****" << endl;
69 
70  dtbx_.run(e, c);
71 
72  int ndt = dtbx_.numberOfTracks();
73  if (dtbx_.config().Debug(1))
74  cout << "Number of muons found by the L1 BBMX TRIGGER : " << ndt << endl;
75 
77  auto tra_product = dtbx_.getcache0();
78 
80  auto vec_product = dtbx_.getcache();
81 
82  auto vec_L1MuBMTrack = dtbx_.getcache1();
83  auto vec_L1MuBMTrackSegPhi = dtbx_.getcache2();
84  auto vec_L1MuBMTrackSegEta = dtbx_.getcache3();
85 
86  //for (int ibx = BMTracks.getFirstBX(); ibx <= BMTracks.getLastBX(); ibx++){
87  //cout << "DEBUG: BMTF size at bx " << ibx << " " << BMTracks.size(ibx) << "\n";
88  //}
89  e.emplace(unsortRegionToken_, std::move(tra_product));
90  e.emplace(regionToken_, std::move(vec_product));
91  e.emplace(trackToken_, std::move(vec_L1MuBMTrack));
92  e.emplace(segPhiToken_, std::move(vec_L1MuBMTrackSegPhi));
93  e.emplace(segEtaToken_, std::move(vec_L1MuBMTrackSegEta));
94 
95  dtbx_.clear();
96 }
L1MuBMTrackCollection & getcache1()
edm::EDPutTokenT< l1t::RegionalMuonCandBxCollection > unsortRegionToken_
edm::EDPutTokenT< vector< L1MuBMTrackSegPhi > > segPhiToken_
int numberOfTracks()
get number of muon candidates found by the barrel MTTF
L1MuBMTrackSegPhiCollection & getcache2()
edm::EDPutTokenT< vector< L1MuBMTrackSegEta > > segEtaToken_
void run(const edm::Event &e, const edm::EventSetup &c)
run the barrel MTTF
const L1MuBMTFConfig & config() const
return configuration
bool Debug() const
L1MuBMTrackSegEtaCollection & getcache3()
edm::EDPutTokenT< vector< L1MuBMTrack > > trackToken_
l1t::RegionalMuonCandBxCollection & getcache()
l1t::RegionalMuonCandBxCollection & getcache0()
def move(src, dest)
Definition: eostools.py:511
edm::EDPutTokenT< l1t::RegionalMuonCandBxCollection > regionToken_

Member Data Documentation

◆ dtbx_

L1MuBMTrackFinder L1TMuonBarrelTrackProducer::dtbx_
private

Definition at line 42 of file L1TMuonBarrelTrackProducer.cc.

Referenced by L1TMuonBarrelTrackProducer(), and produce().

◆ regionToken_

edm::EDPutTokenT<l1t::RegionalMuonCandBxCollection> L1TMuonBarrelTrackProducer::regionToken_
private

Definition at line 44 of file L1TMuonBarrelTrackProducer.cc.

Referenced by L1TMuonBarrelTrackProducer(), and produce().

◆ segEtaToken_

edm::EDPutTokenT<vector<L1MuBMTrackSegEta> > L1TMuonBarrelTrackProducer::segEtaToken_
private

Definition at line 48 of file L1TMuonBarrelTrackProducer.cc.

Referenced by L1TMuonBarrelTrackProducer(), and produce().

◆ segPhiToken_

edm::EDPutTokenT<vector<L1MuBMTrackSegPhi> > L1TMuonBarrelTrackProducer::segPhiToken_
private

Definition at line 47 of file L1TMuonBarrelTrackProducer.cc.

Referenced by L1TMuonBarrelTrackProducer(), and produce().

◆ trackToken_

edm::EDPutTokenT<vector<L1MuBMTrack> > L1TMuonBarrelTrackProducer::trackToken_
private

Definition at line 46 of file L1TMuonBarrelTrackProducer.cc.

Referenced by L1TMuonBarrelTrackProducer(), and produce().

◆ unsortRegionToken_

edm::EDPutTokenT<l1t::RegionalMuonCandBxCollection> L1TMuonBarrelTrackProducer::unsortRegionToken_
private

Definition at line 45 of file L1TMuonBarrelTrackProducer.cc.

Referenced by L1TMuonBarrelTrackProducer(), and produce().