CMS 3D CMS Logo

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
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

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<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 

Detailed Description

Definition at line 20 of file L1TMuonBarrelKalmanTrackProducer.cc.

Constructor & Destructor Documentation

◆ L1TMuonBarrelKalmanTrackProducer()

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 }

◆ ~L1TMuonBarrelKalmanTrackProducer()

L1TMuonBarrelKalmanTrackProducer::~L1TMuonBarrelKalmanTrackProducer ( )
override

Definition at line 45 of file L1TMuonBarrelKalmanTrackProducer.cc.

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 }

References algo_, and trackFinder_.

Member Function Documentation

◆ beginStream()

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

Definition at line 88 of file L1TMuonBarrelKalmanTrackProducer.cc.

88 {}

◆ endStream()

void L1TMuonBarrelKalmanTrackProducer::endStream ( )
overrideprivate

Definition at line 91 of file L1TMuonBarrelKalmanTrackProducer.cc.

91 {}

◆ fillDescriptions()

void L1TMuonBarrelKalmanTrackProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 93 of file L1TMuonBarrelKalmanTrackProducer.cc.

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 }

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

◆ produce()

void L1TMuonBarrelKalmanTrackProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 61 of file L1TMuonBarrelKalmanTrackProducer.cc.

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 }

References L1TMuonBarrelKalmanAlgo::addBMTFMuon(), algo_, l1GtPatternGenerator_cfi::bx, bx_, mps_fire::i, iEvent, eostools::move(), MillePedeFileConverter_cfg::out, L1TMuonBarrelKalmanTrackFinder::process(), alignCSCRings::r, src_, createJobs::tmp, HLT_FULL_cff::track, trackFinder_, and parallelization::uint.

Member Data Documentation

◆ algo_

L1TMuonBarrelKalmanAlgo* L1TMuonBarrelKalmanTrackProducer::algo_
private

◆ bx_

std::vector<int> L1TMuonBarrelKalmanTrackProducer::bx_
private

Definition at line 32 of file L1TMuonBarrelKalmanTrackProducer.cc.

Referenced by produce().

◆ src_

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

Definition at line 31 of file L1TMuonBarrelKalmanTrackProducer.cc.

Referenced by produce().

◆ trackFinder_

L1TMuonBarrelKalmanTrackFinder* L1TMuonBarrelKalmanTrackProducer::trackFinder_
private
L1TMuonBarrelKalmanTrackFinder::process
L1MuKBMTrackCollection process(L1TMuonBarrelKalmanAlgo *, const L1MuKBMTCombinedStubRefVector &stubs, int bx)
Definition: L1TMuonBarrelKalmanTrackFinder.cc:13
L1TMuonBarrelKalmanTrackProducer::bx_
std::vector< int > bx_
Definition: L1TMuonBarrelKalmanTrackProducer.cc:32
mps_fire.i
i
Definition: mps_fire.py:428
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11779
L1TMuonBarrelKalmanTrackProducer::trackFinder_
L1TMuonBarrelKalmanTrackFinder * trackFinder_
Definition: L1TMuonBarrelKalmanTrackProducer.cc:34
L1TMuonBarrelKalmanTrackProducer::algo_
L1TMuonBarrelKalmanAlgo * algo_
Definition: L1TMuonBarrelKalmanTrackProducer.cc:33
L1TMuonBarrelKalmanTrackFinder
Definition: L1TMuonBarrelKalmanTrackFinder.h:10
edm
HLT enums.
Definition: AlignableModifier.h:19
L1MuKBMTrackCollection
std::vector< L1MuKBMTrack > L1MuKBMTrackCollection
Definition: L1MuKBMTrack.h:15
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
edm::Handle
Definition: AssociativeIterator.h:50
parallelization.uint
uint
Definition: parallelization.py:124
edm::Ref
Definition: AssociativeIterator.h:58
BXVector< RegionalMuonCand >
L1TMuonBarrelKalmanTrackProducer::src_
edm::EDGetTokenT< std::vector< L1MuKBMTCombinedStub > > src_
Definition: L1TMuonBarrelKalmanTrackProducer.cc:31
L1MuKBMTrackBxCollection
BXVector< L1MuKBMTrack > L1MuKBMTrackBxCollection
Definition: L1MuKBMTrack.h:17
edm::ParameterSet
Definition: ParameterSet.h:47
L1TMuonBarrelKalmanAlgo
Definition: L1TMuonBarrelKalmanAlgo.h:16
iEvent
int iEvent
Definition: GenABIO.cc:224
alignCSCRings.r
r
Definition: alignCSCRings.py:93
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
L1TMuonBarrelKalmanAlgo::addBMTFMuon
void addBMTFMuon(int, const L1MuKBMTrack &, std::unique_ptr< l1t::RegionalMuonCandBxCollection > &)
Definition: L1TMuonBarrelKalmanAlgo.cc:128
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99
edm::InputTag
Definition: InputTag.h:15
L1MuKBMTCombinedStubRefVector
std::vector< edm::Ref< L1MuKBMTCombinedStubCollection > > L1MuKBMTCombinedStubRefVector
Definition: L1MuKBMTCombinedStub.h:43