|
|
Implements RPC trigger emulation.
More...
#include <RPCTrigger.h>
|
void | produce (edm::Event &, const edm::EventSetup &) override |
|
| RPCTrigger (const edm::ParameterSet &) |
|
| EDProducer ()=default |
|
| EDProducer (const EDProducer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
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 EDProducer & | operator= (const EDProducer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDProducerBase () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
std::vector< bool > const & | recordProvenanceList () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
TypeLabelList const & | typeLabelList () const |
| used by the fwk to register the list of products of this module More...
|
|
| ~ProducerBase () noexcept(false) override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDProducerBase | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces () |
| declare what type of product will make and with which optional label More...
|
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces () |
|
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<BranchType B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<Transition B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
ProducesCollector | producesCollector () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () noexcept |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) noexcept |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Implements RPC trigger emulation.
- Author
- Tomasz Fruboes
Definition at line 59 of file RPCTrigger.h.
◆ RPCTrigger()
◆ giveFinallCandindates()
Returns vector of L1MuRegionalCand (input of L1GMT)
- Note
- - type is defined in L1MuRegionalCand 1 - barell, 3 - forward
Definition at line 141 of file RPCTrigger.cc.
146 std::vector<L1MuRegionalCand> RPCCand;
148 for (
unsigned int iMu = 0; iMu <
finalMuons.size(); iMu++) {
159 short int digiIndex = 0;
161 for (detUnitIt = rpcDigis->begin(); detUnitIt != rpcDigis->end(); ++detUnitIt) {
162 const RPCDetId&
id = (*detUnitIt).first;
163 uint32_t rawId =
id.
rawId();
169 RPCMuon::TDigiLinkVec::iterator it = digiIVec.begin();
170 for (; it != digiIVec.end(); ++it) {
171 if (digiIndex == it->m_digiIdx) {
172 newDigiLink.
setLink(it->m_layer + 1, rawId, digiIt->strip(), digiIt->bx());
179 retRPCDigiLink.push_back(newDigiLink);
221 signed short etaAddr =
finalMuons[iMu].getEtaAddr();
241 RPCCand.push_back(l1Cand);
243 LogDebug(
"RPCTrigger") <<
"Found muonf of pt " <<
finalMuons[iMu].getPtCode() <<
" bx " << l1Cand.
bx()
Referenced by produce().
◆ produce()
Implements edm::one::EDProducerBase.
Definition at line 31 of file RPCTrigger.cc.
57 std::vector<L1MuRegionalCand> candBarell;
58 std::vector<L1MuRegionalCand> candForward;
61 <<
"\nWarning: RPCDigiCollection with input tag " <<
m_label
62 <<
"\nrequested in configuration, but not found in the event. Emulator will produce empty collection \n ";
70 if (rpcDigis->begin() == rpcDigis->end()) {
71 LogDebug(
"RPCTrigger") <<
"\nWarning: RPCDigiCollection with input tag " <<
m_label
72 <<
"\n seems to be empty for this event. Emulator will run on empty collection ";
75 std::vector<RPCDigiL1Link> brlLinks;
76 std::vector<RPCDigiL1Link> fwdLinks;
88 for (
int iBx = -1; iBx < 2; ++iBx) {
112 std::vector<RPCDigiL1Link> dlBrl;
113 std::vector<RPCDigiL1Link> dlFwd;
117 brlLinks.insert(brlLinks.end(), dlBrl.begin(), dlBrl.end());
118 fwdLinks.insert(fwdLinks.end(), dlFwd.begin(), dlFwd.end());
120 candBarell.insert(candBarell.end(), RPCb.begin(), RPCb.end());
121 candForward.insert(candForward.end(), RPCf.begin(), RPCf.end());
References edm::eventsetup::EventSetupRecord::cacheIdentifier(), muons_cff::finalMuons, edm::EventSetup::get(), RPCConeBuilderFromES::getConesFromES(), edm::EventSetup::getHandle(), giveFinallCandindates(), iEvent, RPCPacManager< TPacType >::init(), MuonsGrabber::Instance(), edm::HandleBase::isValid(), LogDebug, m_brlCandPutToken, m_brlLinksPutToken, m_BxOrConfigToken, m_cacheID, m_coneBuilderToken, m_coneDefinitionToken, m_configToken, m_fwdCandPutToken, m_fwdLinksPutToken, m_hsbConfigToken, m_hwConfigToken, m_label, m_pacManager, m_pacTrigger, m_rpcDigiToken, m_theLinksystemFromES, m_trigConfig, m_triggerDebug, eostools::move(), edm::ESHandle< T >::product(), L1RPCConfig_cff::rpcconf, MuonsGrabber::setRPCBasicTrigConfig(), MuonsGrabber::startNewEvent(), and MuonsGrabber::writeDataForRelativeBX().
◆ m_brlCandPutToken
◆ m_brlLinksPutToken
◆ m_BxOrConfigToken
◆ m_cacheID
unsigned long long RPCTrigger::m_cacheID |
|
private |
◆ m_coneBuilderToken
◆ m_coneDefinitionToken
◆ m_configToken
◆ m_fwdCandPutToken
◆ m_fwdLinksPutToken
◆ m_hsbConfigToken
◆ m_hwConfigToken
◆ m_label
const std::string RPCTrigger::m_label |
|
private |
◆ m_pacManager
◆ m_pacTrigger
◆ m_rpcDigiToken
◆ m_theLinksystemFromES
◆ m_trigConfig
◆ m_triggerDebug
const int RPCTrigger::m_triggerDebug |
|
private |
int bx() const
return bunch crossing identifier
T const * product() const
void setPhiPacked(unsigned phi)
Set Phi: 0..143.
void setEtaPacked(unsigned eta)
Set Eta: 6-bit code.
void setLink(unsigned int layer, unsigned int rpcdetId, int strip, int bx)
unsigned phi_packed() const
return phi packed as in hardware
RPCConeBuilderFromES m_theLinksystemFromES
T getUntrackedParameter(std::string const &, T const &) const
static MuonsGrabber & Instance()
std::unique_ptr< RPCBasicTrigConfig > m_trigConfig
void startNewEvent(int event, int bx)
std::vector< RPCDigi >::const_iterator const_iterator
void setType(unsigned type)
Set Type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC.
const edm::ESGetToken< L1RPCHwConfig, L1RPCHwConfigRcd > m_hwConfigToken
void setBx(int bx)
Set Bunch Crossing.
L1RpcLogConesVec getConesFromES(edm::Handle< RPCDigiCollection > rpcDigis, edm::ESHandle< L1RPCConeBuilder > coneBuilder, edm::ESHandle< L1RPCConeDefinition > coneDef, edm::ESHandle< L1RPCBxOrConfig > bxOrDef, edm::ESHandle< L1RPCHwConfig > hwConfig, int bx)
void writeDataForRelativeBX(int bx)
const edm::EDPutTokenT< std::vector< RPCDigiL1Link > > m_fwdLinksPutToken
void init(std::string patFilesDirectory, L1RpcPACsCntEnum _PACsCnt)
const edm::ESGetToken< L1RPCConfig, L1RPCConfigRcd > m_configToken
void setPtPacked(unsigned pt)
Set Pt: 0..31.
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
const edm::EDGetTokenT< RPCDigiCollection > m_rpcDigiToken
std::vector< L1RpcTBMuonsVec > L1RpcTBMuonsVec2
std::vector< RPCLogCone > L1RpcLogConesVec
const std::string m_label
constexpr uint32_t rawId() const
get the raw id
const edm::ESGetToken< L1RPCHsbConfig, L1RPCHsbConfigRcd > m_hsbConfigToken
const edm::EDPutTokenT< std::vector< L1MuRegionalCand > > m_fwdCandPutToken
unsigned long long m_cacheID
const edm::ESGetToken< L1RPCConeBuilder, L1RPCConeBuilderRcd > m_coneBuilderToken
unsigned eta_packed() const
return eta packed as in hardware
RPCPacManager< RPCPacData > m_pacManager
void setChargePacked(unsigned ch)
Set Charge (0=pos, 1=neg)
std::pair< const_iterator, const_iterator > Range
std::vector< L1MuRegionalCand > giveFinallCandindates(const L1RpcTBMuonsVec &finalMuons, int type, int bx, edm::Handle< RPCDigiCollection > rpcDigis, std::vector< RPCDigiL1Link > &retRPCDigiLink)
Returns vector of L1MuRegionalCand (input of L1GMT)
T getParameter(std::string const &) const
void setRPCBasicTrigConfig(RPCBasicTrigConfig *c)
std::vector< TDigiLink > TDigiLinkVec
std::unique_ptr< RPCPacTrigger > m_pacTrigger
unsigned long long cacheIdentifier() const
const edm::ESGetToken< L1RPCBxOrConfig, L1RPCBxOrConfigRcd > m_BxOrConfigToken
void setChargeValid(bool valid)
Set Charge Valid.
const edm::ESGetToken< L1RPCConeDefinition, L1RPCConeDefinitionRcd > m_coneDefinitionToken
const edm::EDPutTokenT< std::vector< L1MuRegionalCand > > m_brlCandPutToken
const edm::EDPutTokenT< std::vector< RPCDigiL1Link > > m_brlLinksPutToken
unsigned type_idx() const
return type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC
void setQualityPacked(unsigned qual)
Set Quality: 0..7.
unsigned int quality() const
return quality
unsigned charge_packed() const
return charge packed as in hardware (0=pos, 1=neg)