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 (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)

Date:
2010/11/11 16:28:21
Revision:
1.10
Author
C.Grandi, S. Marcellini

Definition at line 54 of file DTSCTrigUnit.h.

Constructor & Destructor Documentation

DTSCTrigUnit::DTSCTrigUnit ( 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:160
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:165
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:163
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:164
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:166
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:160
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:165
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:163
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:164
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:166

Member Function Documentation

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().

90 { return _theBTIs; }
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:163
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().

120  {
121  return GeomSupplier(trig)->CMSDirection(trig);
122  }
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 110 of file DTSCTrigUnit.h.

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

110  {
111  return GeomSupplier(trig)->CMSPosition(trig);
112  }
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 130 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::dumpGeom().

130 { _geom->dumpGeom(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:160
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 133 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::dumpLUT().

Referenced by DTTrig::dumpLuts().

133 { _geom->dumpLUT(btic); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:160
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 66 of file DTSCTrigUnit.h.

References _geom.

66 { return _geom; }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:160
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:165
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:163
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:164
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:166
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().

115  {
116  return GeomSupplier(trig)->localDirection(trig);
117  }
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 105 of file DTSCTrigUnit.h.

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

105  {
106  return GeomSupplier(trig)->localPosition(trig);
107  }
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 136 of file DTSCTrigUnit.h.

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

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

Number of active DTTracoChips.

Definition at line 139 of file DTSCTrigUnit.h.

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

139 { return _theTRACOs->size(); }
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:164
int size() const
Get cache vector&#39;s size.
Definition: DTCache.h:48
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().

142 { return _theTSPhi->nSegm(step); }
int nSegm(int step)
Return number of DTTSPhi segments.
Definition: DTTSPhi.cc:500
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:165
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().

151 { return _theTSTheta->nSegm(step); }
int nSegm(int step)
Return number of TStheta segments (just 1)
Definition: DTTSTheta.cc:212
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:166
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().

146  {
147  return _theTSPhi->segment(step, n);
148  }
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:165
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 125 of file DTSCTrigUnit.h.

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

125  {
126  GeomSupplier(trig)->print(trig);
127  }
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 87 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::sector().

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

87 { return _geom->sector(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:160
int sector() const
Return sector number.
Definition: DTTrigGeom.h:69
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:165
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:163
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:164
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTTSPhi.cc:127
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:166
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTTSTheta.cc:74
void DTSCTrigUnit::setGeom ( const DTChamber stat)
inline

Set geometry.

Definition at line 69 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::setGeom().

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

The associated chamber.

Definition at line 75 of file DTSCTrigUnit.h.

References _geom, and DTTrigGeom::stat().

75 { return _geom->stat(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:160
const DTChamber * stat() const
Associated chamber.
Definition: DTTrigGeom.h:54
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().

78 { return _geom->statId(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:160
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTTrigGeom.h:57
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(), geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().

84 { return _geom->station(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:160
int station() const
Return station number.
Definition: DTTrigGeom.h:66
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().

154  {
155  return _theTSTheta->segment(step, n);
156  }
const DTChambThSegm * segment(int step, unsigned n)
Return the requested DTTSTheta segment (only the first)
Definition: DTTSTheta.cc:222
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:166
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().

93 { return _theTRACOs; }
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:164
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().

96 { return _theTSPhi; }
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:165
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().

99 { return _theTSTheta; }
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:166
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(), and geometryXMLparser.DTAlignable::index().

81 { return _geom->wheel(); }
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:160
int wheel() const
Return wheel number.
Definition: DTTrigGeom.h:63

Member Data Documentation

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