4 using namespace trklet;
19 std::vector<int> tps) {
21 layerdisk_ = layerdisk;
45 isPSmodule_ = isPSmodule;
46 isFlipped_ = isFlipped;
52 out <<
"Stub: " << DTClink_ <<
"\t" << region_ <<
"\t" << layerdisk_ <<
"\t" << stubword_ <<
"\t" << isPSmodule_
53 <<
"\t" << isFlipped_ <<
"\t" << x_ <<
"\t" << y_ <<
"\t" << z_ <<
"\t" << bend_ <<
"\t" << strip_ <<
"\t"
54 <<
"\t" << tps_.size() <<
" \t";
55 for (
int itp : tps_) {
66 void L1TStub::lorentzcor(
double shift) {
68 double phi = this->phi() - shift /
r;
69 this->x_ = r *
cos(phi);
70 this->y_ = r *
sin(phi);
80 return ((
int)strip_ - 509.5) * pitch * flip /
r2();
82 return -((int)strip_ - 509.5) * pitch * flip /
r2();
85 double L1TStub::alphanorm()
const {
92 return ((
int)strip_ - 509.5) * flip / 510.0;
94 return -((int)strip_ - 509.5) * flip / 510.0;
97 void L1TStub::setXY(
double x,
double y) {
102 bool L1TStub::tpmatch(
int tp)
const {
103 for (
int itp : tps_) {
111 bool L1TStub::tpmatch2(
int tp)
const {
114 for (
int itp : tps_) {
123 return match1 && match2;
126 bool L1TStub::isTilted()
const {
static const char module_[]
static const char layer_[]
Sin< T >::type sin(const T &t)
constexpr std::array< unsigned int, N_PSLAYER > N_MOD_PLANK
constexpr unsigned int N_TILTED_RINGS
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
unsigned int iphi() const
unsigned int module() const
unsigned int ladder() const
constexpr unsigned int N_PSLAYER
static unsigned int const shift
unsigned int layer() const