|
ATLAS Offline Software
|
Go to the documentation of this file.
32 unsigned int temp=extractBits(word, 31, 2);
37 unsigned int temp2 = extractBits(word, 29, 4);
53 const double cratePhiSize =
M_PI / 2.0;
54 const double fpgaPhiSize =
M_PI / 16.0;
55 const double localCoordPhiSize =
M_PI / 32.0;
58 const double cpmEtaSize = 0.4;
59 const double localCoordEtaSize = 0.1;
68 unsigned int cpm = this->
module (roiWord);
69 unsigned int cp = this->
chip (roiWord);
72 unsigned int top = (
lc & 2 ) >> 1;
73 double localCoordEta = ( ( (
lc & 4 ) >> 1 ) + (
lc & 1 ) ) * localCoordEtaSize;
75 double phiMin = (
static_cast< double >(
crate ) * cratePhiSize ) +
76 (
static_cast< double >(
cp ) * fpgaPhiSize ) + (
top * localCoordPhiSize );
77 double phiMax = (
static_cast< double >(
crate ) * cratePhiSize ) +
78 (
static_cast< double >(
cp ) * fpgaPhiSize ) + (
top * localCoordPhiSize ) + 2. * localCoordPhiSize;
79 double etaMin = ( (
static_cast< double >(
static_cast< int >( cpm ) - 8 ) ) * cpmEtaSize ) + localCoordEta;
81 double etaMax = (
static_cast< double >(
static_cast< int >( cpm ) - 8 ) * cpmEtaSize ) + localCoordEta + 2. * localCoordEtaSize;
85 cout <<
"phiMin : " << phiMin <<
"phiMax : " << phiMax << endl
86 <<
"etaMin : " <<
etaMin <<
"etaMax : " <<
etaMax << endl
87 <<
"Phi" << endl <<
"===" << endl
88 <<
"Crate phi min : " << (
crate * cratePhiSize ) <<
" (size: " << ( cratePhiSize ) <<
")" << endl
89 <<
"CP FPGA phi min : " << (
cp * fpgaPhiSize ) <<
" (size: " << ( fpgaPhiSize ) <<
")" << endl
90 <<
"Local coord min : " << (
top * localCoordPhiSize ) <<
" (size: " << ( localCoordPhiSize ) <<
")" << endl
91 <<
"Eta" << endl <<
"===" << endl
92 <<
"CPM eta min : " << ( ( cpm - 8 ) * cpmEtaSize ) <<
" (size: " << ( cpmEtaSize ) <<
")" << endl
93 <<
"CP FPGA phi min : " << localCoordEta <<
" (size: " << ( localCoordEtaSize ) <<
")" << endl;
155 std::vector<unsigned int> threshPassedVec;
158 unsigned int hitmask = word&0xffff;
160 if ( ( 1 <<
thresh ) & hitmask ) {
161 threshPassedVec.push_back(
thresh + 1 );
166 return threshPassedVec;
unsigned int isolationWord(const unsigned int roiWord) const
Extract isolation results from Run 2 RoI word.
unsigned int crate(const unsigned int roiWord) const
Decode crate number from RoI word.
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
unsigned int et(const unsigned int roiWord) const
ET and Isolation information (Run 2 RoIs)
CoordinateRange class declaration.
const std::vector< unsigned int > thresholdsPassed(const unsigned int word) const
Thresholds passed (Run 1 RoIs)
unsigned int localcoord(const unsigned int roiWord) const
Decode local coordinate from RoI word.
virtual CoordinateRange coordinate(const unsigned int roiWord) const override
RoI coordinate information.
unsigned int module(const unsigned int roiWord) const
Decode module number from RoI word.
unsigned int chip(const unsigned int roiWord) const
Decode CP chip number from RoI word.
unsigned int extractBits(unsigned int word, const unsigned int start, const unsigned int length) const
returns the value of bits in word between bit "start" and bit "start" + "length"
TrigT1CaloDefs::RoIType roiType(unsigned int word) const
CP-RoI specific, but can distinguish Run 1/Run 2.