CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 52 of file DTSCTrigUnit.h.

Constructor & Destructor Documentation

DTSCTrigUnit::DTSCTrigUnit ( const DTChamber stat)

Constructor.

Definition at line 35 of file DTSCTrigUnit.cc.

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

35  {
36 
37  // DTChamberId chambid = stat->id();
38  // bool geom_debug = conf_manager->getDTConfigTrigUnit(chambid)->debug();
39 
40  // create the geometry from the station
41  //_geom = new DTTrigGeom(stat, geom_debug);
42  _geom = new DTTrigGeom(stat, false); // CB FIXME: update when debug will be read via PSet
43 
44  // create BTI
45  _theBTIs = new DTBtiCard(_geom);
46 
47  // create TSTheta
49 
50  // create TRACO
52 
53  // create TSPhi
55 
56 }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:158
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:163
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:161
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:162
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:164
DTSCTrigUnit::~DTSCTrigUnit ( )

Destructor.

Definition at line 62 of file DTSCTrigUnit.cc.

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

62  {
63  delete _theBTIs;
64  delete _theTRACOs;
65  delete _theTSPhi;
66  delete _theTSTheta;
67  delete _geom;
68 }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:158
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:163
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:161
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:162
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:164

Member Function Documentation

DTBtiCard* DTSCTrigUnit::BtiTrigs ( ) const
inline

Return container of BTI triggers.

Definition at line 88 of file DTSCTrigUnit.h.

References _theBTIs.

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

88 { return _theBTIs; }
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:161
GlobalVector DTSCTrigUnit::CMSDirection ( const DTTrigData trig) const
inline

Direction of a trigger-data object in CMS frame.

Definition at line 118 of file DTSCTrigUnit.h.

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

118  {
119  return GeomSupplier(trig)->CMSDirection(trig);
120  }
DTGeomSupplier * GeomSupplier(const DTTrigData *trig) const
Return the appropriate coordinate supplier.
Definition: DTSCTrigUnit.cc:71
GlobalVector CMSDirection(const DTTrigData *trig) const
CMS direction in chamber of a trigger -data object.
GlobalPoint DTSCTrigUnit::CMSPosition ( const DTTrigData trig) const
inline

Coordinate of a trigger-data object in CMS frame.

Definition at line 108 of file DTSCTrigUnit.h.

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

108  {
109  return GeomSupplier(trig)->CMSPosition(trig);
110  }
DTGeomSupplier * GeomSupplier(const DTTrigData *trig) const
Return the appropriate coordinate supplier.
Definition: DTSCTrigUnit.cc:71
GlobalPoint CMSPosition(const DTTrigData *trig) const
CMS position in chamber of a trigger-data object.
void DTSCTrigUnit::dumpGeom ( ) const
inline

Dump the geometry.

Definition at line 128 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::dumpGeom().

