Tool for changing the format of RoI words.
More...
#include <RoIFormatUpdater.h>
Tool for changing the format of RoI words.
Quick and dirty hack to work around fact that there is no RoI
format version at the moment. Hopefully this is a short-term
fix which will be suppressed soon and never needed again.
- Author
- Alan Watson Alan..nosp@m.Wats.nosp@m.on@ce.nosp@m.rn.c.nosp@m.h 17-5-06
- Revision
- 782811
- Date
- 2016-11-07 18:20:40 +0100 (Mon, 07 Nov 2016)
Definition at line 25 of file RoIFormatUpdater.h.
◆ OldJetEnergyType()
unsigned int LVL1::RoIFormatUpdater::OldJetEnergyType |
( |
unsigned int |
RoIWord | ) |
|
|
staticprivate |
Method to identify (old-style) JetEnergy RoI type.
Definition at line 60 of file RoIFormatUpdater.cxx.
69 else if (subType == 1) {
72 else if (subType == 2) {
◆ UpdateEMTauRoI()
unsigned int LVL1::RoIFormatUpdater::UpdateEMTauRoI |
( |
unsigned int |
RoIWord | ) |
|
|
static |
Method to update EM/Tau RoI word.
Definition at line 22 of file RoIFormatUpdater.cxx.
24 if ((RoIWord&0xf0000000)==0) {
25 unsigned int coord = ((RoIWord&0x0fff0000)<<2);
26 unsigned int hits = (RoIWord&0x0000ffff);
30 cout <<
"EMTau RoI type not incorrect. Return RoIWord unmodified" << endl;
◆ UpdateEnergyRoI0()
unsigned int LVL1::RoIFormatUpdater::UpdateEnergyRoI0 |
( |
unsigned int |
RoIWord | ) |
|
|
staticprivate |
Methods to update EnergySum RoI words.
Definition at line 112 of file RoIFormatUpdater.cxx.
114 unsigned int Ex = (RoIWord&0x0000ffff);
◆ UpdateEnergyRoI1()
unsigned int LVL1::RoIFormatUpdater::UpdateEnergyRoI1 |
( |
unsigned int |
RoIWord | ) |
|
|
staticprivate |
Definition at line 118 of file RoIFormatUpdater.cxx.
120 unsigned int hits = (RoIWord&0x000f0000);
121 unsigned int Ey = (RoIWord&0x0000ffff);
◆ UpdateEnergyRoI2()
unsigned int LVL1::RoIFormatUpdater::UpdateEnergyRoI2 |
( |
unsigned int |
RoIWord | ) |
|
|
staticprivate |
Definition at line 125 of file RoIFormatUpdater.cxx.
127 unsigned int hits = (RoIWord&0x00ff0000);
128 unsigned int Et = (RoIWord&0x0000ffff);
◆ UpdateJetEnergyRoI()
unsigned int LVL1::RoIFormatUpdater::UpdateJetEnergyRoI |
( |
unsigned int |
RoIWord | ) |
|
|
static |
Method to update Jet/Energy RoI word.
Definition at line 35 of file RoIFormatUpdater.cxx.
55 cout <<
"JetEnergy RoI type not recognised. Return RoIWord unmodified" << endl;
◆ UpdateJetEtRoI()
unsigned int LVL1::RoIFormatUpdater::UpdateJetEtRoI |
( |
unsigned int |
RoIWord | ) |
|
|
staticprivate |
◆ UpdateJetRoI()
unsigned int LVL1::RoIFormatUpdater::UpdateJetRoI |
( |
unsigned int |
RoIWord | ) |
|
|
staticprivate |
Method to update Jet RoI word.
Definition at line 82 of file RoIFormatUpdater.cxx.
86 unsigned int hits = (RoIWord&0x00000fff);
87 unsigned int fwdjet(0);
88 if (RoIWord&0x00000f00) fwdjet = 1<<18;
96 unsigned int frame = 4*(
col>>1) + (
row>>1);
97 unsigned int rl = 2*(
row%2) + (
col%2);
98 unsigned int coord = (crate<<9) + (jem<<5) +(frame<<2) +
rl;
The documentation for this class was generated from the following files:
static unsigned int getValue(const unsigned int *uintValue, const unsigned int mask)
get the value in the input word represented by a bit pattern given as a bitmask