#include <DTSectCollPhSegm.h>
Public Member Functions | |
DTChamberId | ChamberId () const |
Return chamber identifier. | |
void | clear () |
Clear. | |
int | code () const |
Return trigger code (MTTF input format [0,7]) | |
int | DeltaPsiR () const |
Return bending angle (bit pattern) | |
DTSectCollPhSegm (DTSectCollId scId, int step, const DTChambPhSegm *tsPhiTrig, int isFirst) | |
Constructor. | |
DTSectCollPhSegm (DTSectCollId scId, int step) | |
Constructor. | |
DTSectCollPhSegm (const DTSectCollPhSegm &) | |
Constructor. | |
int | isFirst () const |
Return if it is a first track. | |
float | K () const |
Return trigger K parameter. | |
int | oldCode () const |
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8) | |
DTSectCollPhSegm & | operator= (const DTSectCollPhSegm &seg) |
Assignment operator. | |
int | phi () const |
Return trigger X parameter converted to angle (bit pattern) | |
int | phiB () const |
Return bending angle (bit pattern) | |
int | posMask () const |
Return correlator output code (position of segments) | |
void | print () const |
Print. | |
int | psi () const |
Return trigger K parameter converted to angle (bit pattern) | |
int | psiR () const |
Return trigger X parameter converted to angle (bit pattern) | |
int | pvCode () const |
Return the preview code (10*inner_code or outer_code; X_code=1,2,3,4,8) | |
int | pvK () const |
Return the preview K. | |
DTSectCollId | SCId () const |
Return SC identifier. | |
void | setTsPhiTrig (const DTChambPhSegm *tsphitrig, int isFirst) |
Associate a Trigger Server Phi trigger. | |
int | step () const |
Return step number. | |
int | tracoNumber () const |
Return parent TRACO number. | |
const DTChambPhSegm * | tsPhiTrig () const |
Return associated Trigger Server Phi trigger. | |
float | X () const |
Return trigger X parameter. | |
~DTSectCollPhSegm () | |
Destructor. | |
Private Attributes | |
myint8 | m_isFirst |
DTSectCollId | m_sectcollid |
myint8 | m_step |
const DTChambPhSegm * | m_tsphitrig |
Muon Sector Collector Trigger Phi candidate
Definition at line 40 of file DTSectCollPhSegm.h.
DTSectCollPhSegm::DTSectCollPhSegm | ( | DTSectCollId | scId, |
int | step | ||
) |
Constructor.
Muon Sector Collector Trigger Phi candidate
Authors: S. Marcellini, D. Bonacorsi Modifications: 11/11/06 C. Battilana: New Syc Functionalities implemented
Definition at line 35 of file DTSectCollPhSegm.cc.
References clear().
: m_sectcollid(scId), m_step(step) { clear(); }
DTSectCollPhSegm::DTSectCollPhSegm | ( | DTSectCollId | scId, |
int | step, | ||
const DTChambPhSegm * | tsPhiTrig, | ||
int | isFirst | ||
) |
Constructor.
Definition at line 40 of file DTSectCollPhSegm.cc.
: m_sectcollid(scId), m_step(step), m_isFirst(isFirst), m_tsphitrig(tsPhiTrig) { }
DTSectCollPhSegm::DTSectCollPhSegm | ( | const DTSectCollPhSegm & | seg | ) |
Constructor.
Definition at line 48 of file DTSectCollPhSegm.cc.
: m_sectcollid(seg.m_sectcollid), m_step(seg.m_step), m_isFirst(seg.m_isFirst), m_tsphitrig(seg.m_tsphitrig) { }
DTSectCollPhSegm::~DTSectCollPhSegm | ( | ) |
DTChamberId DTSectCollPhSegm::ChamberId | ( | ) | const [inline, virtual] |
Return chamber identifier.
Implements DTTrigData.
Definition at line 85 of file DTSectCollPhSegm.h.
References DTChambPhSegm::ChamberId(), and m_tsphitrig.
{ return m_tsphitrig->ChamberId(); }
void DTSectCollPhSegm::clear | ( | void | ) |
Clear.
Definition at line 75 of file DTSectCollPhSegm.cc.
References m_isFirst, and m_tsphitrig.
Referenced by DTSectCollPhSegm().
{ m_tsphitrig = 0; m_isFirst = 0; }
int DTSectCollPhSegm::code | ( | ) | const [inline] |
Return trigger code (MTTF input format [0,7])
Definition at line 97 of file DTSectCollPhSegm.h.
References DTChambPhSegm::code(), and m_tsphitrig.
{ return m_tsphitrig->code(); }
int DTSectCollPhSegm::DeltaPsiR | ( | ) | const [inline] |
Return bending angle (bit pattern)
Definition at line 118 of file DTSectCollPhSegm.h.
References DTChambPhSegm::DeltaPsiR(), and m_tsphitrig.
Referenced by print().
{ return m_tsphitrig->DeltaPsiR(); }
int DTSectCollPhSegm::isFirst | ( | ) | const [inline] |
Return if it is a first track.
Definition at line 94 of file DTSectCollPhSegm.h.
References m_isFirst.
Referenced by setTsPhiTrig().
{ return m_isFirst==1; }
float DTSectCollPhSegm::K | ( | ) | const [inline] |
Return trigger K parameter.
Definition at line 103 of file DTSectCollPhSegm.h.
References DTChambPhSegm::K(), and m_tsphitrig.
Referenced by print().
{ return m_tsphitrig->K(); }
int DTSectCollPhSegm::oldCode | ( | ) | const [inline] |
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
Definition at line 100 of file DTSectCollPhSegm.h.
References m_tsphitrig, and DTChambPhSegm::oldCode().
Referenced by print().
{ return m_tsphitrig->oldCode(); }
DTSectCollPhSegm & DTSectCollPhSegm::operator= | ( | const DTSectCollPhSegm & | seg | ) |
Assignment operator.
Definition at line 64 of file DTSectCollPhSegm.cc.
References m_isFirst, m_sectcollid, m_step, and m_tsphitrig.
{ if(this != &seg){ m_sectcollid = seg.m_sectcollid; m_step = seg.m_step; m_tsphitrig = seg.m_tsphitrig ; m_isFirst = seg.m_isFirst ; } return *this; }
int DTSectCollPhSegm::phi | ( | void | ) | const [inline] |
Return trigger X parameter converted to angle (bit pattern)
Definition at line 115 of file DTSectCollPhSegm.h.
References m_tsphitrig, and DTChambPhSegm::psiR().
{ return m_tsphitrig->psiR(); }
int DTSectCollPhSegm::phiB | ( | ) | const [inline] |
Return bending angle (bit pattern)
Definition at line 121 of file DTSectCollPhSegm.h.
References DTChambPhSegm::DeltaPsiR(), and m_tsphitrig.
{ return m_tsphitrig->DeltaPsiR(); }
int DTSectCollPhSegm::posMask | ( | ) | const [inline] |
Return correlator output code (position of segments)
Definition at line 124 of file DTSectCollPhSegm.h.
References m_tsphitrig, and DTChambPhSegm::posMask().
Referenced by print().
{ return m_tsphitrig->posMask(); }
void DTSectCollPhSegm::print | ( | void | ) | const [virtual] |
Print.
Implements DTTrigData.
Definition at line 81 of file DTSectCollPhSegm.cc.
References gather_cfg::cout, DeltaPsiR(), DTTracoTrigData::eqIn(), DTTracoTrigData::eqOut(), K(), m_tsphitrig, DTConfig::NTCTSS, oldCode(), posMask(), psi(), psiR(), DTTrigData::sector(), DTTrigData::station(), step(), DTTracoTrigData::tracoNumber(), tracoNumber(), DTChambPhSegm::tracoTrig(), DTTrigData::wheel(), and X().
{ std::cout << "TP at step " << step() << ", in wheel " << wheel(); std::cout << ", station " << station() << ", sector " << sector() << std::endl; std::cout << "TSS " << (m_tsphitrig->tracoTrig()->tracoNumber()-1) / DTConfig::NTCTSS + 1; std::cout << ", TRACO " << tracoNumber() << " : " << std::endl; std::cout << " --> code " << oldCode() << ", K " << K(); std::cout << ", X " << X() << ", position mask " << posMask() << std::endl; std::cout << "inner bti equation=" << m_tsphitrig->tracoTrig()->eqIn() << " outer bti equation=" << m_tsphitrig->tracoTrig()->eqOut() << std::endl; std::cout << " psi " << psi() << ", psiR " << psiR(); std::cout << ", DeltaPsiR " << DeltaPsiR() << std::endl; }
int DTSectCollPhSegm::psi | ( | ) | const [inline] |
Return trigger K parameter converted to angle (bit pattern)
Definition at line 109 of file DTSectCollPhSegm.h.
References m_tsphitrig, and DTChambPhSegm::psi().
Referenced by print().
{ return m_tsphitrig->psi(); }
int DTSectCollPhSegm::psiR | ( | ) | const [inline] |
Return trigger X parameter converted to angle (bit pattern)
Definition at line 112 of file DTSectCollPhSegm.h.
References m_tsphitrig, and DTChambPhSegm::psiR().
Referenced by print().
{ return m_tsphitrig->psiR(); }
int DTSectCollPhSegm::pvCode | ( | ) | const [inline] |
Return the preview code (10*inner_code or outer_code; X_code=1,2,3,4,8)
Definition at line 127 of file DTSectCollPhSegm.h.
References m_tsphitrig, and DTChambPhSegm::pvCode().
{ return m_tsphitrig->pvCode(); }
int DTSectCollPhSegm::pvK | ( | ) | const [inline] |
Return the preview K.
Definition at line 130 of file DTSectCollPhSegm.h.
References m_tsphitrig, and DTChambPhSegm::pvK().
{ return m_tsphitrig->pvK(); }
DTSectCollId DTSectCollPhSegm::SCId | ( | ) | const [inline] |
Return SC identifier.
Definition at line 82 of file DTSectCollPhSegm.h.
References m_sectcollid.
{ return m_sectcollid; }
void DTSectCollPhSegm::setTsPhiTrig | ( | const DTChambPhSegm * | tsphitrig, |
int | isFirst | ||
) | [inline] |
Associate a Trigger Server Phi trigger.
Definition at line 62 of file DTSectCollPhSegm.h.
References isFirst(), m_isFirst, and m_tsphitrig.
{ m_tsphitrig=tsphitrig; m_isFirst=isFirst; }
int DTSectCollPhSegm::step | ( | ) | const [inline] |
Return step number.
Definition at line 79 of file DTSectCollPhSegm.h.
References m_step.
Referenced by print().
{ return m_step; }
int DTSectCollPhSegm::tracoNumber | ( | ) | const [inline] |
Return parent TRACO number.
Definition at line 91 of file DTSectCollPhSegm.h.
References m_tsphitrig, and DTChambPhSegm::tracoNumber().
Referenced by print().
{ return m_tsphitrig->tracoNumber(); }
const DTChambPhSegm* DTSectCollPhSegm::tsPhiTrig | ( | ) | const [inline] |
Return associated Trigger Server Phi trigger.
Definition at line 76 of file DTSectCollPhSegm.h.
References m_tsphitrig.
{ return m_tsphitrig; }
float DTSectCollPhSegm::X | ( | ) | const [inline] |
Return trigger X parameter.
Definition at line 106 of file DTSectCollPhSegm.h.
References m_tsphitrig, and DTChambPhSegm::X().
Referenced by print().
{ return m_tsphitrig->X(); }
myint8 DTSectCollPhSegm::m_isFirst [private] |
Definition at line 140 of file DTSectCollPhSegm.h.
Referenced by clear(), isFirst(), operator=(), and setTsPhiTrig().
DTSectCollId DTSectCollPhSegm::m_sectcollid [private] |
Definition at line 134 of file DTSectCollPhSegm.h.
Referenced by operator=(), and SCId().
myint8 DTSectCollPhSegm::m_step [private] |
Definition at line 137 of file DTSectCollPhSegm.h.
Referenced by operator=(), and step().
const DTChambPhSegm* DTSectCollPhSegm::m_tsphitrig [private] |
Definition at line 143 of file DTSectCollPhSegm.h.
Referenced by ChamberId(), clear(), code(), DeltaPsiR(), K(), oldCode(), operator=(), phi(), phiB(), posMask(), print(), psi(), psiR(), pvCode(), pvK(), setTsPhiTrig(), tracoNumber(), tsPhiTrig(), and X().