CMS 3D CMS Logo

List of all members | Public Member Functions
InputMakerPhase2 Class Reference

#include <InputMakerPhase2.h>

Inheritance diagram for InputMakerPhase2:
OMTFinputMaker MuonStubMakerBase

Public Member Functions

virtual void addDTphiDigi (MuonStubPtrs2D &muonStubsInLayers, const L1Phase2MuDTPhDigi &digi, const L1Phase2MuDTPhContainer *dtThDigis, unsigned int iProcessor, l1t::tftype procTyp)
 
 InputMakerPhase2 (const edm::ParameterSet &edmParameterSet, MuStubsInputTokens &muStubsInputTokens, edm::EDGetTokenT< L1Phase2MuDTPhContainer > inputTokenDTPhPhase2, const OMTFConfiguration *config, std::unique_ptr< OmtfAngleConverter > angleConverter)
 
 ~InputMakerPhase2 () override=default
 
- Public Member Functions inherited from OMTFinputMaker
OMTFinput buildInputForProcessor (const L1MuDTChambPhContainer *dtPhDigis, const L1MuDTChambThContainer *dtThDigis, const CSCCorrelatedLCTDigiCollection *cscDigis, const RPCDigiCollection *rpcDigis, unsigned int iProcessor, l1t::tftype type=l1t::tftype::omtf_pos, int bx=0)
 Method translating trigger digis into input matrix with global phi coordinates. More...
 
int getFlag () const
 
void initialize (const edm::EventSetup &, const OMTFConfiguration *)
 
void initialize (const edm::ParameterSet &edmCfg, const edm::EventSetup &es, const MuonGeometryTokens &muonGeometryTokens) override
 
 OMTFinputMaker (edm::ConsumesCollector &, bool getDuringEvent=true)
 
 OMTFinputMaker (const edm::ParameterSet &edmParameterSet, MuStubsInputTokens &muStubsInputTokens, const OMTFConfiguration *config, std::unique_ptr< OmtfAngleConverter > angleConverter)
 
void setFlag (int aFlag)
 
 ~OMTFinputMaker ()
 
 ~OMTFinputMaker () override
 
- Public Member Functions inherited from MuonStubMakerBase
void buildInputForProcessor (MuonStubPtrs2D &muonStubsInLayers, unsigned int iProcessor, l1t::tftype procTyp, int bxFrom, int bxTo, std::vector< std::unique_ptr< IOMTFEmulationObserver > > &observers)
 Method translating trigger digis into input matrix with global phi coordinates, fills the muonStubsInLayers. More...
 
void loadAndFilterDigis (const edm::Event &event)
 
 MuonStubMakerBase (const ProcConfigurationBase *procConf)
 
virtual ~MuonStubMakerBase ()
 

Additional Inherited Members

- Static Public Member Functions inherited from OMTFinputMaker
static bool acceptDtDigi (const OMTFConfiguration *config, const DTChamberId &dTChamberId, unsigned int iProcessor, l1t::tftype procType)
 
static void addStub (const OMTFConfiguration *config, MuonStubPtrs2D &muonStubsInLayers, unsigned int iLayer, unsigned int iInput, MuonStub &stub)
 
static unsigned int getInputNumber (const OMTFConfiguration *config, unsigned int rawId, unsigned int iProcessor, l1t::tftype type)
 
static int getProcessorPhiZero (const OMTFConfiguration *config, unsigned int iProcessor)
 
- Protected Attributes inherited from OMTFinputMaker
std::unique_ptr< OmtfAngleConverterangleConverter
 
const OMTFConfigurationconfig = nullptr
 
- Protected Attributes inherited from MuonStubMakerBase
const ProcConfigurationBaseconfig = nullptr
 
std::vector< std::unique_ptr< DigiToStubsConverterBase > > digiToStubsConverters
 
RpcClusterization rpcClusterization
 

Detailed Description

Definition at line 98 of file InputMakerPhase2.h.

Constructor & Destructor Documentation

◆ InputMakerPhase2()

InputMakerPhase2::InputMakerPhase2 ( const edm::ParameterSet edmParameterSet,
MuStubsInputTokens muStubsInputTokens,
edm::EDGetTokenT< L1Phase2MuDTPhContainer inputTokenDTPhPhase2,
const OMTFConfiguration config,
std::unique_ptr< OmtfAngleConverter angleConverter 
)

Definition at line 150 of file InputMakerPhase2.cc.

References MuonStubMakerBase::digiToStubsConverters, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), and MuStubsInputTokens::inputTokenDtTh.

155  : OMTFinputMaker(edmParameterSet, muStubsInputTokens, config, std::move(angleConverter)) {
156  edm::LogImportant("OMTFReconstruction") << "constructing InputMakerPhase2" << std::endl;
157 
158  if (edmParameterSet.exists("usePhase2DTPrimitives") && edmParameterSet.getParameter<bool>("usePhase2DTPrimitives")) {
159  if (edmParameterSet.getParameter<bool>("dropDTPrimitives") != true)
160  throw cms::Exception(
161  "L1TMuonOverlapPhase2 InputMakerPhase2::InputMakerPhase2 usePhase2DTPrimitives is true, but dropDTPrimitives "
162  "is not true");
163  //if the Phase2DTPrimitives are used, then the phase1 DT primitives should be dropped
164  edm::LogImportant("OMTFReconstruction") << " using Phase2 DT trigger primitives" << std::endl;
165  digiToStubsConverters.emplace_back(std::make_unique<DtPhase2DigiToStubsConverterOmtf>(
166  config, this->angleConverter.get(), inputTokenDTPhPhase2, muStubsInputTokens.inputTokenDtTh));
167  }
168 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
std::unique_ptr< OmtfAngleConverter > angleConverter
bool exists(std::string const &parameterName) const
checks if a parameter exists
Definition: config.py:1
Log< level::Error, true > LogImportant
std::vector< std::unique_ptr< DigiToStubsConverterBase > > digiToStubsConverters
edm::EDGetTokenT< L1MuDTChambThContainer > inputTokenDtTh
def move(src, dest)
Definition: eostools.py:511
OMTFinputMaker(edm::ConsumesCollector &, bool getDuringEvent=true)

◆ ~InputMakerPhase2()

InputMakerPhase2::~InputMakerPhase2 ( )
overridedefault

Member Function Documentation

◆ addDTphiDigi()

virtual void InputMakerPhase2::addDTphiDigi ( MuonStubPtrs2D muonStubsInLayers,
const L1Phase2MuDTPhDigi digi,
const L1Phase2MuDTPhContainer dtThDigis,
unsigned int  iProcessor,
l1t::tftype  procTyp 
)
inlinevirtual

Definition at line 109 of file InputMakerPhase2.h.

113  {}