#include <ActiveFraction.h>
Definition at line 18 of file ActiveFraction.h.
◆ ActiveFraction()
| TRTCond::ActiveFraction::ActiveFraction |
( |
| ) |
|
|
inline |
Definition at line 35 of file ActiveFraction.h.
35 {
49 float phiEdgeLow = -1. *
M_PI;
53 }
54
55 std::vector<float> dummyPhiVec(
m_phiBins.size(), 1. );
56 std::vector<std::vector<float> > dummyTable(
m_etaBins.size(), dummyPhiVec );
58 }
Scalar deltaPhi(const MatrixBase< Derived > &vec) const
std::vector< std::pair< float, float > > m_phiBins
std::vector< std::vector< float > > m_activeFracTable
std::vector< std::pair< float, float > > m_etaBins
◆ ~ActiveFraction()
| virtual TRTCond::ActiveFraction::~ActiveFraction |
( |
| ) |
|
|
inlinevirtual |
◆ findEtaBin()
| int TRTCond::ActiveFraction::findEtaBin |
( |
float | eta | ) |
const |
|
inline |
Definition at line 60 of file ActiveFraction.h.
60 {
63 std::pair<float,float> theBin =
m_etaBins.at(etaBin);
64 if (
eta > theBin.first &&
eta <= theBin.second )
break;
65 }
66 if ( etaBin == (
int)
m_etaBins.size() )
return -1;
67
69 }
Scalar eta() const
pseudorapidity method
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap etaBin
◆ findPhiBin()
| int TRTCond::ActiveFraction::findPhiBin |
( |
float | phi | ) |
const |
|
inline |
Definition at line 71 of file ActiveFraction.h.
71 {
74 std::pair<float,float> theBin =
m_phiBins.at(phiBin);
75 if (
phi > theBin.first &&
phi <= theBin.second )
break;
76 }
77 if ( phiBin == (
int)
m_phiBins.size() )
return-1;
79 }
Scalar phi() const
phi method
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setPhiMap phiBin
◆ getActiveFraction()
| float TRTCond::ActiveFraction::getActiveFraction |
( |
float | eta, |
|
|
float | phi ) const |
|
inline |
Definition at line 81 of file ActiveFraction.h.
81 {
82
83
85 if ( etaBin < 0 ) return 1.;
87 if ( phiBin < 0 ) return 1.;
89 }
int findEtaBin(float eta) const
int findPhiBin(float phi) const
◆ getEtaBins()
| const std::vector< std::pair< float, float > > & TRTCond::ActiveFraction::getEtaBins |
( |
| ) |
const |
|
inline |
◆ getPhiBins()
| const std::vector< std::pair< float, float > > & TRTCond::ActiveFraction::getPhiBins |
( |
| ) |
const |
|
inline |
◆ setActiveFraction()
| void TRTCond::ActiveFraction::setActiveFraction |
( |
unsigned int | etaBin, |
|
|
unsigned int | phiBin, |
|
|
float | value ) |
|
inline |
◆ m_activeFracTable
| std::vector<std::vector<float> > TRTCond::ActiveFraction::m_activeFracTable |
|
private |
◆ m_etaBins
| std::vector<std::pair<float,float> > TRTCond::ActiveFraction::m_etaBins |
|
private |
◆ m_nBinsPhi
| int TRTCond::ActiveFraction::m_nBinsPhi |
|
private |
◆ m_phiBins
| std::vector<std::pair<float,float> > TRTCond::ActiveFraction::m_phiBins |
|
private |
The documentation for this class was generated from the following file: