CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
L1TMuonBarrelTrackProducer Class Reference

#include <L1TMuonBarrelTrackProducer.h>

Inheritance diagram for L1TMuonBarrelTrackProducer:
edm::one::EDProducer< edm::one::SharedResources > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 L1TMuonBarrelTrackProducer (const edm::ParameterSet &pset)
 Constructor. More...
 
void produce (edm::Event &e, const edm::EventSetup &c)
 Produce digis out of raw data. More...
 
virtual ~L1TMuonBarrelTrackProducer ()
 Destructor. More...
 
- Public Member Functions inherited from edm::one::EDProducer< edm::one::SharedResources >
 EDProducer ()=default
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

const edm::ParameterSetm_ps
 
L1MuBMTFSetupsetup1
 

Additional Inherited Members

- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

L1 BM Track Finder EDProducer

J. Troconiz UAM Madrid

Definition at line 24 of file L1TMuonBarrelTrackProducer.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 37 of file L1TMuonBarrelTrackProducer.cc.

References TrackValidation_cff::pset.

37  {
38  m_ps = &pset;
39 
40 
41  produces<l1t::RegionalMuonCandBxCollection>("BMTF");
42  produces<l1t::RegionalMuonCandBxCollection>("UnsortedBMTF");
43  usesResource("L1TMuonBarrelTrackProducer");
45 
46 
47 }
const edm::ParameterSet * m_ps
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
L1TMuonBarrelTrackProducer::~L1TMuonBarrelTrackProducer ( )
virtual

Destructor.

Definition at line 49 of file L1TMuonBarrelTrackProducer.cc.

49  {
50 
51  delete setup1;
52 }

Member Function Documentation

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

Produce digis out of raw data.

Muons before muon sorter

Muons after muon sorter, for uGMT

Implements edm::one::EDProducerBase.

Definition at line 54 of file L1TMuonBarrelTrackProducer.cc.

References L1MuBMTrackFinder::clear(), gather_cfg::cout, L1MuBMTFConfig::Debug(), L1MuBMTrackFinder::getcache(), L1MuBMTrackFinder::getcache0(), L1MuBMTrackFinder::numberOfTracks(), edm::Event::put(), and L1MuBMTrackFinder::run().

54  {
55 
56 
57  if ( L1MuBMTFConfig::Debug(1) ) cout << endl;
58  if ( L1MuBMTFConfig::Debug(1) ) cout << "**** L1MuonBMTFTrigger processing event ****" << endl;
59 
61  dtbx->clear();
62 
63  dtbx->run(e,c);
64 
65  int ndt = dtbx->numberOfTracks();
66  if ( L1MuBMTFConfig::Debug(1) ) cout << "Number of muons found by the L1 BBMX TRIGGER : "
67  << ndt << endl;
68 
69  std::auto_ptr<l1t::RegionalMuonCandBxCollection> tra_product(new l1t::RegionalMuonCandBxCollection);
70  std::auto_ptr<l1t::RegionalMuonCandBxCollection> vec_product(new l1t::RegionalMuonCandBxCollection);
71 
74  *tra_product = dtTracks;
75 
78  *vec_product = BMTracks;
79 
80 
81  //for (int ibx = BMTracks.getFirstBX(); ibx <= BMTracks.getLastBX(); ibx++){
82  //cout << "DEBUG: BMTF size at bx " << ibx << " " << BMTracks.size(ibx) << "\n";
83  //}
84  e.put(tra_product,"UnsortedBMTF");
85  e.put(vec_product,"BMTF");
86 
87 }
int numberOfTracks()
get number of muon candidates found by the barrel MTTF
L1MuBMTrackFinder * TrackFinder()
perform action per run
Definition: L1MuBMTFSetup.h:53
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:121
void run(const edm::Event &e, const edm::EventSetup &c)
run the barrel MTTF
static bool Debug()
tuple cout
Definition: gather_cfg.py:145
l1t::RegionalMuonCandBxCollection & getcache()
l1t::RegionalMuonCandBxCollection & getcache0()

Member Data Documentation

const edm::ParameterSet* L1TMuonBarrelTrackProducer::m_ps
private

Definition at line 38 of file L1TMuonBarrelTrackProducer.h.

L1MuBMTFSetup* L1TMuonBarrelTrackProducer::setup1
private

Definition at line 37 of file L1TMuonBarrelTrackProducer.h.