128 { _geom->dumpGeom(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:158
void dumpGeom() const
Dump the geometry.
Definition: DTTrigGeom.cc:276
void DTSCTrigUnit::dumpLUT ( short int  btic) const
inline

Dump the Lut file.

Definition at line 131 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::dumpLUT().

Referenced by DTTrig::dumpLuts().

131 { _geom->dumpLUT(btic); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:158
void dumpLUT(short int btic)
Dump the LUT for this chamber.
Definition: DTTrigGeom.cc:327
DTTrigGeom* DTSCTrigUnit::geom ( ) const
inline

The associated geometry.

Definition at line 64 of file DTSCTrigUnit.h.

References _geom.

64 { return _geom; }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:158
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().

71  {
72  //@@ patch for Sun 4.2 compiler
73  DTTrigData* tr = const_cast<DTTrigData*>(trig);
74  if(dynamic_cast<DTBtiTrigData*>(tr))return _theBTIs;
75  if(dynamic_cast<DTTracoTrigData*>(tr))return _theTRACOs;
76  if(dynamic_cast<DTChambPhSegm*>(tr))return _theTSPhi;
77  if(dynamic_cast<DTChambThSegm*>(tr))return _theTSTheta;
78  // if(dynamic_cast<const DTBtiTrigData*>(trig))return _theBTIs;
79  // if(dynamic_cast<const DTTracoTrigData*>(trig))return _theTRACOs;
80  // if(dynamic_cast<const DTChambPhSegm*>(trig))return _theTSPhi;
81  // if(dynamic_cast<const DTChambThSegm*>(trig))return _theTSTheta;
82  return 0;
83  }
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:163
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:161
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:162
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:164
LocalVector DTSCTrigUnit::localDirection ( const DTTrigData trig) const
inline

Direction of a trigger-data object in chamber frame.

Definition at line 113 of file DTSCTrigUnit.h.

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

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

Coordinate of a trigger-data object in chamber frame.

Definition at line 103 of file DTSCTrigUnit.h.

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

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

Number of active DTBtiChips.

Definition at line 134 of file DTSCTrigUnit.h.

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

134 { return _theBTIs->size(); }
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:161
int size() const
Get cache vector&#39;s size.
Definition: DTCache.h:46
int DTSCTrigUnit::nDTTracoChip ( )
inline

Number of active DTTracoChips.

Definition at line 137 of file DTSCTrigUnit.h.

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

137 { return _theTRACOs->size(); }
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:162
int size() const
Get cache vector&#39;s size.
Definition: DTCache.h:46
int DTSCTrigUnit::nPhiSegm ( int  step)
inline

Number of Phi segments for a given step.

Definition at line 140 of file DTSCTrigUnit.h.

References _theTSPhi, and DTTSPhi::nSegm().

Referenced by DTTrig::chPhiSegm1(), and DTTrig::chPhiSegm2().

140 { return _theTSPhi->nSegm(step); }
int nSegm(int step)
Return number of DTTSPhi segments.
Definition: DTTSPhi.cc:500
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:163
int DTSCTrigUnit::nThetaSegm ( int  step)
inline

Number of theta segments for a given step.

Definition at line 149 of file DTSCTrigUnit.h.

References _theTSTheta, and DTTSTheta::nSegm().

Referenced by DTTrig::chThetaSegm().

149 { return _theTSTheta->nSegm(step); }
int nSegm(int step)
Return number of TStheta segments (just 1)
Definition: DTTSTheta.cc:212
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:164
const DTChambPhSegm* DTSCTrigUnit::phiSegment ( int  step,
int  n 
)
inline

Return output segments, phi view.

Definition at line 144 of file DTSCTrigUnit.h.

References _theTSPhi, and DTTSPhi::segment().

Referenced by DTTrig::chPhiSegm1(), and DTTrig::chPhiSegm2().

144  {
145  return _theTSPhi->segment(step, n);
146  }
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:163
const DTChambPhSegm * segment(int step, unsigned n)
Return the requested DTTSPhi segment.
Definition: DTTSPhi.cc:510
void DTSCTrigUnit::print ( DTTrigData trig) const
inline

Print a trigger-data object.

Definition at line 123 of file DTSCTrigUnit.h.

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

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

Return sector number.

Definition at line 85 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::sector().

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

85 { return _geom->sector(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:158
int sector() const
Return sector number.
Definition: DTTrigGeom.h:67
void DTSCTrigUnit::setConfig ( const DTConfigManager conf)

Set configuration.

Definition at line 85 of file DTSCTrigUnit.cc.

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

85  {
86 
87  _theBTIs->setConfig(conf);
88  _theTSTheta->setConfig(conf);
89  _theTRACOs->setConfig(conf);
90  _theTSPhi->setConfig(conf);
91 
92 }
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:163
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTTracoCard.cc:78
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTBtiCard.cc:103
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:161
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:162
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTTSPhi.cc:127
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:164
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTTSTheta.cc:74
void DTSCTrigUnit::setGeom ( const DTChamber stat)
inline

Set geometry.

Definition at line 67 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::setGeom().

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

The associated chamber.

Definition at line 73 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::stat().

73 { return _geom->stat(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:158
const DTChamber * stat() const
Associated chamber.
Definition: DTTrigGeom.h:52
DTChamberId DTSCTrigUnit::statId ( ) const
inline

Identifier of the associated chamber.

Definition at line 76 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::statId().

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

76 { return _geom->statId(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:158
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTTrigGeom.h:55
int DTSCTrigUnit::station ( ) const
inline

Return station number.

Definition at line 82 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::station().

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

82 { return _geom->station(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:158
int station() const
Return station number.
Definition: DTTrigGeom.h:64
const DTChambThSegm* DTSCTrigUnit::thetaSegment ( int  step,
int  n 
)
inline

Return output segments, theta view.

Definition at line 152 of file DTSCTrigUnit.h.

References _theTSTheta, and DTTSTheta::segment().

Referenced by DTTrig::chThetaSegm().

152  {
153  return _theTSTheta->segment(step, n);
154  }
const DTChambThSegm * segment(int step, unsigned n)
Return the requested DTTSTheta segment (only the first)
Definition: DTTSTheta.cc:222
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:164
DTTracoCard* DTSCTrigUnit::TracoTrigs ( ) const
inline

Return container of TRACO triggers.

Definition at line 91 of file DTSCTrigUnit.h.

References _theTRACOs.

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

91 { return _theTRACOs; }
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:162
DTTSPhi* DTSCTrigUnit::TSPhTrigs ( ) const
inline

Return the chamber Trigger Server (Phi)

Definition at line 94 of file DTSCTrigUnit.h.

References _theTSPhi.

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

94 { return _theTSPhi; }
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:163
DTTSTheta* DTSCTrigUnit::TSThTrigs ( ) const
inline

Return the chamber Trigger Server (Theta)

Definition at line 97 of file DTSCTrigUnit.h.

References _theTSTheta.

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

97 { return _theTSTheta; }
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:164
int DTSCTrigUnit::wheel ( ) const
inline

Return wheel number.

Definition at line 79 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::wheel().

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

79 { return _geom->wheel(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:158
int wheel() const
Return wheel number.
Definition: DTTrigGeom.h:61

Member Data Documentation

DTTrigGeom* DTSCTrigUnit::_geom
private
DTBtiCard* DTSCTrigUnit::_theBTIs
private
DTTracoCard* DTSCTrigUnit::_theTRACOs
private
DTTSPhi* DTSCTrigUnit::_theTSPhi
private
DTTSTheta* DTSCTrigUnit::_theTSTheta
private