|
|
Go to the documentation of this file.
61 : _cache0(144, -9, 8), _cache(36, -9, 8) {
69 cout <<
"**** entering L1MuBMTrackFinder ****" << endl;
89 vector<L1MuBMEtaProcessor*>::iterator it_ep =
m_epvec.begin();
90 while (it_ep !=
m_epvec.end()) {
96 vector<L1MuBMWedgeSorter*>::iterator it_ws =
m_wsvec.begin();
97 while (it_ws !=
m_wsvec.end()) {
123 cout <<
"**** L1MuBMTrackFinder building ****" << endl;
128 for (
int wh = -3; wh <= 3; wh++) {
131 for (
int sc = 0; sc < 12; sc++) {
135 cout <<
"creating " << tmpspid << endl;
141 for (
int sc = 0; sc < 12; sc++) {
144 cout <<
"creating Eta Processor " << sc << endl;
148 cout <<
"creating Wedge Sorter " << sc << endl;
154 cout <<
"creating BM Muon Sorter " << endl;
179 cout <<
"**** L1MuBMTrackFinder processing ------****" << endl;
183 for (
int bx = bx_min;
bx <= bx_max;
bx++) {
188 cout <<
"L1MuBMTrackFinder processing bunch-crossing : " <<
bx << endl;
197 cout <<
"running " << (*it_sp).second->id() << endl;
199 (*it_sp).second->run(
bx,
e,
c);
201 (*it_sp).second->print();
206 vector<L1MuBMEtaProcessor*>::iterator it_ep =
m_epvec.begin();
207 while (it_ep !=
m_epvec.end()) {
209 cout <<
"running Eta Processor " << (*it_ep)->id() << endl;
211 (*it_ep)->run(
bx,
e,
c);
221 cout <<
"reading " << (*it_sp).second->id() << endl;
229 if (
cand->hwEta() > -117 ||
cand->hwEta() < 117)
242 abs(
cand->spid().wheel()) - 1);
268 vector<L1MuBMWedgeSorter*>::iterator it_ws =
m_wsvec.begin();
269 while (it_ws !=
m_wsvec.end()) {
271 cout <<
"running Wedge Sorter " << (*it_ws)->id() << endl;
278 if ((*it_ws)->anyMuonCands()) {
279 const vector<const L1MuBMTrack*>& mttf_cont = (*it_ws)->tracks();
281 vector<const L1MuBMTrack*>::const_iterator iter;
282 for (iter = mttf_cont.begin(); iter != mttf_cont.end(); iter++) {
287 int abs_add_1 =
setAdd(1, (*iter)->address(1));
288 int abs_add_2 =
setAdd(2, (*iter)->address(2));
289 int abs_add_3 =
setAdd(3, (*iter)->address(3));
290 int abs_add_4 =
setAdd(4, (*iter)->address(4));
293 (*iter)->spid().wheel() < 0);
295 abs((*iter)->spid().wheel()) - 1);
307 if ((*iter)->hwEta() > -117 || (*iter)->hwEta() < 117)
312 rmc.
setHwSign((*iter)->hwSign() == 1 ? 0 : 1);
384 (*it_sp).second->reset();
388 vector<L1MuBMEtaProcessor*>::iterator it_ep =
m_epvec.begin();
389 while (it_ep !=
m_epvec.end()) {
395 vector<L1MuBMWedgeSorter*>::iterator it_ws =
m_wsvec.begin();
396 while (it_ws !=
m_wsvec.end()) {
444 unsigned int uadd = rel_add;
SPmap_iter begin()
return iterator which points to the first entry of the container
int numberOfTracks()
get number of muon candidates found by the barrel MTTF
L1MuBMMuonSorter * m_ms
BM Muon Sorter.
const L1MuBMWedgeSorter * ws(int id) const
get a pointer to a Wedge Sorter, index [0-11]
void setHwSign(int bits)
Set charge sign bit (charge = (-1)^(sign))
void reset()
reset the barrel MTTF
const L1MuBMEtaProcessor * ep(int id) const
get a pointer to an Eta Processor, index [0-11]
edm::ESGetToken< L1TMuonBarrelParams, L1TMuonBarrelParamsRcd > m_mbParamsToken
void insert(const L1MuBMSecProcId &, L1MuBMSectorProcessor *sp)
insert a Sector Processor into the container
L1MuBMTrackSegEtaCollection _cache3
SPmap_iter end()
return iterator which points to the one-past-last entry of the container
Phi_Container const * getContainer() const
std::vector< L1MuBMWedgeSorter * > m_wsvec
Wedge Sorters.
L1MuBMTrackCollection _cache1
void setTFIdentifiers(int processor, tftype trackFinder)
Set the processor ID, track-finder type. From these two, the link is set.
TFtracks_const_iter begin(int bx)
void reset() override
reset Muon Sorter
void setHwPt(int bits)
Set compressed pT as transmitted by hardware LSB = 0.5 (9 bits)
const_iterator begin(int bx) const
void setHwHF(bool bit)
Set HF (halo / fine eta) bit (EMTF: halo -> 1; BMTF: fine eta -> 1)
TFtracks_const_iter end(int bx)
void run(const edm::Event &e, const edm::EventSetup &c)
run the barrel MTTF
const_iterator end(int bx) const
std::vector< L1MuBMEtaProcessor * > m_epvec
Eta Processors.
L1MuBMTrackFinder(const edm::ParameterSet &ps, edm::ConsumesCollector &&iC)
constructor
void setHwEta(int bits)
Set compressed eta as transmitted by hardware LSB = 0.010875 (9 bits)
L1MuBMSectorProcessor * sp(const L1MuBMSecProcId &) const
return pointer to Sector Processor
int setAdd(int ust, int rel_add)
static L1MuBMTFConfig * m_config
Track Finder configuration.
void setTrackSubAddress(bmtfAddress subAddress, int value)
Set a part of the muon candidates track address; specialised for BMTF.
void setHwQual(int bits)
Set compressed quality code as transmitted by hardware (4 bits)
l1t::RegionalMuonCandBxCollection _cache0
void setHwSignValid(int bits)
Set whether charge measurement is valid (0 for high pT muons)
static edm::InputTag getBMDigiInputTag()
l1t::RegionalMuonCandBxCollection _cache
L1MuBMTrackSegPhiCollection _cache2
SPmap::iterator SPmap_iter
void setDefaultsES(const L1TMuonBarrelParams &)
l1t::RegionalMuonCandBxCollection::const_iterator TFtracks_const_iter
container for muon candidates
unsigned size(int bx) const
Abs< T >::type abs(const T &t)
edm::EDGetTokenT< L1MuDTChambPhContainer > m_DTDigiToken
void setup(edm::ConsumesCollector &&)
build the structure of the barrel MTTF
void setHwPhi(int bits)
Set compressed relative phi as transmitted by hardware LSB = 2*pi/576 (8 bits)
void setBXRange(int bxFirst, int bxLast)
virtual ~L1MuBMTrackFinder()
destructor
bool bxEmpty(int step) const
void push_back(int bx, T object)
const L1MuBMSectorProcessor * sp(const L1MuBMSecProcId &) const
get a pointer to a Sector Processor
L1MuBMSecProcMap * m_spmap
Sector Processors.