|
ATLAS Offline Software
|
Go to the documentation of this file.
28 #ifndef TIDA_ROIDESCRIPTOR_H
29 #define TIDA_ROIDESCRIPTOR_H
158 static double exitpoint(
double tz0,
double teta,
double& zexit,
double& rexit );
168 operator std::string()
const;
201 if (
roiWord() !=
b.roiWord() )
return false;
202 double epsilon=0.001;
203 if ( std::fabs(
phi() -
b.phi()) > epsilon )
return false;
204 if ( std::fabs(
eta() -
b.eta()) > epsilon )
return false;
205 if ( std::fabs(
zed() -
b.zed()) > epsilon )
return false;
221 virtual double zedMin(
double r)
const {
return 0; }
222 virtual double zedMax(
double r)
const {
return 0; }
224 virtual double rhoMin(
double z)
const {
return 0; }
225 virtual double rhoMax(
double z)
const {
return 0; }
228 virtual double dzdrMinus()
const {
return 0; }
229 virtual double dzdrPlus()
const {
return 0; }
231 virtual double drdzMinus()
const {
return 0; }
232 virtual double drdzPlus()
const {
return 0; }
234 virtual bool contains(
double z0,
double dzdr )
const {
return false; }
235 virtual bool contains_internal(
double z0,
double zouter )
const {
return false; }
238 virtual bool contains(
double _z,
double _r,
double _phi )
const {
return false; }
239 virtual bool containsPhi(
double _phi )
const {
return false; }
240 virtual bool containsZed(
double _z,
double _r )
const {
return false; }
303 return s << (std::string)
d;
306 #endif // TIDA_ROIDESCRIPTOR_H
std::ostream & operator<<(std::ostream &s, const TIDARoiDescriptor &d)
static const double maxRadius
std::vector< TIDARoiDescriptor > m_rois
double zedcheck(double zed)
helper function to check if zed range was violated
double m_zedMinusR
don't save - transient zPlus at radius R
double m_rMinusZed
don't save - transient zPlus at radius R
bool containsPhi(const IRoiDescriptor &roi, double phi)
test whether a stub is contained within the roi
bool containsZed(const IRoiDescriptor &roi, double z, double r)
static double exitpoint(double tz0, double teta, double &zexit, double &rexit)
double m_dphi
cache flag - these should be mutable
Describes the Region of Ineterest geometry It has basically 8 parameters.
const TIDARoiDescriptor * operator[](int i) const
double zedPlusR() const
full containment methods
const TIDARoiParameters & params() const
access the internal parameter class
static const double maxZed
don't save
double m_rPlusZed
don't save - transient zMinus at radius R
bool operator==(const TIDARoiDescriptor &b) const
operators
void set_roiId(const unsigned int id)
set roiId
bool composite() const
composite RoI methods
unsigned roiId() const
identifier methods
double m_tanthetaMinus
don't save - transient roi edge gradients
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring
TIDARoiParameters m_params
don't save
TIDARoiDescriptor(unsigned l1id, int id, double eta, double etaMinus, double etaPlus, double phi, double phiMinus, double phiPlus, double zed, double zedMinus, double zedPlus)
constructor
void set_roiWord(const unsigned int roiWord)
sets RoI word
void set_l1Id(const unsigned int l1id)
set event number
double etaHalfWidth() const
gets eta half-width
TIDARoiDescriptor(unsigned roiWord, unsigned l1id, int id, double eta, double etaMinus, double etaPlus, double phi, double phiMinus, double phiPlus, double zed, double zedMinus, double zedPlus)
constructor
double m_zedPlusR
cached value -
virtual ~TIDARoiDescriptor()
double zedHalfWidth() const
gets eta half-width
const TIDARoiDescriptor * at(int i) const
gets phi half-width
void push_back(const TIDARoiDescriptor &roi)
double phiHalfWidth() const
Class to store the eta, phi, zed, parameters and ranges for the TIDARoiDescriptor class.
TIDARoiDescriptor & operator=(const TIDARoiDescriptor &r)
assignment
double etacheck(double eta)
helper function to check if eta range was violated
double phicheck(double phi)
helper function to check if phi range was violated
TIDARoiDescriptor(bool fullscan=false)
default constructor
void push_back(const TIDARoiDescriptor *roi)
bool operator!=(const TIDARoiDescriptor &b) const
double m_tanthetaPlus
don't save - transient zMinus at radius R
void reset()
internal parameters