CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
L1TMuonBarrelKalmanTrackProducer Class Reference
Inheritance diagram for L1TMuonBarrelKalmanTrackProducer:
edm::stream::EDProducer<>

Public Member Functions

 L1TMuonBarrelKalmanTrackProducer (const edm::ParameterSet &)
 
 ~L1TMuonBarrelKalmanTrackProducer () override
 
- 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
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Member Functions

void beginStream (edm::StreamID) override
 
void endStream () override
 
void produce (edm::Event &, const edm::EventSetup &) override
 

Private Attributes

L1TMuonBarrelKalmanAlgoalgo_
 
std::vector< int > bx_
 
edm::EDGetTokenT< std::vector
< L1MuKBMTCombinedStub > > 
src_
 
L1TMuonBarrelKalmanTrackFindertrackFinder_
 

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 20 of file L1TMuonBarrelKalmanTrackProducer.cc.

Constructor & Destructor Documentation

L1TMuonBarrelKalmanTrackProducer::L1TMuonBarrelKalmanTrackProducer ( const edm::ParameterSet iConfig)
explicit

Definition at line 36 of file L1TMuonBarrelKalmanTrackProducer.cc.

37  : src_(consumes<std::vector<L1MuKBMTCombinedStub> >(iConfig.getParameter<edm::InputTag>("src"))),
38  bx_(iConfig.getParameter<std::vector<int> >("bx")),
39  algo_(new L1TMuonBarrelKalmanAlgo(iConfig.getParameter<edm::ParameterSet>("algoSettings"))),
40  trackFinder_(new L1TMuonBarrelKalmanTrackFinder(iConfig.getParameter<edm::ParameterSet>("trackFinderSettings"))) {
41  produces<L1MuKBMTrackBxCollection>();
42  produces<l1t::RegionalMuonCandBxCollection>("BMTF");
43 }
L1TMuonBarrelKalmanTrackFinder * trackFinder_
edm::EDGetTokenT< std::vector< L1MuKBMTCombinedStub > > src_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
L1TMuonBarrelKalmanTrackProducer::~L1TMuonBarrelKalmanTrackProducer ( )
override

Definition at line 45 of file L1TMuonBarrelKalmanTrackProducer.cc.

References algo_, and trackFinder_.

45  {
46  if (algo_ != nullptr)
47  delete algo_;
48 
49  if (trackFinder_ != nullptr)
50  delete trackFinder_;
51 
52  // do anything here that needs to be done at destruction time
53  // (e.g. close files, deallocate resources etc.)
54 }
L1TMuonBarrelKalmanTrackFinder * trackFinder_

Member Function Documentation

void L1TMuonBarrelKalmanTrackProducer::beginStream ( edm::StreamID  )
overrideprivate

Definition at line 88 of file L1TMuonBarrelKalmanTrackProducer.cc.

88 {}
void L1TMuonBarrelKalmanTrackProducer::endStream ( )
overrideprivate

Definition at line 91 of file L1TMuonBarrelKalmanTrackProducer.cc.

91 {}
void L1TMuonBarrelKalmanTrackProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 93 of file L1TMuonBarrelKalmanTrackProducer.cc.

References edm::ConfigurationDescriptions::addDefault(), submitPVResolutionJobs::desc, and edm::ParameterSetDescription::setUnknown().

93  {
94  //The following says we do not know what parameters are allowed so do no validation
95  // Please change this to state exactly what you do use, even if it is no parameters
97  desc.setUnknown();
98  descriptions.addDefault(desc);
99 }
void addDefault(ParameterSetDescription const &psetDescription)
void L1TMuonBarrelKalmanTrackProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 61 of file L1TMuonBarrelKalmanTrackProducer.cc.

References L1TMuonBarrelKalmanAlgo::addBMTFMuon(), algo_, makePileupJSON::bx, bx_, edm::Event::getByToken(), mps_fire::i, eostools::move(), submitPVResolutionJobs::out, L1TMuonBarrelKalmanTrackFinder::process(), edm::Event::put(), alignCSCRings::r, src_, createJobs::tmp, HLT_FULL_cff::track, trackFinder_, and parallelization::uint().

61  {
62  using namespace edm;
64  iEvent.getByToken(src_, stubHandle);
65 
67  for (uint i = 0; i < stubHandle->size(); ++i) {
68  L1MuKBMTCombinedStubRef r(stubHandle, i);
69  stubs.push_back(r);
70  }
71 
72  std::unique_ptr<l1t::RegionalMuonCandBxCollection> outBMTF(new l1t::RegionalMuonCandBxCollection());
73  std::unique_ptr<L1MuKBMTrackBxCollection> out(new L1MuKBMTrackBxCollection());
74  outBMTF->setBXRange(bx_.front(), bx_.back());
75  out->setBXRange(bx_.front(), bx_.back());
76  for (const auto& bx : bx_) {
78  for (const auto& track : tmp) {
79  out->push_back(bx, track);
80  algo_->addBMTFMuon(bx, track, outBMTF);
81  }
82  }
83  iEvent.put(std::move(outBMTF), "BMTF");
84  iEvent.put(std::move(out));
85 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
L1MuKBMTrackCollection process(L1TMuonBarrelKalmanAlgo *, const L1MuKBMTCombinedStubRefVector &stubs, int bx)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:539
L1TMuonBarrelKalmanTrackFinder * trackFinder_
std::vector< edm::Ref< L1MuKBMTCombinedStubCollection > > L1MuKBMTCombinedStubRefVector
edm::EDGetTokenT< std::vector< L1MuKBMTCombinedStub > > src_
def move
Definition: eostools.py:511
BXVector< L1MuKBMTrack > L1MuKBMTrackBxCollection
Definition: L1MuKBMTrack.h:17
void addBMTFMuon(int, const L1MuKBMTrack &, std::unique_ptr< l1t::RegionalMuonCandBxCollection > &)
std::vector< L1MuKBMTrack > L1MuKBMTrackCollection
Definition: L1MuKBMTrack.h:15
tmp
align.sh
Definition: createJobs.py:716

Member Data Documentation

L1TMuonBarrelKalmanAlgo* L1TMuonBarrelKalmanTrackProducer::algo_
private
std::vector<int> L1TMuonBarrelKalmanTrackProducer::bx_
private

Definition at line 32 of file L1TMuonBarrelKalmanTrackProducer.cc.

Referenced by produce().

edm::EDGetTokenT<std::vector<L1MuKBMTCombinedStub> > L1TMuonBarrelKalmanTrackProducer::src_
private

Definition at line 31 of file L1TMuonBarrelKalmanTrackProducer.cc.

Referenced by produce().

L1TMuonBarrelKalmanTrackFinder* L1TMuonBarrelKalmanTrackProducer::trackFinder_
private