src
L1Trigger
L1TMuonOverlapPhase2
src
OmtfPhase2AngleConverter.cc
Go to the documentation of this file.
1
#include "
L1Trigger/L1TMuonOverlapPhase2/interface/OmtfPhase2AngleConverter.h
"
2
3
int
OmtfPhase2AngleConverter::getProcessorPhi
(
int
phiZero
,
l1t::tftype
part
,
int
dtScNum,
int
dtPhi)
const
{
4
constexpr
int
dtPhiBins = 65536;
//65536. for [-0.5,0.5] radians
5
double
hsPhiPitch = 2 *
M_PI
/
nPhiBins
;
// width of phi Pitch, related to halfStrip at CSC station 2
6
7
int
sector
= dtScNum + 1;
//NOTE: there is a inconsistency in DT sector numb. Thus +1 needed to get detector numb.
8
9
double
scale
= 0.5 / dtPhiBins / hsPhiPitch;
//was 0.8
10
int
scale_coeff = lround(
scale
* (1 << 15));
11
12
int
ichamber =
sector
- 1;
13
if
(ichamber > 6)
14
ichamber = ichamber - 12;
15
16
int
offsetGlobal = (
int
)
nPhiBins
* ichamber / 12;
17
18
int
phiConverted = ((dtPhi * scale_coeff) >> 15) + offsetGlobal -
phiZero
;
19
20
return
config
->foldPhi(phiConverted);
21
}
22
23
/* TODO implement the etat for the phase2 stubs
24
int getGlobalEta(const DTChamberId dTChamberId, const L1Phase2MuDTThContainer *dtThDigis, int bxNum) const {
25
26
//const DTChamberId dTChamberId(aDigi.whNum(),aDigi.stNum(),aDigi.scNum()+1);
27
DTTrigGeom trig_geom(_geodt->chamber(dTChamberId), false);
28
29
30
}
31
*/
l1tEGammaCrystalsEmulatorProducer_cfi.scale
scale
Definition:
l1tEGammaCrystalsEmulatorProducer_cfi.py:10
config
Definition:
config.py:1
ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr
if constexpr(n > 3)
Definition:
BrokenLine.h:164
l1ctLayer1_cff.phiZero
phiZero
Definition:
l1ctLayer1_cff.py:123
OmtfPhase2AngleConverter::getProcessorPhi
int getProcessorPhi(int phiZero, l1t::tftype part, int dtScNum, int dtPhi) const override
Definition:
OmtfPhase2AngleConverter.cc:3
createfilelist.int
int
Definition:
createfilelist.py:10
l1t::tftype
tftype
Definition:
RegionalMuonCandFwd.h:8
AngleConverterBase::nPhiBins
unsigned int nPhiBins
Number of phi bins along 2Pi.
Definition:
AngleConverterBase.h:114
M_PI
#define M_PI
Definition:
BXVectorInputProducer.cc:50
part
part
Definition:
HCALResponse.h:20
OmtfPhase2AngleConverter.h
nano_mu_digi_cff.sector
sector
Definition:
nano_mu_digi_cff.py:21
Generated for CMSSW Reference Manual by
1.8.14