#include <DTSCTrigUnit.h>
Public Member Functions | |
DTBtiCard * | BtiTrigs () const |
Return container of BTI triggers. | |
GlobalVector | CMSDirection (const DTTrigData *trig) const |
Direction of a trigger-data object in CMS frame. | |
GlobalPoint | CMSPosition (const DTTrigData *trig) const |
Coordinate of a trigger-data object in CMS frame. | |
DTSCTrigUnit (DTChamber *stat) | |
Constructor. | |
void | dumpGeom () const |
Dump the geometry. | |
void | dumpLUT (short int btic) const |
Dump the Lut file. | |
DTTrigGeom * | geom () const |
The associated geometry. | |
DTGeomSupplier * | GeomSupplier (const DTTrigData *trig) const |
Return the appropriate coordinate supplier. | |
LocalVector | localDirection (const DTTrigData *trig) const |
Direction of a trigger-data object in chamber frame. | |
LocalPoint | localPosition (const DTTrigData *trig) const |
Coordinate of a trigger-data object in chamber frame. | |
int | nDTBtiChip () |
Number of active DTBtiChips. | |
int | nDTTracoChip () |
Number of active DTTracoChips. | |
int | nPhiSegm (int step) |
Number of Phi segments for a given step. | |
int | nThetaSegm (int step) |
Number of theta segments for a given step. | |
const DTChambPhSegm * | phiSegment (int step, int n) |
Return output segments, phi view. | |
void | print (DTTrigData *trig) const |
Print a trigger-data object. | |
int | sector () const |
Return sector number. | |
void | setConfig (const DTConfigManager *conf) |
Set configuration. | |
void | setGeom (const DTChamber *stat) |
Set geometry. | |
const DTChamber * | stat () const |
The associated chamber. | |
DTChamberId | statId () const |
Identifier of the associated chamber. | |
int | station () const |
Return station number. | |
const DTChambThSegm * | thetaSegment (int step, int n) |
Return output segments, theta view. | |
DTTracoCard * | TracoTrigs () const |
Return container of TRACO triggers. | |
DTTSPhi * | TSPhTrigs () const |
Return the chamber Trigger Server (Phi) | |
DTTSTheta * | TSThTrigs () const |
Return the chamber Trigger Server (Theta) | |
int | wheel () const |
Return wheel number. | |
~DTSCTrigUnit () | |
Destructor. | |
Private Attributes | |
DTTrigGeom * | _geom |
DTBtiCard * | _theBTIs |
DTTracoCard * | _theTRACOs |
DTTSPhi * | _theTSPhi |
DTTSTheta * | _theTSTheta |
Muon Barrel Sector Collector Trigger Unit (Chamber trigger)
Definition at line 54 of file DTSCTrigUnit.h.
DTSCTrigUnit::DTSCTrigUnit | ( | DTChamber * | stat | ) |
Constructor.
Definition at line 35 of file DTSCTrigUnit.cc.
References _geom, _theBTIs, _theTRACOs, _theTSPhi, and _theTSTheta.
{ // DTChamberId chambid = stat->id(); // bool geom_debug = conf_manager->getDTConfigTrigUnit(chambid)->debug(); // create the geometry from the station //_geom = new DTTrigGeom(stat, geom_debug); _geom = new DTTrigGeom(stat, false); // CB FIXME: update when debug will be read via PSet // create BTI _theBTIs = new DTBtiCard(_geom); // create TSTheta _theTSTheta = new DTTSTheta(_geom, _theBTIs); // create TRACO _theTRACOs = new DTTracoCard(_geom, _theBTIs, _theTSTheta); // create TSPhi _theTSPhi = new DTTSPhi(_geom, _theTRACOs); }
DTSCTrigUnit::~DTSCTrigUnit | ( | ) |
Destructor.
Definition at line 62 of file DTSCTrigUnit.cc.
References _geom, _theBTIs, _theTRACOs, _theTSPhi, and _theTSTheta.
{ delete _theBTIs; delete _theTRACOs; delete _theTSPhi; delete _theTSTheta; delete _geom; }
DTBtiCard* DTSCTrigUnit::BtiTrigs | ( | ) | const [inline] |
Return container of BTI triggers.
Definition at line 90 of file DTSCTrigUnit.h.
References _theBTIs.
Referenced by DTTrig::BtiTrigs(), and DTTrig::triggerReco().
{ return _theBTIs; }
GlobalVector DTSCTrigUnit::CMSDirection | ( | const DTTrigData * | trig | ) | const [inline] |
Direction of a trigger-data object in CMS frame.
Definition at line 120 of file DTSCTrigUnit.h.
References DTGeomSupplier::CMSDirection(), and GeomSupplier().
{ return GeomSupplier(trig)->CMSDirection(trig); }
GlobalPoint DTSCTrigUnit::CMSPosition | ( | const DTTrigData * | trig | ) | const [inline] |
Coordinate of a trigger-data object in CMS frame.
Definition at line 110 of file DTSCTrigUnit.h.
References DTGeomSupplier::CMSPosition(), and GeomSupplier().
{ return GeomSupplier(trig)->CMSPosition(trig); }
void DTSCTrigUnit::dumpGeom | ( | ) | const [inline] |
Dump the geometry.
Definition at line 130 of file DTSCTrigUnit.h.
References _geom, and DTTrigGeom::dumpGeom().
void DTSCTrigUnit::dumpLUT | ( | short int | btic | ) | const [inline] |
Dump the Lut file.
Definition at line 133 of file DTSCTrigUnit.h.
References _geom, and DTTrigGeom::dumpLUT().
Referenced by DTTrig::dumpLuts().
DTTrigGeom* DTSCTrigUnit::geom | ( | ) | const [inline] |
The associated geometry.
Definition at line 66 of file DTSCTrigUnit.h.
References _geom.
{ return _geom; }
DTGeomSupplier * DTSCTrigUnit::GeomSupplier | ( | const DTTrigData * | trig | ) | const |
Return the appropriate coordinate supplier.
Definition at line 71 of file DTSCTrigUnit.cc.
References _theBTIs, _theTRACOs, _theTSPhi, and _theTSTheta.
Referenced by CMSDirection(), CMSPosition(), localDirection(), localPosition(), and print().
{ //@@ patch for Sun 4.2 compiler DTTrigData* tr = const_cast<DTTrigData*>(trig); if(dynamic_cast<DTBtiTrigData*>(tr))return _theBTIs; if(dynamic_cast<DTTracoTrigData*>(tr))return _theTRACOs; if(dynamic_cast<DTChambPhSegm*>(tr))return _theTSPhi; if(dynamic_cast<DTChambThSegm*>(tr))return _theTSTheta; // if(dynamic_cast<const DTBtiTrigData*>(trig))return _theBTIs; // if(dynamic_cast<const DTTracoTrigData*>(trig))return _theTRACOs; // if(dynamic_cast<const DTChambPhSegm*>(trig))return _theTSPhi; // if(dynamic_cast<const DTChambThSegm*>(trig))return _theTSTheta; return 0; }
LocalVector DTSCTrigUnit::localDirection | ( | const DTTrigData * | trig | ) | const [inline] |
Direction of a trigger-data object in chamber frame.
Definition at line 115 of file DTSCTrigUnit.h.
References GeomSupplier(), and DTGeomSupplier::localDirection().
{ return GeomSupplier(trig)->localDirection(trig); }
LocalPoint DTSCTrigUnit::localPosition | ( | const DTTrigData * | trig | ) | const [inline] |
Coordinate of a trigger-data object in chamber frame.
Definition at line 105 of file DTSCTrigUnit.h.
References GeomSupplier(), and DTGeomSupplier::localPosition().
{ return GeomSupplier(trig)->localPosition(trig); }
int DTSCTrigUnit::nDTBtiChip | ( | ) | [inline] |
Number of active DTBtiChips.
Definition at line 136 of file DTSCTrigUnit.h.
References _theBTIs, and DTCache< T, Coll >::size().
int DTSCTrigUnit::nDTTracoChip | ( | ) | [inline] |
Number of active DTTracoChips.
Definition at line 139 of file DTSCTrigUnit.h.
References _theTRACOs, and DTCache< T, Coll >::size().
{ return _theTRACOs->size(); }
int DTSCTrigUnit::nPhiSegm | ( | int | step | ) | [inline] |
Number of Phi segments for a given step.
Definition at line 142 of file DTSCTrigUnit.h.
References _theTSPhi, and DTTSPhi::nSegm().
Referenced by DTTrig::chPhiSegm1(), and DTTrig::chPhiSegm2().
int DTSCTrigUnit::nThetaSegm | ( | int | step | ) | [inline] |
Number of theta segments for a given step.
Definition at line 151 of file DTSCTrigUnit.h.
References _theTSTheta, and DTTSTheta::nSegm().
Referenced by DTTrig::chThetaSegm().
{ return _theTSTheta->nSegm(step); }
const DTChambPhSegm* DTSCTrigUnit::phiSegment | ( | int | step, |
int | n | ||
) | [inline] |
Return output segments, phi view.
Definition at line 146 of file DTSCTrigUnit.h.
References _theTSPhi, and DTTSPhi::segment().
Referenced by DTTrig::chPhiSegm1(), and DTTrig::chPhiSegm2().
void DTSCTrigUnit::print | ( | DTTrigData * | trig | ) | const [inline] |
Print a trigger-data object.
Definition at line 125 of file DTSCTrigUnit.h.
References GeomSupplier(), and DTGeomSupplier::print().
{ GeomSupplier(trig)->print(trig); }
int DTSCTrigUnit::sector | ( | void | ) | const [inline] |
Return sector number.
Definition at line 87 of file DTSCTrigUnit.h.
References _geom, and DTTrigGeom::sector().
Referenced by DTSectColl::addTU().
void DTSCTrigUnit::setConfig | ( | const DTConfigManager * | conf | ) |
Set configuration.
Definition at line 85 of file DTSCTrigUnit.cc.
References _theBTIs, _theTRACOs, _theTSPhi, _theTSTheta, DTTracoCard::setConfig(), DTTSTheta::setConfig(), DTTSPhi::setConfig(), and DTBtiCard::setConfig().
{ _theBTIs->setConfig(conf); _theTSTheta->setConfig(conf); _theTRACOs->setConfig(conf); _theTSPhi->setConfig(conf); }
void DTSCTrigUnit::setGeom | ( | const DTChamber * | stat | ) | [inline] |
Set geometry.
Definition at line 69 of file DTSCTrigUnit.h.
References _geom, and DTTrigGeom::setGeom().
const DTChamber* DTSCTrigUnit::stat | ( | ) | const [inline] |
The associated chamber.
Definition at line 75 of file DTSCTrigUnit.h.
References _geom, and DTTrigGeom::stat().
DTChamberId DTSCTrigUnit::statId | ( | ) | const [inline] |
Identifier of the associated chamber.
Definition at line 78 of file DTSCTrigUnit.h.
References _geom, and DTTrigGeom::statId().
Referenced by DTTrig::dumpLuts(), and DTTrig::triggerReco().
int DTSCTrigUnit::station | ( | ) | const [inline] |
Return station number.
Definition at line 84 of file DTSCTrigUnit.h.
References _geom, and DTTrigGeom::station().
Referenced by DTSectColl::addTU().
const DTChambThSegm* DTSCTrigUnit::thetaSegment | ( | int | step, |
int | n | ||
) | [inline] |
Return output segments, theta view.
Definition at line 154 of file DTSCTrigUnit.h.
References _theTSTheta, and DTTSTheta::segment().
Referenced by DTTrig::chThetaSegm().
{ return _theTSTheta->segment(step, n); }
DTTracoCard* DTSCTrigUnit::TracoTrigs | ( | ) | const [inline] |
Return container of TRACO triggers.
Definition at line 93 of file DTSCTrigUnit.h.
References _theTRACOs.
Referenced by DTTrig::TracoTrigs(), and DTTrig::triggerReco().
{ return _theTRACOs; }
DTTSPhi* DTSCTrigUnit::TSPhTrigs | ( | ) | const [inline] |
Return the chamber Trigger Server (Phi)
Definition at line 96 of file DTSCTrigUnit.h.
References _theTSPhi.
Referenced by DTSectColl::addTU(), DTTrig::triggerReco(), and DTTrig::TSPhTrigs().
{ return _theTSPhi; }
DTTSTheta* DTSCTrigUnit::TSThTrigs | ( | ) | const [inline] |
Return the chamber Trigger Server (Theta)
Definition at line 99 of file DTSCTrigUnit.h.
References _theTSTheta.
Referenced by DTSectColl::addTU(), DTTrig::triggerReco(), and DTTrig::TSThTrigs().
{ return _theTSTheta; }
int DTSCTrigUnit::wheel | ( | ) | const [inline] |
Return wheel number.
Definition at line 81 of file DTSCTrigUnit.h.
References _geom, and DTTrigGeom::wheel().
Referenced by DTSectColl::addTU().
DTTrigGeom* DTSCTrigUnit::_geom [private] |
Definition at line 160 of file DTSCTrigUnit.h.
Referenced by DTSCTrigUnit(), dumpGeom(), dumpLUT(), geom(), sector(), setGeom(), stat(), statId(), station(), wheel(), and ~DTSCTrigUnit().
DTBtiCard* DTSCTrigUnit::_theBTIs [private] |
Definition at line 163 of file DTSCTrigUnit.h.
Referenced by BtiTrigs(), DTSCTrigUnit(), GeomSupplier(), nDTBtiChip(), setConfig(), and ~DTSCTrigUnit().
DTTracoCard* DTSCTrigUnit::_theTRACOs [private] |
Definition at line 164 of file DTSCTrigUnit.h.
Referenced by DTSCTrigUnit(), GeomSupplier(), nDTTracoChip(), setConfig(), TracoTrigs(), and ~DTSCTrigUnit().
DTTSPhi* DTSCTrigUnit::_theTSPhi [private] |
Definition at line 165 of file DTSCTrigUnit.h.
Referenced by DTSCTrigUnit(), GeomSupplier(), nPhiSegm(), phiSegment(), setConfig(), TSPhTrigs(), and ~DTSCTrigUnit().
DTTSTheta* DTSCTrigUnit::_theTSTheta [private] |
Definition at line 166 of file DTSCTrigUnit.h.
Referenced by DTSCTrigUnit(), GeomSupplier(), nThetaSegm(), setConfig(), thetaSegment(), TSThTrigs(), and ~DTSCTrigUnit().