24 for( L1MuDTChambPhContainer::Phi_Container::const_iterator
25 DTPhDigiItr = PhContainer->begin() ;
26 DTPhDigiItr != PhContainer->end() ;
29 if((
unsigned int) iphtr>maxDTPH-1)
continue;
30 dttf_.
phBx.push_back ( DTPhDigiItr->bxNum() - DTPhDigiItr->Ts2Tag()+1 );
31 dttf_.
phWh.push_back ( DTPhDigiItr->whNum() );
32 dttf_.
phSe.push_back ( DTPhDigiItr->scNum() );
33 dttf_.
phSt.push_back ( DTPhDigiItr->stNum() );
36 double locphi = (((double)DTPhDigiItr->phi())/4096.0);
37 double newphi = locphi+(DTPhDigiItr->scNum()*(pig/6.));
38 if (newphi>2*pig) newphi-=2*pig;
39 if (newphi<0 ) newphi+=2*pig;
42 dttf_.
phX.push_back ( DTPhDigiItr->scNum() );
43 dttf_.
phY.push_back ( DTPhDigiItr->stNum()+4*(DTPhDigiItr->whNum()+2) );
62 for( L1MuDTChambThContainer::The_Container::const_iterator
63 DTThDigiItr = ThContainer->begin() ;
64 DTThDigiItr != ThContainer->end() ;
68 if((
unsigned int) ithtr>maxDTTH-1)
continue;
69 dttf_.
thBx.push_back( DTThDigiItr->bxNum() + 1 );
70 dttf_.
thWh.push_back( DTThDigiItr->whNum() );
71 dttf_.
thSe.push_back( DTThDigiItr->scNum() );
72 dttf_.
thSt.push_back( DTThDigiItr->stNum() );
73 dttf_.
thX.push_back( DTThDigiItr->stNum()+4*(DTThDigiItr->whNum()+2) );
75 dttf_.
thY.push_back( DTThDigiItr->scNum() );
78 for (
unsigned int j = 0; j < 7; j++)
96 for ( L1MuDTTrackContainer::TrackContainer::const_iterator
i 97 = tr->begin();
i != tr->end(); ++
i ) {
98 if((
unsigned int)idttr>maxDTTR-1)
continue;
109 int phi_local =
i->phi_packed();
110 if(phi_local > 15) phi_local -= 32;
111 double phi_global = (phi_local*(pig/72.))+((pig/6.)*
i->scNum());
112 if(phi_global < 0) phi_global+=2*pig;
113 if(phi_global > 2*pig) phi_global-=2*pig;
118 unsigned int addresses=0;
119 for (
int KK = 0; KK<4; KK++){
120 addresses|=((
unsigned int)(
i->stNum(KK+1))<<(KK*4));
void SetDTPH(const edm::Handle< L1MuDTChambPhContainer > L1MuDTChambPhContainer, unsigned int maxDTPH)
The_Container const * getContainer() const
L1AnalysisDTTFDataFormat dttf_
std::vector< L1MuDTTrackCand > TrackContainer
std::vector< L1MuDTChambPhDigi > Phi_Container
std::vector< L1MuDTChambThDigi > The_Container
void SetDTTR(const edm::Handle< L1MuDTTrackContainer > L1MuDTTrackContainer, unsigned int maxDTTR)
Phi_Container const * getContainer() const
void SetDTTH(const edm::Handle< L1MuDTChambThContainer > L1MuDTChambThContainer, unsigned int maxDTTH)
TrackContainer const * getContainer() const