ATLAS Offline Software
|
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_ANALYSIS if !defined(TRIGSTEERINGEVENT_TRIGROIDESCRIPTOR_H) && !defined(XAOD_STANDALONE) More...
#include <TrigRoiDescriptor.h>
Public Types | |
typedef std::vector< const IRoiDescriptor * >::const_iterator | roi_iterator |
Public Member Functions | |
TrigRoiDescriptor (bool fullscan=false) | |
default constructor More... | |
TrigRoiDescriptor (double eta, double etaMinus, double etaPlus, double phi, double phiMinus, double phiPlus, double zed=0, double zedMinus=-s_zedWidthDefault, double zedPlus=s_zedWidthDefault) | |
constructor More... | |
TrigRoiDescriptor (unsigned int l1id, unsigned int id, double eta, double etaMinus, double etaPlus, double phi, double phiMinus, double phiPlus, double zed=0, double zedMinus=-s_zedWidthDefault, double zedPlus=s_zedWidthDefault) | |
constructor More... | |
TrigRoiDescriptor (unsigned int roiWord, unsigned int l1id, unsigned int id, double eta, double etaMinus, double etaPlus, double phi, double phiMinus, double phiPlus, double zed=0, double zedMinus=-s_zedWidthDefault, double zedPlus=s_zedWidthDefault) | |
constructor More... | |
TrigRoiDescriptor (const IRoiDescriptor &roi) | |
TrigRoiDescriptor (const TrigRoiDescriptor &roi) | |
TrigRoiDescriptor & | operator= (const IRoiDescriptor &roi) |
TrigRoiDescriptor & | operator= (const TrigRoiDescriptor &roi) |
virtual | ~TrigRoiDescriptor () |
virtual unsigned int | roiId () const override final |
these quantities probably don't need to be used any more More... | |
virtual unsigned int | l1Id () const override final |
virtual unsigned int | roiWord () const override final |
virtual | operator std::string () const override |
output More... | |
virtual double | phi () const override final |
Methods to retrieve data members. More... | |
virtual double | eta () const override final |
virtual double | zed () const override final |
virtual double | zedPlus () const override final |
z at the most forward end of the RoI More... | |
virtual double | zedMinus () const override final |
z at the most backward end of the RoI More... | |
virtual double | etaPlus () const override final |
gets eta at zedPlus More... | |
virtual double | etaMinus () const override final |
gets eta at zMinus More... | |
virtual double | phiPlus () const override final |
gets phiPlus More... | |
virtual double | phiMinus () const override final |
gets phiMinus More... | |
virtual int | version () const override final |
versioning More... | |
void | version (int v) |
virtual bool | isFullscan () const override final |
is this a full scan RoI? More... | |
virtual bool | composite () const override final |
SuperRoI compatability methods. More... | |
void | setComposite (bool b=true) |
bool | manageConstituents () const |
always manage constituents ??? More... | |
void | manageConstituents (bool b) |
virtual unsigned | size () const override final |
number of constituents More... | |
virtual const IRoiDescriptor * | at (int i) const override final |
find an RoiDescriptor constituent More... | |
void | clear () |
clear the vector More... | |
void | reserve (size_t s) |
reserve elements in vector More... | |
void | push_back (const IRoiDescriptor *roi) |
add a RoiDescriptor More... | |
virtual roi_iterator | begin () const override final |
iterators More... | |
virtual roi_iterator | end () const override final |
virtual double | dzdrMinus () const override final |
return the gradients More... | |
virtual double | dzdrPlus () const override final |
dz/dr at the front of the RoI More... | |
virtual double | drdzMinus () const override final |
dr/dz at the rear of the RoI More... | |
virtual double | drdzPlus () const override final |
dr/dz at the front of the RoI More... | |
virtual double | zedMin (double r) const override final |
methods to calculate z position at the RoI boundary at a given radius More... | |
virtual double | zedMax (double r) const override final |
virtual double | zedOuterPlus () const override final |
z at the most forward end of the RoI More... | |
virtual double | zedOuterMinus () const override final |
z at the most backward end of the RoI More... | |
virtual double | rhoMin (double z) const override final |
accessors to calculate r position at position z along the RoI boundaries More... | |
virtual double | rhoMax (double z) const override final |
Static Public Member Functions | |
static double | zedWidthDefault () |
static void | zedWidthDefault (double d) |
set default z-width (but only before any RoiDescriptor has been created) More... | |
Static Public Attributes | |
static constexpr bool | FULLSCAN = true |
convenient More... | |
static constexpr bool | ROI = false |
Protected Member Functions | |
void | construct (double eta, double etaMinus, double etaPlus, double phi, double phiMinus, double phiPlus, double zed, double zedMinus, double zedPlus) |
construct RoiDescriptor internals - similar to constructors More... | |
void | construct (const IRoiDescriptor &_roi) |
Protected Attributes | |
unsigned int | m_l1Id |
lvl1 event number More... | |
unsigned int | m_roiId |
RoI number. More... | |
unsigned int | m_roiWord |
lvl1 RoI word from which this RoI was initially constructed More... | |
std::vector< uint32_t > | m_serialized |
float | m_phi |
phi of RoI center More... | |
float | m_eta |
eta of RoI center More... | |
float | m_zed |
zed of RoI center More... | |
float | m_phiMinus |
most negative RoI in azimuthal More... | |
float | m_phiPlus |
most positive RoI in azimuthal More... | |
float | m_etaMinus |
eta of RoI at zedMinus More... | |
float | m_etaPlus |
eta of RoI at zedPlus More... | |
float | m_zedMinus |
z position at most negative position along the beamline More... | |
float | m_zedPlus |
z position at most positive position along the beamline More... | |
float | m_dzdrMinus |
dz/dr at the rear of the RoI More... | |
float | m_dzdrPlus |
dz/dr at the front of the RoI More... | |
float | m_drdzMinus |
dr/dz at the rear of the RoI More... | |
float | m_drdzPlus |
dr/dz at the front of the RoI More... | |
float | m_zedOuterMinus |
z at rear of RoI at the outer radius ( = 1100 mm) More... | |
float | m_zedOuterPlus |
z at front of RoI at the outer radius ( = 1100 mm) More... | |
bool | m_fullscan |
flag this as a full detector RoI More... | |
bool | m_composite |
flag this as a composite RoI More... | |
bool | m_manageConstituents |
flag to determine whether consituents should be managed More... | |
int | m_version |
transient version identifier More... | |
std::vector< const IRoiDescriptor * > | m_roiDescriptors |
roi constituents More... | |
Static Protected Attributes | |
static std::atomic< double > | s_zedWidthDefault = 225 |
default parameters - there may be better ways, but this will do More... | |
static std::atomic< bool > | s_firstInstanceCreated = false |
to ensure default width is only set once at job startup More... | |
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_ANALYSIS if !defined(TRIGSTEERINGEVENT_TRIGROIDESCRIPTOR_H) && !defined(XAOD_STANDALONE)
Describes the Region of Ineterest geometry It has basically 9 parameters
Definition at line 56 of file TrigRoiDescriptor.h.
|
inherited |
Definition at line 28 of file IRoiDescriptor.h.
TrigRoiDescriptor::TrigRoiDescriptor | ( | bool | fullscan = false | ) |
default constructor
fullscan | if fullscan is true, this RoI will span the entire detector |
Definition at line 25 of file TrigRoiDescriptor.cxx.
TrigRoiDescriptor::TrigRoiDescriptor | ( | double | eta, |
double | etaMinus, | ||
double | etaPlus, | ||
double | phi, | ||
double | phiMinus, | ||
double | phiPlus, | ||
double | zed = 0 , |
||
double | zedMinus = -s_zedWidthDefault , |
||
double | zedPlus = s_zedWidthDefault |
||
) |
constructor
eta | eta of RoI |
etaMinus | eta at rear of RoI |
etaPlus | eta at front of RoI |
phi | phi of RoI |
phiMinus | minimum phi of RoI |
phiPlus | maximum phi of RoI |
zed | zed of RoI |
zedMinus | zed at rear of RoI |
zedPlus | zed at front of RoI |
Definition at line 32 of file TrigRoiDescriptor.cxx.
TrigRoiDescriptor::TrigRoiDescriptor | ( | unsigned int | l1id, |
unsigned int | id, | ||
double | eta, | ||
double | etaMinus, | ||
double | etaPlus, | ||
double | phi, | ||
double | phiMinus, | ||
double | phiPlus, | ||
double | zed = 0 , |
||
double | zedMinus = -s_zedWidthDefault , |
||
double | zedPlus = s_zedWidthDefault |
||
) |
constructor
l1id | is event number asigned by LVL1 trigger |
id | RoI number within event (0,1,.....) |
eta | eta of RoI |
etaMinus | eta at rear of RoI |
etaPlus | eta at front of RoI |
phi | phi of RoI |
phiMinus | minimum phi of RoI |
phiPlus | maximum phi of RoI |
zed | zed of RoI |
zedMinus | zed at rear of RoI |
zedPlus | zed at front of RoI |
Definition at line 40 of file TrigRoiDescriptor.cxx.
TrigRoiDescriptor::TrigRoiDescriptor | ( | unsigned int | roiWord, |
unsigned int | l1id, | ||
unsigned int | id, | ||
double | eta, | ||
double | etaMinus, | ||
double | etaPlus, | ||
double | phi, | ||
double | phiMinus, | ||
double | phiPlus, | ||
double | zed = 0 , |
||
double | zedMinus = -s_zedWidthDefault , |
||
double | zedPlus = s_zedWidthDefault |
||
) |
constructor
roiWord | LVL1 trigger decision word |
l1id | is event number asigned by LVL1 trigger |
id | RoI number within event (0,1,.....) |
eta | eta of RoI |
etaMinus | eta at rear of RoI |
etaPlus | eta at front of RoI |
phi | phi of RoI |
phiMinus | minimum phi of RoI |
phiPlus | maximum phi of RoI |
zed | zed of RoI |
zedMinus | zed at rear of RoI |
zedPlus | zed at front of RoI |
Definition at line 50 of file TrigRoiDescriptor.cxx.
TrigRoiDescriptor::TrigRoiDescriptor | ( | const IRoiDescriptor & | roi | ) |
Definition at line 60 of file TrigRoiDescriptor.cxx.
TrigRoiDescriptor::TrigRoiDescriptor | ( | const TrigRoiDescriptor & | roi | ) |
Definition at line 65 of file TrigRoiDescriptor.cxx.
|
virtual |
Definition at line 98 of file TrigRoiDescriptor.cxx.
|
inlinefinaloverridevirtualinherited |
find an RoiDescriptor constituent
Implements IRoiDescriptor.
Definition at line 148 of file RoiDescriptor.h.
|
inlinefinaloverridevirtualinherited |
|
inlineinherited |
|
inlinefinaloverridevirtualinherited |
SuperRoI compatability methods.
am I a SuperRoi?
Implements IRoiDescriptor.
Definition at line 137 of file RoiDescriptor.h.
|
protectedinherited |
Definition at line 236 of file RoiDescriptor.cxx.
|
protectedinherited |
construct RoiDescriptor internals - similar to constructors
NB: deal with float to double issue This is a hack for the region selector - the RS uses double precision for the phi=pi boundary because the RoiDescriptor only uses a float, so pi is represented as 3.14159274 which is > M_PI so we have to subtract 1e-7 a bit to prevent it failing any phi>M_PI conditions
NB: see comment in double RoiDescriptor::phiPlus()
calculate the gradients - very useful these
Definition at line 160 of file RoiDescriptor.cxx.
|
inlinefinaloverridevirtualinherited |
dr/dz at the rear of the RoI
Implements IRoiDescriptor.
Definition at line 167 of file RoiDescriptor.h.
|
inlinefinaloverridevirtualinherited |
dr/dz at the front of the RoI
Implements IRoiDescriptor.
Definition at line 168 of file RoiDescriptor.h.
|
inlinefinaloverridevirtualinherited |
return the gradients
dz/dr at the rear of the RoI
Implements IRoiDescriptor.
Definition at line 164 of file RoiDescriptor.h.
|
inlinefinaloverridevirtualinherited |
dz/dr at the front of the RoI
Implements IRoiDescriptor.
Definition at line 165 of file RoiDescriptor.h.
|
inlinefinaloverridevirtualinherited |
|
inlinefinaloverridevirtualinherited |
|
inlinefinaloverridevirtualinherited |
|
inlinefinaloverridevirtualinherited |
|
inlinefinaloverridevirtualinherited |
|
inlinefinaloverridevirtual |
|
inlineinherited |
|
inlineinherited |
Definition at line 142 of file RoiDescriptor.h.
|
overridevirtual |
TrigRoiDescriptor & TrigRoiDescriptor::operator= | ( | const IRoiDescriptor & | roi | ) |
for this, should just use the RoiDescriptor::operator=()
manging it's own constituents, so take a deep copy
these are already managed elsewhere, just copy the pointers
Definition at line 69 of file TrigRoiDescriptor.cxx.
TrigRoiDescriptor & TrigRoiDescriptor::operator= | ( | const TrigRoiDescriptor & | roi | ) |
Definition at line 94 of file TrigRoiDescriptor.cxx.
|
inlinefinaloverridevirtualinherited |
Methods to retrieve data members.
directions
Implements IRoiDescriptor.
Definition at line 100 of file RoiDescriptor.h.
|
inlinefinaloverridevirtualinherited |
|
inlinefinaloverridevirtualinherited |
|
inlineinherited |
|
inlineinherited |
|
finaloverridevirtualinherited |
|
finaloverridevirtualinherited |
accessors to calculate r position at position z along the RoI boundaries
Implements IRoiDescriptor.
Definition at line 247 of file RoiDescriptor.cxx.
|
inlinefinaloverridevirtual |
these quantities probably don't need to be used any more
Reimplemented from RoiDescriptor.
Definition at line 133 of file TrigRoiDescriptor.h.
|
inlinefinaloverridevirtual |
|
inlineinherited |
Definition at line 138 of file RoiDescriptor.h.
|
inlinefinaloverridevirtualinherited |
|
inlinefinaloverridevirtualinherited |
|
inlineinherited |
Definition at line 124 of file RoiDescriptor.h.
|
inlinefinaloverridevirtualinherited |
|
finaloverridevirtualinherited |
|
finaloverridevirtualinherited |
methods to calculate z position at the RoI boundary at a given radius
Implements IRoiDescriptor.
Definition at line 244 of file RoiDescriptor.cxx.
|
inlinefinaloverridevirtualinherited |
z at the most backward end of the RoI
Implements IRoiDescriptor.
Definition at line 113 of file RoiDescriptor.h.
|
inlinefinaloverridevirtualinherited |
z at the most backward end of the RoI
Implements IRoiDescriptor.
Definition at line 176 of file RoiDescriptor.h.
|
inlinefinaloverridevirtualinherited |
z at the most forward end of the RoI
Implements IRoiDescriptor.
Definition at line 175 of file RoiDescriptor.h.
|
inlinefinaloverridevirtualinherited |
z at the most forward end of the RoI
Implements IRoiDescriptor.
Definition at line 112 of file RoiDescriptor.h.
|
inlinestaticinherited |
Definition at line 183 of file RoiDescriptor.h.
|
staticinherited |
set default z-width (but only before any RoiDescriptor has been created)
Definition at line 33 of file RoiDescriptor.cxx.
|
staticconstexprinherited |
convenient
Definition at line 45 of file RoiDescriptor.h.
|
protectedinherited |
flag this as a composite RoI
Definition at line 233 of file RoiDescriptor.h.
|
protectedinherited |
dr/dz at the rear of the RoI
Definition at line 226 of file RoiDescriptor.h.
|
protectedinherited |
dr/dz at the front of the RoI
Definition at line 227 of file RoiDescriptor.h.
|
protectedinherited |
dz/dr at the rear of the RoI
Definition at line 223 of file RoiDescriptor.h.
|
protectedinherited |
dz/dr at the front of the RoI
Definition at line 224 of file RoiDescriptor.h.
|
protectedinherited |
eta of RoI center
Definition at line 213 of file RoiDescriptor.h.
|
protectedinherited |
eta of RoI at zedMinus
Definition at line 218 of file RoiDescriptor.h.
|
protectedinherited |
eta of RoI at zedPlus
Definition at line 219 of file RoiDescriptor.h.
|
protectedinherited |
flag this as a full detector RoI
Definition at line 232 of file RoiDescriptor.h.
|
protected |
lvl1 event number
Definition at line 141 of file TrigRoiDescriptor.h.
|
protectedinherited |
flag to determine whether consituents should be managed
Definition at line 234 of file RoiDescriptor.h.
|
protectedinherited |
phi of RoI center
Definition at line 212 of file RoiDescriptor.h.
|
protectedinherited |
most negative RoI in azimuthal
Definition at line 216 of file RoiDescriptor.h.
|
protectedinherited |
most positive RoI in azimuthal
Definition at line 217 of file RoiDescriptor.h.
|
protectedinherited |
roi constituents
Definition at line 238 of file RoiDescriptor.h.
|
protected |
RoI number.
Definition at line 142 of file TrigRoiDescriptor.h.
|
protected |
lvl1 RoI word from which this RoI was initially constructed
Definition at line 143 of file TrigRoiDescriptor.h.
|
protected |
Definition at line 145 of file TrigRoiDescriptor.h.
|
protectedinherited |
transient version identifier
Definition at line 236 of file RoiDescriptor.h.
|
protectedinherited |
zed of RoI center
Definition at line 214 of file RoiDescriptor.h.
|
protectedinherited |
z position at most negative position along the beamline
Definition at line 220 of file RoiDescriptor.h.
|
protectedinherited |
z at rear of RoI at the outer radius ( = 1100 mm)
Definition at line 229 of file RoiDescriptor.h.
|
protectedinherited |
z at front of RoI at the outer radius ( = 1100 mm)
Definition at line 230 of file RoiDescriptor.h.
|
protectedinherited |
z position at most positive position along the beamline
Definition at line 221 of file RoiDescriptor.h.
|
staticconstexprinherited |
Definition at line 46 of file RoiDescriptor.h.
|
staticprotectedinherited |
to ensure default width is only set once at job startup
Definition at line 208 of file RoiDescriptor.h.
|
staticprotectedinherited |
default parameters - there may be better ways, but this will do
Definition at line 206 of file RoiDescriptor.h.