CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DTSCTrigUnit Class Reference

#include <DTSCTrigUnit.h>

Public Member Functions

DTBtiCardBtiTrigs () const
 Return container of BTI triggers. More...
 
GlobalVector CMSDirection (const DTTrigData *trig) const
 Direction of a trigger-data object in CMS frame. More...
 
GlobalPoint CMSPosition (const DTTrigData *trig) const
 Coordinate of a trigger-data object in CMS frame. More...
 
 DTSCTrigUnit (const DTChamber *stat)
 Constructor. More...
 
void dumpGeom () const
 Dump the geometry. More...
 
void dumpLUT (short int btic) const
 Dump the Lut file. More...
 
DTTrigGeomgeom () const
 The associated geometry. More...
 
DTGeomSupplierGeomSupplier (const DTTrigData *trig) const
 Return the appropriate coordinate supplier. More...
 
LocalVector localDirection (const DTTrigData *trig) const
 Direction of a trigger-data object in chamber frame. More...
 
LocalPoint localPosition (const DTTrigData *trig) const
 Coordinate of a trigger-data object in chamber frame. More...
 
int nDTBtiChip ()
 Number of active DTBtiChips. More...
 
int nDTTracoChip ()
 Number of active DTTracoChips. More...
 
int nPhiSegm (int step)
 Number of Phi segments for a given step. More...
 
int nThetaSegm (int step)
 Number of theta segments for a given step. More...
 
const DTChambPhSegmphiSegment (int step, int n)
 Return output segments, phi view. More...
 
void print (DTTrigData *trig) const
 Print a trigger-data object. More...
 
int sector () const
 Return sector number. More...
 
void setConfig (const DTConfigManager *conf)
 Set configuration. More...
 
void setGeom (const DTChamber *stat)
 Set geometry. More...
 
const DTChamberstat () const
 The associated chamber. More...
 
DTChamberId statId () const
 Identifier of the associated chamber. More...
 
int station () const
 Return station number. More...
 
const DTChambThSegmthetaSegment (int step, int n)
 Return output segments, theta view. More...
 
DTTracoCardTracoTrigs () const
 Return container of TRACO triggers. More...
 
DTTSPhiTSPhTrigs () const
 Return the chamber Trigger Server (Phi) More...
 
DTTSThetaTSThTrigs () const
 Return the chamber Trigger Server (Theta) More...
 
int wheel () const
 Return wheel number. More...
 
 ~DTSCTrigUnit ()
 Destructor. More...
 

Private Attributes

DTTrigGeom_geom
 
DTBtiCard_theBTIs
 
DTTracoCard_theTRACOs
 
DTTSPhi_theTSPhi
 
DTTSTheta_theTSTheta
 

Detailed Description

Muon Barrel Sector Collector Trigger Unit (Chamber trigger)

Author
C.Grandi, S. Marcellini

Definition at line 50 of file DTSCTrigUnit.h.

Constructor & Destructor Documentation

◆ DTSCTrigUnit()

DTSCTrigUnit::DTSCTrigUnit ( const DTChamber stat)

Constructor.

Definition at line 34 of file DTSCTrigUnit.cc.

34  {
35  // DTChamberId chambid = stat->id();
36  // bool geom_debug = conf_manager->getDTConfigTrigUnit(chambid)->debug();
37 
38  // create the geometry from the station
39  //_geom = new DTTrigGeom(stat, geom_debug);
40  _geom = new DTTrigGeom(stat, false); // CB FIXME: update when debug will be read via PSet
41 
42  // create BTI
43  _theBTIs = new DTBtiCard(_geom);
44 
45  // create TSTheta
47 
48  // create TRACO
50 
51  // create TSPhi
53 }

References _geom, _theBTIs, _theTRACOs, _theTSPhi, _theTSTheta, and stat().

◆ ~DTSCTrigUnit()

DTSCTrigUnit::~DTSCTrigUnit ( )

Destructor.

Definition at line 58 of file DTSCTrigUnit.cc.

58  {
59  delete _theBTIs;
60  delete _theTRACOs;
61  delete _theTSPhi;
62  delete _theTSTheta;
63  delete _geom;
64 }

References _geom, _theBTIs, _theTRACOs, _theTSPhi, and _theTSTheta.

Member Function Documentation

◆ BtiTrigs()

DTBtiCard* DTSCTrigUnit::BtiTrigs ( ) const
inline

Return container of BTI triggers.

Definition at line 84 of file DTSCTrigUnit.h.

84 { return _theBTIs; }

References _theBTIs.

Referenced by DTTrig::BtiTrigs(), and DTTrig::triggerReco().

◆ CMSDirection()

GlobalVector DTSCTrigUnit::CMSDirection ( const DTTrigData trig) const
inline

Direction of a trigger-data object in CMS frame.

Definition at line 108 of file DTSCTrigUnit.h.

108 { return GeomSupplier(trig)->CMSDirection(trig); }

References DTGeomSupplier::CMSDirection(), GeomSupplier(), and ClusterTask_cfi::trig.

◆ CMSPosition()

GlobalPoint DTSCTrigUnit::CMSPosition ( const DTTrigData trig) const
inline

Coordinate of a trigger-data object in CMS frame.

Definition at line 102 of file DTSCTrigUnit.h.

102 { return GeomSupplier(trig)->CMSPosition(trig); }

References DTGeomSupplier::CMSPosition(), GeomSupplier(), and ClusterTask_cfi::trig.

◆ dumpGeom()

void DTSCTrigUnit::dumpGeom ( ) const
inline

Dump the geometry.

Definition at line 114 of file DTSCTrigUnit.h.

114 { _geom->dumpGeom(); }

References _geom, and DTTrigGeom::dumpGeom().

◆ dumpLUT()

void DTSCTrigUnit::dumpLUT ( short int  btic) const
inline

Dump the Lut file.

Definition at line 117 of file DTSCTrigUnit.h.

117 { _geom->dumpLUT(btic); }

References _geom, and DTTrigGeom::dumpLUT().

Referenced by DTTrig::dumpLuts().

◆ geom()

DTTrigGeom* DTSCTrigUnit::geom ( ) const
inline

The associated geometry.

Definition at line 60 of file DTSCTrigUnit.h.

60 { return _geom; }

References _geom.

◆ GeomSupplier()

DTGeomSupplier * DTSCTrigUnit::GeomSupplier ( const DTTrigData trig) const

Return the appropriate coordinate supplier.

Definition at line 66 of file DTSCTrigUnit.cc.

66  {
67  //@@ patch for Sun 4.2 compiler
68  DTTrigData* tr = const_cast<DTTrigData*>(trig);
69  if (dynamic_cast<DTBtiTrigData*>(tr))
70  return _theBTIs;
71  if (dynamic_cast<DTTracoTrigData*>(tr))
72  return _theTRACOs;
73  if (dynamic_cast<DTChambPhSegm*>(tr))
74  return _theTSPhi;
75  if (dynamic_cast<DTChambThSegm*>(tr))
76  return _theTSTheta;
77  // if(dynamic_cast<const DTBtiTrigData*>(trig))return _theBTIs;
78  // if(dynamic_cast<const DTTracoTrigData*>(trig))return _theTRACOs;
79  // if(dynamic_cast<const DTChambPhSegm*>(trig))return _theTSPhi;
80  // if(dynamic_cast<const DTChambThSegm*>(trig))return _theTSTheta;
81  return nullptr;
82 }

References _theBTIs, _theTRACOs, _theTSPhi, _theTSTheta, and ClusterTask_cfi::trig.

Referenced by CMSDirection(), CMSPosition(), localDirection(), localPosition(), and print().

◆ localDirection()

LocalVector DTSCTrigUnit::localDirection ( const DTTrigData trig) const
inline

Direction of a trigger-data object in chamber frame.

Definition at line 105 of file DTSCTrigUnit.h.

105 { return GeomSupplier(trig)->localDirection(trig); }

References GeomSupplier(), DTGeomSupplier::localDirection(), and ClusterTask_cfi::trig.

◆ localPosition()

LocalPoint DTSCTrigUnit::localPosition ( const DTTrigData trig) const
inline

Coordinate of a trigger-data object in chamber frame.

Definition at line 99 of file DTSCTrigUnit.h.

99 { return GeomSupplier(trig)->localPosition(trig); }

References GeomSupplier(), DTGeomSupplier::localPosition(), and ClusterTask_cfi::trig.

◆ nDTBtiChip()

int DTSCTrigUnit::nDTBtiChip ( )
inline

Number of active DTBtiChips.

Definition at line 120 of file DTSCTrigUnit.h.

120 { return _theBTIs->size(); }

References _theBTIs, and DTCache< T, Coll >::size().

◆ nDTTracoChip()

int DTSCTrigUnit::nDTTracoChip ( )
inline

Number of active DTTracoChips.

Definition at line 123 of file DTSCTrigUnit.h.

123 { return _theTRACOs->size(); }

References _theTRACOs, and DTCache< T, Coll >::size().

◆ nPhiSegm()

int DTSCTrigUnit::nPhiSegm ( int  step)
inline

Number of Phi segments for a given step.

Definition at line 126 of file DTSCTrigUnit.h.

126 { return _theTSPhi->nSegm(step); }

References _theTSPhi, and DTTSPhi::nSegm().

◆ nThetaSegm()

int DTSCTrigUnit::nThetaSegm ( int  step)
inline

Number of theta segments for a given step.

Definition at line 132 of file DTSCTrigUnit.h.

132 { return _theTSTheta->nSegm(step); }

References _theTSTheta, and DTTSTheta::nSegm().

◆ phiSegment()

const DTChambPhSegm* DTSCTrigUnit::phiSegment ( int  step,
int  n 
)
inline

Return output segments, phi view.

Definition at line 129 of file DTSCTrigUnit.h.

129 { return _theTSPhi->segment(step, n); }

References _theTSPhi, dqmiodumpmetadata::n, and DTTSPhi::segment().

◆ print()

void DTSCTrigUnit::print ( DTTrigData trig) const
inline

Print a trigger-data object.

Definition at line 111 of file DTSCTrigUnit.h.

111 { GeomSupplier(trig)->print(trig); }

References GeomSupplier(), DTGeomSupplier::print(), and ClusterTask_cfi::trig.

◆ sector()

int DTSCTrigUnit::sector ( void  ) const
inline

Return sector number.

Definition at line 81 of file DTSCTrigUnit.h.

81 { return _geom->sector(); }

References _geom, and DTTrigGeom::sector().

Referenced by DTSectColl::addTU(), and geometryXMLparser.DTAlignable::index().

◆ setConfig()

void DTSCTrigUnit::setConfig ( const DTConfigManager conf)

Set configuration.

Definition at line 84 of file DTSCTrigUnit.cc.

84  {
85  _theBTIs->setConfig(conf);
86  _theTSTheta->setConfig(conf);
87  _theTRACOs->setConfig(conf);
88  _theTSPhi->setConfig(conf);
89 }

References _theBTIs, _theTRACOs, _theTSPhi, _theTSTheta, DTTSTheta::setConfig(), DTTSPhi::setConfig(), DTTracoCard::setConfig(), and DTBtiCard::setConfig().

◆ setGeom()

void DTSCTrigUnit::setGeom ( const DTChamber stat)
inline

Set geometry.

Definition at line 63 of file DTSCTrigUnit.h.

63 { _geom->setGeom(stat); }

References _geom, DTTrigGeom::setGeom(), and stat().

◆ stat()

const DTChamber* DTSCTrigUnit::stat ( ) const
inline

The associated chamber.

Definition at line 69 of file DTSCTrigUnit.h.

69 { return _geom->stat(); }

References _geom, and DTTrigGeom::stat().

Referenced by DTSCTrigUnit(), and setGeom().

◆ statId()

DTChamberId DTSCTrigUnit::statId ( ) const
inline

Identifier of the associated chamber.

Definition at line 72 of file DTSCTrigUnit.h.

72 { return _geom->statId(); }

References _geom, and DTTrigGeom::statId().

Referenced by DTTrig::dumpLuts(), and DTTrig::triggerReco().

◆ station()

int DTSCTrigUnit::station ( ) const
inline

Return station number.

Definition at line 78 of file DTSCTrigUnit.h.

78 { return _geom->station(); }

References _geom, and DTTrigGeom::station().

Referenced by DTSectColl::addTU(), geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().

◆ thetaSegment()

const DTChambThSegm* DTSCTrigUnit::thetaSegment ( int  step,
int  n 
)
inline

Return output segments, theta view.

Definition at line 135 of file DTSCTrigUnit.h.

135 { return _theTSTheta->segment(step, n); }

References _theTSTheta, dqmiodumpmetadata::n, and DTTSTheta::segment().

◆ TracoTrigs()

DTTracoCard* DTSCTrigUnit::TracoTrigs ( ) const
inline

Return container of TRACO triggers.

Definition at line 87 of file DTSCTrigUnit.h.

87 { return _theTRACOs; }

References _theTRACOs.

Referenced by DTTrig::TracoTrigs(), and DTTrig::triggerReco().

◆ TSPhTrigs()

DTTSPhi* DTSCTrigUnit::TSPhTrigs ( ) const
inline

Return the chamber Trigger Server (Phi)

Definition at line 90 of file DTSCTrigUnit.h.

90 { return _theTSPhi; }

References _theTSPhi.

Referenced by DTSectColl::addTU(), DTTrig::triggerReco(), and DTTrig::TSPhTrigs().

◆ TSThTrigs()

DTTSTheta* DTSCTrigUnit::TSThTrigs ( ) const
inline

Return the chamber Trigger Server (Theta)

Definition at line 93 of file DTSCTrigUnit.h.

93 { return _theTSTheta; }

References _theTSTheta.

Referenced by DTSectColl::addTU(), DTTrig::triggerReco(), and DTTrig::TSThTrigs().

◆ wheel()

int DTSCTrigUnit::wheel ( ) const
inline

Return wheel number.

Definition at line 75 of file DTSCTrigUnit.h.

75 { return _geom->wheel(); }

References _geom, and DTTrigGeom::wheel().

Referenced by DTSectColl::addTU(), and geometryXMLparser.DTAlignable::index().

Member Data Documentation

◆ _geom

DTTrigGeom* DTSCTrigUnit::_geom
private

◆ _theBTIs

DTBtiCard* DTSCTrigUnit::_theBTIs
private

◆ _theTRACOs

DTTracoCard* DTSCTrigUnit::_theTRACOs
private

◆ _theTSPhi

DTTSPhi* DTSCTrigUnit::_theTSPhi
private

◆ _theTSTheta

DTTSTheta* DTSCTrigUnit::_theTSTheta
private
DTBtiCard
Definition: DTBtiCard.h:62
DTTrigGeom::wheel
int wheel() const
Return wheel number.
Definition: DTTrigGeom.h:59
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
DTCache::size
int size() const
Get cache vector's size.
Definition: DTCache.h:44
step
step
Definition: StallMonitor.cc:94
DTTSTheta::setConfig
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTTSTheta.cc:67
DTGeomSupplier::print
virtual void print(const DTTrigData *trig) const
Print a trigger-data object with also local and global position/direction.
Definition: DTGeomSupplier.cc:4
DTTSPhi
Definition: DTTSPhi.h:53
DTSCTrigUnit::_theTRACOs
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:142
DTTracoCard::setConfig
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTTracoCard.cc:66
DTTSPhi::setConfig
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTTSPhi.cc:117
DTSCTrigUnit::_theTSPhi
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:143
DTTSPhi::segment
const DTChambPhSegm * segment(int step, unsigned n)
Return the requested DTTSPhi segment.
Definition: DTTSPhi.cc:483
DTBtiCard::setConfig
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTBtiCard.cc:90
DTGeomSupplier::localDirection
virtual LocalVector localDirection(const DTTrigData *) const =0
Local direction in chamber of a trigger-data object.
DTTSPhi::nSegm
int nSegm(int step)
Return number of DTTSPhi segments.
Definition: DTTSPhi.cc:473
DTSCTrigUnit::_geom
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:138
DTSCTrigUnit::stat
const DTChamber * stat() const
The associated chamber.
Definition: DTSCTrigUnit.h:69
DTSCTrigUnit::_theTSTheta
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:144
DTSCTrigUnit::GeomSupplier
DTGeomSupplier * GeomSupplier(const DTTrigData *trig) const
Return the appropriate coordinate supplier.
Definition: DTSCTrigUnit.cc:66
DTTrigGeom::stat
const DTChamber * stat() const
Associated chamber.
Definition: DTTrigGeom.h:50
DTTrigGeom::sector
int sector() const
Return sector number.
Definition: DTTrigGeom.h:65
DTTrigGeom::setGeom
void setGeom(const DTChamber *stat)
Set/Update Geometry.
Definition: DTTrigGeom.cc:203
DTTrigData
Definition: DTTrigData.h:35
DTGeomSupplier::CMSPosition
GlobalPoint CMSPosition(const DTTrigData *trig) const
CMS position in chamber of a trigger-data object.
Definition: DTGeomSupplier.h:75
DTGeomSupplier::localPosition
virtual LocalPoint localPosition(const DTTrigData *) const =0
Local position in chamber of a trigger-data object.
DTTSTheta::nSegm
int nSegm(int step)
Return number of TStheta segments (just 1)
Definition: DTTSTheta.cc:199
DTTSTheta::segment
const DTChambThSegm * segment(int step, unsigned n)
Return the requested DTTSTheta segment (only the first)
Definition: DTTSTheta.cc:209
ClusterTask_cfi.trig
trig
Definition: ClusterTask_cfi.py:336
DTTracoCard
Definition: DTTracoCard.h:58
DTTrigGeom
Definition: DTTrigGeom.h:41
DTGeomSupplier::CMSDirection
GlobalVector CMSDirection(const DTTrigData *trig) const
CMS direction in chamber of a trigger -data object.
Definition: DTGeomSupplier.h:78
DTTrigGeom::dumpLUT
void dumpLUT(short int btic)
Dump the LUT for this chamber.
Definition: DTTrigGeom.cc:316
DTTrigGeom::statId
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTTrigGeom.h:53
DTSCTrigUnit::_theBTIs
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:141
DTTrigGeom::station
int station() const
Return station number.
Definition: DTTrigGeom.h:62
DTTSTheta
Definition: DTTSTheta.h:44
DTTrigGeom::dumpGeom
void dumpGeom() const
Dump the geometry.
Definition: DTTrigGeom.cc:266