15#ifndef ROIDESCRIPTOR_ROIDESCRIPTOR_H
16#define ROIDESCRIPTOR_ROIDESCRIPTOR_H
46 static constexpr bool ROI =
false;
69 double phi_,
double phiMinus_,
double phiPlus_,
79 double phiMinus_,
double phiPlus_ );
108 virtual unsigned int roiId()
const override {
return 0; }
109 virtual unsigned int l1Id()
const override {
return 0; }
110 virtual unsigned int roiWord()
const override {
return 0; }
128 virtual operator std::string()
const override;
172 virtual double zedMin(
double r)
const override final;
173 virtual double zedMax(
double r)
const override final;
178 virtual double rhoMin(
double z)
const override final;
179 virtual double rhoMax(
double z)
const override final;
std::ostream & operator<<(std::ostream &m, const RoiDescriptor &d)
IRoiDescriptor()
default constructor
std::vector< constIRoiDescriptor * >::const_iterator roi_iterator
Describes the Region of Ineterest geometry It has basically 9 parameters.
virtual double etaMinus() const override final
gets eta at zMinus
void push_back(const IRoiDescriptor *roi)
add a RoiDescriptor
bool manageConstituents() const
always manage constituents ???
virtual double etaPlus() const override final
gets eta at zedPlus
virtual double zed() const override final
virtual double zedMax(double r) const override final
static std::atomic< bool > s_firstInstanceCreated
to ensure default width is only set once at job startup
float m_etaPlus
eta of RoI at zedPlus
float m_phi
phi of RoI center
float m_eta
eta of RoI center
static double zedWidthDefault()
float m_dzdrPlus
dz/dr at the front of the RoI
virtual unsigned int roiWord() const override
virtual bool isFullscan() const override final
is this a full scan RoI?
RoiDescriptor & operator=(const IRoiDescriptor &r)
virtual double zedOuterPlus() const override final
z at the most forward end of the RoI
virtual double dzdrPlus() const override final
dz/dr at the front of the RoI
void reserve(size_t s)
reserve elements in vector
float m_etaMinus
eta of RoI at zedMinus
virtual double zedMin(double r) const override final
methods to calculate z position at the RoI boundary at a given radius
RoiDescriptor(bool fullscan=ROI)
default constructor
float m_zedOuterMinus
z at rear of RoI at the outer radius ( = 1100 mm)
virtual double phi() const override final
Methods to retrieve data members.
friend class TrigRoiDescriptorCnv_p2
static constexpr bool ROI
static constexpr bool FULLSCAN
convenient
int m_version
transient version identifier
virtual double zedOuterMinus() const override final
z at the most backward end of the RoI
virtual double rhoMin(double z) const override final
accessors to calculate r position at position z along the RoI boundaries
float m_zedMinus
z position at most negative position along the beamline
virtual double dzdrMinus() const override final
return the gradients
virtual double phiMinus() const override final
gets phiMinus
bool m_composite
flag this as a composite RoI
bool m_manageConstituents
flag to determine whether consituents should be managed
float m_dzdrMinus
dz/dr at the rear of the RoI
virtual double drdzMinus() const override final
dr/dz at the rear of the RoI
float m_drdzPlus
dr/dz at the front of the RoI
float m_zed
zed of RoI center
void manageConstituents(bool b)
virtual roi_iterator begin() const override final
iterators
virtual unsigned int roiId() const override
these quantities probably don't need to be used any more
void setComposite(bool b=true)
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
virtual double zedPlus() const override final
z at the most forward end of the RoI
virtual double zedMinus() const override final
z at the most backward end of the RoI
virtual unsigned int l1Id() const override
static std::atomic< double > s_zedWidthDefault
default parameters - there may be better ways, but this will do
void clear()
clear the vector
std::vector< const IRoiDescriptor * > m_roiDescriptors
roi constituents
virtual double rhoMax(double z) const override final
float m_drdzMinus
dr/dz at the rear of the RoI
virtual const IRoiDescriptor * at(int i) const override final
find an RoiDescriptor constituent
friend class TrigRoiDescriptorCnv_p3
float m_phiMinus
most negative RoI in azimuthal
bool m_fullscan
flag this as a full detector RoI
virtual int version() const override final
versioning
float m_phiPlus
most positive RoI in azimuthal
virtual unsigned size() const override final
number of constituents
virtual double eta() const override final
virtual double drdzPlus() const override final
dr/dz at the front of the RoI
virtual bool composite() const override final
SuperRoI compatability methods.
float m_zedPlus
z position at most positive position along the beamline
virtual roi_iterator end() const override final
float m_zedOuterPlus
z at front of RoI at the outer radius ( = 1100 mm)
virtual double phiPlus() const override final
gets phiPlus