#include <TIDARoiDescriptorBuilder.h>
|
| static double | exitpoint (double tz0, double teta, double &zexit, double &rexit) |
|
| const TIDARoiParameters & | params () const |
| | access the internal parameter class
|
| void | reset () |
| | internal parameters
|
| double | phicheck (double phi) |
| | helper function to check if phi range was violated
|
| double | etacheck (double eta) |
| | helper function to check if eta range was violated
|
| double | zedcheck (double zed) |
| | helper function to check if zed range was violated
|
|
| static const double | maxRadius = 1000 |
| static const double | maxZed = 2700 |
| | don't save
|
Definition at line 21 of file TIDARoiDescriptorBuilder.h.
◆ TIDARoiDescriptorBuilder()
| TIDARoiDescriptorBuilder::TIDARoiDescriptorBuilder |
( |
const IRoiDescriptor & | r | ) |
|
|
inline |
Definition at line 25 of file TIDARoiDescriptorBuilder.h.
25 :
27 r.eta(),
r.etaMinus(),
r.etaPlus(),
28 r.phi(),
r.phiMinus(),
r.phiPlus(),
29 r.zed(),
r.zedMinus(),
r.zedPlus() )
30 {
31
33
35 for (
unsigned i=0 ;
i<
r.size() ;
i++ ) {
36 const IRoiDescriptor* _r =
r.at(i);
40 }
41 }
42 }
virtual double eta() const =0
virtual double phiPlus() const =0
extreme phi values
virtual double zedPlus() const =0
the zed and eta values at the most forward and most rear ends of the RoI
virtual double phiMinus() const =0
virtual double phi() const =0
Methods to retrieve data members.
virtual double zedMinus() const =0
virtual double zed() const =0
virtual double etaMinus() const =0
virtual double etaPlus() const =0
void push_back(const TIDARoiDescriptor &roi)
TIDARoiDescriptor(bool fullscan=false)
default constructor
◆ ~TIDARoiDescriptorBuilder()
| TIDARoiDescriptorBuilder::~TIDARoiDescriptorBuilder |
( |
| ) |
|
|
inline |
◆ at()
◆ composite()
| bool TIDARoiDescriptor::composite |
( |
| ) |
const |
|
inlineinherited |
composite RoI methods
Definition at line 172 of file TIDARoiDescriptor.h.
172{
return !
m_rois.empty(); }
std::vector< TIDARoiDescriptor > m_rois
◆ eta()
| double TIDARoiDescriptor::eta |
( |
| ) |
const |
|
inlineinherited |
◆ etacheck()
| double TIDARoiDescriptor::etacheck |
( |
double | eta | ) |
|
|
protectedinherited |
helper function to check if eta range was violated
Definition at line 188 of file TIDARoiDescriptor.cxx.
188 {
189 if ( !(
eta > -100 &&
eta < 100) ) {
190 std::cerr << "TIDARoiDescriptor constructed with eta outside range -100 < eta <100 EtaRange" << std::endl;
191 }
193}
◆ etaHalfWidth()
| double TIDARoiDescriptor::etaHalfWidth |
( |
| ) |
const |
|
inlineinherited |
◆ etaMinus()
| double TIDARoiDescriptor::etaMinus |
( |
| ) |
const |
|
inlineinherited |
◆ etaPlus()
| double TIDARoiDescriptor::etaPlus |
( |
| ) |
const |
|
inlineinherited |
◆ exitpoint()
| double TIDARoiDescriptor::exitpoint |
( |
double | tz0, |
|
|
double | teta, |
|
|
double & | zexit, |
|
|
double & | rexit ) |
|
staticinherited |
do we need protection against eta=0 ?
leaves through the barrel side or front face?
through the barrel edge actually need to calculate the z exit coordinate
for proper containment rather than spurious
"eta containment"
Definition at line 32 of file TIDARoiDescriptor.cxx.
32 {
33
34 if ( teta<0 ) zexit = -
maxZed;
35 else if ( teta>0 ) zexit =
maxZed;
36 else {
37 zexit = tz0;
39 return 1e16;
40 }
41
43
44 double tantheta = std::tan( 2*std::atan( std::exp( -teta ) ) );
45
46 rexit = (zexit-tz0) * tantheta;
47
56
57 }
58
59 return tantheta;
60}
static const double maxZed
don't save
static const double maxRadius
◆ isFullscan()
| bool TIDARoiDescriptor::isFullscan |
( |
| ) |
const |
|
inlineinherited |
◆ l1Id()
| unsigned TIDARoiDescriptor::l1Id |
( |
| ) |
const |
|
inlineinherited |
◆ maxR()
| double TIDARoiDescriptor::maxR |
( |
| ) |
const |
|
inlineinherited |
◆ maxZ()
| double TIDARoiDescriptor::maxZ |
( |
| ) |
const |
|
inlineinherited |
◆ operator std::string()
| TIDARoiDescriptor::operator std::string |
( |
| ) |
const |
|
inherited |
Definition at line 164 of file TIDARoiDescriptor.cxx.
164 {
170 s <<
" RoIid: " <<
roiId() <<
" RoIword: " <<
roiWord() <<
" (size " <<
size() <<
")";
171 for (
unsigned i=0 ;
i<
size() ;
i++ ) s <<
"\n\t\t" << i <<
": " << (std::string)*
at(i);
173}
const TIDARoiDescriptor * at(int i) const
gets phi half-width
unsigned roiId() const
identifier methods
◆ operator!=()
◆ operator==()
operators
Definition at line 198 of file TIDARoiDescriptor.h.
198 {
199 if (
roiWord() !=
b.roiWord() )
return false;
201 if ( std::fabs(
phi() -
b.phi()) > epsilon )
return false;
202 if ( std::fabs(
eta() -
b.eta()) > epsilon )
return false;
203 if ( std::fabs(
zed() -
b.zed()) > epsilon )
return false;
204 return true;
205 }
◆ operator[]()
◆ params()
◆ phi()
| double TIDARoiDescriptor::phi |
( |
| ) |
const |
|
inlineinherited |
◆ phicheck()
| double TIDARoiDescriptor::phicheck |
( |
double | phi | ) |
|
|
protectedinherited |
◆ phiHalfWidth()
| double TIDARoiDescriptor::phiHalfWidth |
( |
| ) |
const |
|
inlineinherited |
Definition at line 180 of file TIDARoiDescriptor.h.
180 {
183 return dphi;
184 }
const TIDARoiParameters & params() const
access the internal parameter class
◆ phiMinus()
| double TIDARoiDescriptor::phiMinus |
( |
| ) |
const |
|
inlineinherited |
◆ phiPlus()
| double TIDARoiDescriptor::phiPlus |
( |
| ) |
const |
|
inlineinherited |
◆ push_back() [1/2]
◆ push_back() [2/2]
◆ reset()
| void TIDARoiDescriptor::reset |
( |
| ) |
|
|
inlineprotectedinherited |
◆ rMinusZed()
| double TIDARoiDescriptor::rMinusZed |
( |
| ) |
const |
|
inlineinherited |
Definition at line 151 of file TIDARoiDescriptor.h.
double m_rMinusZed
don't save - transient zPlus at radius R
◆ roiId()
| unsigned TIDARoiDescriptor::roiId |
( |
| ) |
const |
|
inlineinherited |
◆ roiWord()
| unsigned TIDARoiDescriptor::roiWord |
( |
| ) |
const |
|
inlineinherited |
◆ rPlusZed()
| double TIDARoiDescriptor::rPlusZed |
( |
| ) |
const |
|
inlineinherited |
Definition at line 150 of file TIDARoiDescriptor.h.
double m_rPlusZed
don't save - transient zMinus at radius R
◆ set_l1Id()
| void TIDARoiDescriptor::set_l1Id |
( |
const unsigned int | l1id | ) |
|
|
inlineinherited |
◆ set_roiId()
| void TIDARoiDescriptor::set_roiId |
( |
const unsigned int | id | ) |
|
|
inlineinherited |
◆ set_roiWord()
| void TIDARoiDescriptor::set_roiWord |
( |
const unsigned int | roiWord | ) |
|
|
inlineinherited |
◆ size()
| size_t TIDARoiDescriptor::size |
( |
| ) |
const |
|
inlineinherited |
◆ version()
| int TIDARoiDescriptor::version |
( |
| ) |
const |
|
inlineinherited |
◆ zed()
| double TIDARoiDescriptor::zed |
( |
| ) |
const |
|
inlineinherited |
◆ zedcheck()
| double TIDARoiDescriptor::zedcheck |
( |
double | zed | ) |
|
|
protectedinherited |
helper function to check if zed range was violated
Definition at line 196 of file TIDARoiDescriptor.cxx.
196 {
197 if ( !(
zed > -100000 &&
zed < 100000 ) ) {
198 std::cerr << "TIDARoiDescriptor constructed with eta outside range -100000 < sed <100000 ZedRange" << std::endl;
199 }
201}
◆ zedHalfWidth()
| double TIDARoiDescriptor::zedHalfWidth |
( |
| ) |
const |
|
inlineinherited |
◆ zedMinus()
| double TIDARoiDescriptor::zedMinus |
( |
| ) |
const |
|
inlineinherited |
◆ zedMinusR()
| double TIDARoiDescriptor::zedMinusR |
( |
| ) |
const |
|
inlineinherited |
Definition at line 148 of file TIDARoiDescriptor.h.
double m_zedMinusR
don't save - transient zPlus at radius R
◆ zedPlus()
| double TIDARoiDescriptor::zedPlus |
( |
| ) |
const |
|
inlineinherited |
◆ zedPlusR()
| double TIDARoiDescriptor::zedPlusR |
( |
| ) |
const |
|
inlineinherited |
◆ m_cached
| bool TIDARoiDescriptor::m_cached |
|
protectedinherited |
◆ m_dphi
| double TIDARoiDescriptor::m_dphi |
|
protectedinherited |
◆ m_fullscan
| bool TIDARoiDescriptor::m_fullscan |
|
protectedinherited |
◆ m_l1Id
| unsigned int TIDARoiDescriptor::m_l1Id |
|
protectedinherited |
◆ m_params
◆ m_rMinusZed
| double TIDARoiDescriptor::m_rMinusZed |
|
protectedinherited |
◆ m_roiId
| unsigned int TIDARoiDescriptor::m_roiId |
|
protectedinherited |
◆ m_rois
◆ m_roiWord
| unsigned int TIDARoiDescriptor::m_roiWord |
|
protectedinherited |
◆ m_rPlusZed
| double TIDARoiDescriptor::m_rPlusZed |
|
protectedinherited |
◆ m_tanthetaMinus
| double TIDARoiDescriptor::m_tanthetaMinus |
|
protectedinherited |
◆ m_tanthetaPlus
| double TIDARoiDescriptor::m_tanthetaPlus |
|
protectedinherited |
◆ m_zedMinusR
| double TIDARoiDescriptor::m_zedMinusR |
|
protectedinherited |
◆ m_zedPlusR
| double TIDARoiDescriptor::m_zedPlusR |
|
protectedinherited |
◆ maxRadius
| const double TIDARoiDescriptor::maxRadius = 1000 |
|
staticprotectedinherited |
◆ maxZed
| const double TIDARoiDescriptor::maxZed = 2700 |
|
staticprotectedinherited |
The documentation for this class was generated from the following file: