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.

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

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 }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:138
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:143
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:141
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:142
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:144

◆ ~DTSCTrigUnit()

DTSCTrigUnit::~DTSCTrigUnit ( )

Destructor.

Definition at line 58 of file DTSCTrigUnit.cc.

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

58  {
59  delete _theBTIs;
60  delete _theTRACOs;
61  delete _theTSPhi;
62  delete _theTSTheta;
63  delete _geom;
64 }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:138
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:143
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:141
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:142
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:144

Member Function Documentation

◆ BtiTrigs()

DTBtiCard* DTSCTrigUnit::BtiTrigs ( ) const
inline

Return container of BTI triggers.

Definition at line 84 of file DTSCTrigUnit.h.

References _theBTIs.

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

84 { return _theBTIs; }
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:141

◆ 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.

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

108 { return GeomSupplier(trig)->CMSDirection(trig); }
GlobalVector CMSDirection(const DTTrigData *trig) const
CMS direction in chamber of a trigger -data object.
DTGeomSupplier * GeomSupplier(const DTTrigData *trig) const
Return the appropriate coordinate supplier.
Definition: DTSCTrigUnit.cc:66

◆ 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.

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

102 { return GeomSupplier(trig)->CMSPosition(trig); }
GlobalPoint CMSPosition(const DTTrigData *trig) const
CMS position in chamber of a trigger-data object.
DTGeomSupplier * GeomSupplier(const DTTrigData *trig) const
Return the appropriate coordinate supplier.
Definition: DTSCTrigUnit.cc:66

◆ dumpGeom()

void DTSCTrigUnit::dumpGeom ( ) const
inline

Dump the geometry.

Definition at line 114 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::dumpGeom().

