#include <DTSuperLayer.h>
Public Member Functions | |
void | add (DTLayer *l) |
Add layer to the SL which owns it. | |
const DTChamber * | chamber () const |
virtual const GeomDet * | component (DetId id) const |
Return the layer with a given id in this SL. | |
virtual std::vector< const GeomDet * > | components () const |
Return the layers in the SL. | |
DTSuperLayer (DTSuperLayerId id, ReferenceCountingPointer< BoundPlane > &plane, const DTChamber *ch=0) | |
DTSuperLayerId | id () const |
Return the DetId of this SL. | |
const DTLayer * | layer (DTLayerId id) const |
Return the layer corresponding to the given id. | |
const DTLayer * | layer (int ilay) const |
const std::vector< const DTLayer * > & | layers () const |
Return the layers in the SL. | |
bool | operator== (const DTSuperLayer &sl) const |
True if id are the same. | |
virtual SubDetector | subDetector () const |
Which subdetector. | |
virtual | ~DTSuperLayer () |
Private Attributes | |
const DTChamber * | theCh |
DTSuperLayerId | theId |
std::vector< const DTLayer * > | theLayers |
Model of a superlayer in Muon Drift Tube chambers.
A superlayer is composed by 4 staggered DTLayer s.
$date : 13/01/2006 11:47:03 CET $
Definition at line 27 of file DTSuperLayer.h.
DTSuperLayer::DTSuperLayer | ( | DTSuperLayerId | id, |
ReferenceCountingPointer< BoundPlane > & | plane, | ||
const DTChamber * | ch = 0 |
||
) |
Definition at line 23 of file DTSuperLayer.cc.
References GeomDet::setDetId().
DTSuperLayer::~DTSuperLayer | ( | ) | [virtual] |
Definition at line 31 of file DTSuperLayer.cc.
References theLayers.
void DTSuperLayer::add | ( | DTLayer * | l | ) |
Add layer to the SL which owns it.
Definition at line 61 of file DTSuperLayer.cc.
References DTLayer::id(), prof2calltree::l, DTLayerId::layer(), and theLayers.
Referenced by DTGeometryBuilderFromCondDB::buildLayer(), and DTGeometryBuilderFromDDD::buildLayer().
const DTChamber * DTSuperLayer::chamber | ( | ) | const |
Return the chamber this SL belongs to (0 if any, eg if a SL is built on his own)
Definition at line 66 of file DTSuperLayer.cc.
References theCh.
Referenced by DTLayer::chamber(), and DTSegmentCand::operator DTChamberRecSegment2D *().
{ return theCh; }
std::vector< const GeomDet * > DTSuperLayer::components | ( | ) | const [virtual] |
DTSuperLayerId DTSuperLayer::id | ( | void | ) | const |
Return the DetId of this SL.
Definition at line 38 of file DTSuperLayer.cc.
References theId.
Referenced by DTClusterer::buildClusters(), DTCombinatorialExtendedPatternReco::buildSegments(), DTCombinatorialPatternReco::buildSegments(), DTMeantimerPatternReco::buildSegments(), DTCombinatorialExtendedPatternReco::extendCandidates(), DTSegmentCand::operator DTSLRecSegment2D *(), operator==(), and DTClusterer::produce().
{ return theId; }
const DTLayer * DTSuperLayer::layer | ( | int | ilay | ) | const |
Return the given layer. Layers are numbered 1-4.
Definition at line 75 of file DTSuperLayer.cc.
References theLayers.
{ if ((ilay>=1) && (ilay<=4)) { return theLayers[ilay-1]; } else { return 0; } }
Return the layer corresponding to the given id.
Definition at line 70 of file DTSuperLayer.cc.
References theId.
Referenced by component(), DTTMax::InfoLayer::InfoLayer(), DTMeantimerPatternReco::initHits(), DTTrigGeom::localPosition(), DTSegmentCand::operator DTSLRecSegment2D *(), and DTTrigGeom::tubePosInCh().
const std::vector< const DTLayer * > & DTSuperLayer::layers | ( | ) | const |
Return the layers in the SL.
Definition at line 57 of file DTSuperLayer.cc.
References theLayers.
{ return theLayers; }
bool DTSuperLayer::operator== | ( | const DTSuperLayer & | sl | ) | const |
virtual SubDetector DTSuperLayer::subDetector | ( | ) | const [inline, virtual] |
Which subdetector.
Implements GeomDet.
Definition at line 44 of file DTSuperLayer.h.
References GeomDetEnumerators::DT.
{return GeomDetEnumerators::DT;}
const DTChamber* DTSuperLayer::theCh [private] |
Definition at line 77 of file DTSuperLayer.h.
Referenced by chamber().
DTSuperLayerId DTSuperLayer::theId [private] |
Definition at line 74 of file DTSuperLayer.h.
std::vector< const DTLayer*> DTSuperLayer::theLayers [private] |
Definition at line 76 of file DTSuperLayer.h.
Referenced by add(), components(), layer(), layers(), and ~DTSuperLayer().