114 { _geom->dumpGeom(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:138
void dumpGeom() const
Dump the geometry.
Definition: DTTrigGeom.cc:266

◆ dumpLUT()

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

Dump the Lut file.

Definition at line 117 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::dumpLUT().

Referenced by DTTrig::dumpLuts().

117 { _geom->dumpLUT(btic); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:138
void dumpLUT(short int btic)
Dump the LUT for this chamber.
Definition: DTTrigGeom.cc:316

◆ geom()

DTTrigGeom* DTSCTrigUnit::geom ( ) const
inline

The associated geometry.

Definition at line 60 of file DTSCTrigUnit.h.

References _geom.

60 { return _geom; }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:138

◆ GeomSupplier()

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

Return the appropriate coordinate supplier.

Definition at line 66 of file DTSCTrigUnit.cc.

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

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

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 }
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:143
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:141
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:142
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:144

◆ 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.

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

105 { return GeomSupplier(trig)->localDirection(trig); }
DTGeomSupplier * GeomSupplier(const DTTrigData *trig) const
Return the appropriate coordinate supplier.
Definition: DTSCTrigUnit.cc:66
virtual LocalVector localDirection(const DTTrigData *) const =0
Local direction in chamber of a trigger-data object.

◆ 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.

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

99 { return GeomSupplier(trig)->localPosition(trig); }
virtual LocalPoint localPosition(const DTTrigData *) const =0
Local position in chamber of a trigger-data object.
DTGeomSupplier * GeomSupplier(const DTTrigData *trig) const
Return the appropriate coordinate supplier.
Definition: DTSCTrigUnit.cc:66

◆ nDTBtiChip()

int DTSCTrigUnit::nDTBtiChip ( )
inline

Number of active DTBtiChips.

Definition at line 120 of file DTSCTrigUnit.h.

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

120 { return _theBTIs->size(); }
int size() const
Get cache vector&#39;s size.
Definition: DTCache.h:44
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:141

◆ nDTTracoChip()

int DTSCTrigUnit::nDTTracoChip ( )
inline

Number of active DTTracoChips.

Definition at line 123 of file DTSCTrigUnit.h.

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

123 { return _theTRACOs->size(); }
int size() const
Get cache vector&#39;s size.
Definition: DTCache.h:44
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:142

◆ nPhiSegm()

int DTSCTrigUnit::nPhiSegm ( int  step)
inline

Number of Phi segments for a given step.

Definition at line 126 of file DTSCTrigUnit.h.

References _theTSPhi, and DTTSPhi::nSegm().

126 { return _theTSPhi->nSegm(step); }
int nSegm(int step)
Return number of DTTSPhi segments.
Definition: DTTSPhi.cc:460
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:143
step
Definition: StallMonitor.cc:98

◆ nThetaSegm()

int DTSCTrigUnit::nThetaSegm ( int  step)
inline

Number of theta segments for a given step.

Definition at line 132 of file DTSCTrigUnit.h.

References _theTSTheta, and DTTSTheta::nSegm().

132 { return _theTSTheta->nSegm(step); }
int nSegm(int step)
Return number of TStheta segments (just 1)
Definition: DTTSTheta.cc:199
step
Definition: StallMonitor.cc:98
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:144

◆ phiSegment()

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

Return output segments, phi view.

Definition at line 129 of file DTSCTrigUnit.h.

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

129 { return _theTSPhi->segment(step, n); }
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:143
const DTChambPhSegm * segment(int step, unsigned n)
Return the requested DTTSPhi segment.
Definition: DTTSPhi.cc:470
step
Definition: StallMonitor.cc:98

◆ print()

void DTSCTrigUnit::print ( DTTrigData trig) const
inline

Print a trigger-data object.

Definition at line 111 of file DTSCTrigUnit.h.

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

111 { GeomSupplier(trig)->print(trig); }
virtual void print(const DTTrigData *trig) const
Print a trigger-data object with also local and global position/direction.
DTGeomSupplier * GeomSupplier(const DTTrigData *trig) const
Return the appropriate coordinate supplier.
Definition: DTSCTrigUnit.cc:66

◆ sector()

int DTSCTrigUnit::sector ( void  ) const
inline

Return sector number.

Definition at line 81 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::sector().

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

81 { return _geom->sector(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:138
int sector() const
Return sector number.
Definition: DTTrigGeom.h:65

◆ setConfig()

void DTSCTrigUnit::setConfig ( const DTConfigManager conf)

Set configuration.

Definition at line 84 of file DTSCTrigUnit.cc.

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

84  {
85  _theBTIs->setConfig(conf);
86  _theTSTheta->setConfig(conf);
87  _theTRACOs->setConfig(conf);
88  _theTSPhi->setConfig(conf);
89 }
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:143
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTTracoCard.cc:66
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTBtiCard.cc:90
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:141
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:142
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTTSPhi.cc:119
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:144
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTTSTheta.cc:67

◆ setGeom()

void DTSCTrigUnit::setGeom ( const DTChamber stat)
inline

Set geometry.

Definition at line 63 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::setGeom().

63 { _geom->setGeom(stat); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:138
void setGeom(const DTChamber *stat)
Set/Update Geometry.
Definition: DTTrigGeom.cc:203

◆ stat()

const DTChamber* DTSCTrigUnit::stat ( ) const
inline

The associated chamber.

Definition at line 69 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::stat().

69 { return _geom->stat(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:138
const DTChamber * stat() const
Associated chamber.
Definition: DTTrigGeom.h:50

◆ statId()

DTChamberId DTSCTrigUnit::statId ( ) const
inline

Identifier of the associated chamber.

Definition at line 72 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::statId().

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

72 { return _geom->statId(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:138
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTTrigGeom.h:53

◆ station()

int DTSCTrigUnit::station ( ) const
inline

Return station number.

Definition at line 78 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::station().

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

78 { return _geom->station(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:138
int station() const
Return station number.
Definition: DTTrigGeom.h:62

◆ thetaSegment()

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

Return output segments, theta view.

Definition at line 135 of file DTSCTrigUnit.h.

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

135 { return _theTSTheta->segment(step, n); }
const DTChambThSegm * segment(int step, unsigned n)
Return the requested DTTSTheta segment (only the first)
Definition: DTTSTheta.cc:209
step
Definition: StallMonitor.cc:98
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:144

◆ TracoTrigs()

DTTracoCard* DTSCTrigUnit::TracoTrigs ( ) const
inline

Return container of TRACO triggers.

Definition at line 87 of file DTSCTrigUnit.h.

References _theTRACOs.

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

87 { return _theTRACOs; }
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:142

◆ TSPhTrigs()

DTTSPhi* DTSCTrigUnit::TSPhTrigs ( ) const
inline

Return the chamber Trigger Server (Phi)

Definition at line 90 of file DTSCTrigUnit.h.

References _theTSPhi.

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

90 { return _theTSPhi; }
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:143

◆ TSThTrigs()

DTTSTheta* DTSCTrigUnit::TSThTrigs ( ) const
inline

Return the chamber Trigger Server (Theta)

Definition at line 93 of file DTSCTrigUnit.h.

References _theTSTheta.

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

93 { return _theTSTheta; }
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:144

◆ wheel()

int DTSCTrigUnit::wheel ( ) const
inline

Return wheel number.

Definition at line 75 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::wheel().

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

75 { return _geom->wheel(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:138
int wheel() const
Return wheel number.
Definition: DTTrigGeom.h:59

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