CMS 3D CMS Logo

DTSCTrigUnit.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
9 //
10 //--------------------------------------------------
11 #ifndef DT_SC_TRIG_UNIT_H
12 #define DT_SC_TRIG_UNIT_H
13 
14 //---------------
15 // C++ Headers --
16 //---------------
17 #include <vector>
18 
19 //----------------------
20 // Base Class Headers --
21 //----------------------
22 
23 //------------------------------------
24 // Collaborating Class Declarations --
25 //------------------------------------
43 
44 class DTChamber;
45 
46 // ---------------------
47 // -- Class Interface --
48 // ---------------------
49 
50 class DTSCTrigUnit {
51 public:
53  //DTSCTrigUnit(DTChamber* stat, edm::ParameterSet& tu_pset) ;
54  DTSCTrigUnit(const DTChamber* stat);
55 
57  ~DTSCTrigUnit();
58 
60  inline DTTrigGeom* geom() const { return _geom; }
61 
63  void setGeom(const DTChamber* stat) { _geom->setGeom(stat); }
64 
66  void setConfig(const DTConfigManager* conf);
67 
69  inline const DTChamber* stat() const { return _geom->stat(); }
70 
72  inline DTChamberId statId() const { return _geom->statId(); }
73 
75  inline int wheel() const { return _geom->wheel(); }
76 
78  inline int station() const { return _geom->station(); }
79 
81  inline int sector() const { return _geom->sector(); }
82 
84  inline DTBtiCard* BtiTrigs() const { return _theBTIs; }
85 
87  inline DTTracoCard* TracoTrigs() const { return _theTRACOs; }
88 
90  inline DTTSPhi* TSPhTrigs() const { return _theTSPhi; }
91 
93  inline DTTSTheta* TSThTrigs() const { return _theTSTheta; }
94 
97 
100 
103 
106 
109 
111  inline void print(DTTrigData* trig) const { GeomSupplier(trig)->print(trig); }
112 
114  inline void dumpGeom() const { _geom->dumpGeom(); }
115 
117  inline void dumpLUT(short int btic) const { _geom->dumpLUT(btic); }
118 
120  int nDTBtiChip() { return _theBTIs->size(); }
121 
123  int nDTTracoChip() { return _theTRACOs->size(); }
124 
126  int nPhiSegm(int step) { return _theTSPhi->nSegm(step); }
127 
129  const DTChambPhSegm* phiSegment(int step, int n) { return _theTSPhi->segment(step, n); }
130 
132  int nThetaSegm(int step) { return _theTSTheta->nSegm(step); }
133 
135  const DTChambThSegm* thetaSegment(int step, int n) { return _theTSTheta->segment(step, n); }
136 
137 private:
138  DTTrigGeom* _geom; // Pointer to the geometry
139 
140  // Containers for DTBtiChip, DTTracoChip and TS
145 };
146 
147 #endif
Vector3DBase< float, LocalTag >
DTTSPhi.h
DTBtiCard
Definition: DTBtiCard.h:62
DTTrigGeom::wheel
int wheel() const
Return wheel number.
Definition: DTTrigGeom.h:59
DTSCTrigUnit::CMSPosition
GlobalPoint CMSPosition(const DTTrigData *trig) const
Coordinate of a trigger-data object in CMS frame.
Definition: DTSCTrigUnit.h:102
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
DTTracoChip.h
DTSCTrigUnit::setConfig
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTSCTrigUnit.cc:84
DTGeomSupplier
Definition: DTGeomSupplier.h:42
DTChambThSegm.h
DTChambPhSegm.h
DTChamber
Definition: DTChamber.h:24
DTSCTrigUnit::wheel
int wheel() const
Return wheel number.
Definition: DTSCTrigUnit.h:75
DTSCTrigUnit::nDTTracoChip
int nDTTracoChip()
Number of active DTTracoChips.
Definition: DTSCTrigUnit.h:123
DTTrigGeom.h
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
DTSCTrigUnit::DTSCTrigUnit
DTSCTrigUnit(const DTChamber *stat)
Constructor.
Definition: DTSCTrigUnit.cc:34
DTConfigManager.h
DTSCTrigUnit::sector
int sector() const
Return sector number.
Definition: DTSCTrigUnit.h:81
DTTSPhi
Definition: DTTSPhi.h:53
DTSCTrigUnit::_theTRACOs
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:142
DTSCTrigUnit::localDirection
LocalVector localDirection(const DTTrigData *trig) const
Direction of a trigger-data object in chamber frame.
Definition: DTSCTrigUnit.h:105
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
DTTSTheta.h
DTChambThSegm
Definition: DTChambThSegm.h:39
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::phiSegment
const DTChambPhSegm * phiSegment(int step, int n)
Return output segments, phi view.
Definition: DTSCTrigUnit.h:129
DTSCTrigUnit::stat
const DTChamber * stat() const
The associated chamber.
Definition: DTSCTrigUnit.h:69
Point3DBase< float, LocalTag >
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
DTSCTrigUnit::thetaSegment
const DTChambThSegm * thetaSegment(int step, int n)
Return output segments, theta view.
Definition: DTSCTrigUnit.h:135
DTBtiChip.h
DTTrigGeom::stat
const DTChamber * stat() const
Associated chamber.
Definition: DTTrigGeom.h:50
DTSCTrigUnit::setGeom
void setGeom(const DTChamber *stat)
Set geometry.
Definition: DTSCTrigUnit.h:63
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
DTSCTrigUnit::nDTBtiChip
int nDTBtiChip()
Number of active DTBtiChips.
Definition: DTSCTrigUnit.h:120
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
DTSCTrigUnit::BtiTrigs
DTBtiCard * BtiTrigs() const
Return container of BTI triggers.
Definition: DTSCTrigUnit.h:84
DTTSTheta::segment
const DTChambThSegm * segment(int step, unsigned n)
Return the requested DTTSTheta segment (only the first)
Definition: DTTSTheta.cc:209
DTSCTrigUnit::dumpLUT
void dumpLUT(short int btic) const
Dump the Lut file.
Definition: DTSCTrigUnit.h:117
DTConfigManager
Definition: DTConfigManager.h:49
ClusterTask_cfi.trig
trig
Definition: ClusterTask_cfi.py:398
DTSCTrigUnit::nPhiSegm
int nPhiSegm(int step)
Number of Phi segments for a given step.
Definition: DTSCTrigUnit.h:126
DTGeomSupplier.h
DTSCTrigUnit
Definition: DTSCTrigUnit.h:50
DTTracoCard.h
DTSCTrigUnit::~DTSCTrigUnit
~DTSCTrigUnit()
Destructor.
Definition: DTSCTrigUnit.cc:58
DTTracoCard
Definition: DTTracoCard.h:58
DTSCTrigUnit::nThetaSegm
int nThetaSegm(int step)
Number of theta segments for a given step.
Definition: DTSCTrigUnit.h:132
LocalPoint.h
DTTrigGeom
Definition: DTTrigGeom.h:41
DTChambPhSegm
Definition: DTChambPhSegm.h:41
DTSCTrigUnit::station
int station() const
Return station number.
Definition: DTSCTrigUnit.h:78
GlobalVector.h
DTSCTrigUnit::TSThTrigs
DTTSTheta * TSThTrigs() const
Return the chamber Trigger Server (Theta)
Definition: DTSCTrigUnit.h:93
DTGeomSupplier::CMSDirection
GlobalVector CMSDirection(const DTTrigData *trig) const
CMS direction in chamber of a trigger -data object.
Definition: DTGeomSupplier.h:78
DTSCTrigUnit::print
void print(DTTrigData *trig) const
Print a trigger-data object.
Definition: DTSCTrigUnit.h:111
DTTrigData.h
DTTrigGeom::dumpLUT
void dumpLUT(short int btic)
Dump the LUT for this chamber.
Definition: DTTrigGeom.cc:316
DTSCTrigUnit::statId
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTSCTrigUnit.h:72
DTChamberId
Definition: DTChamberId.h:14
ParameterSet.h
DTTrigGeom::statId
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTTrigGeom.h:53
DTSCTrigUnit::CMSDirection
GlobalVector CMSDirection(const DTTrigData *trig) const
Direction of a trigger-data object in CMS frame.
Definition: DTSCTrigUnit.h:108
DTSCTrigUnit::geom
DTTrigGeom * geom() const
The associated geometry.
Definition: DTSCTrigUnit.h:60
DTSCTrigUnit::dumpGeom
void dumpGeom() const
Dump the geometry.
Definition: DTSCTrigUnit.h:114
LocalVector.h
DTSCTrigUnit::_theBTIs
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:141
GlobalPoint.h
DTTrigGeom::station
int station() const
Return station number.
Definition: DTTrigGeom.h:62
DTSCTrigUnit::TracoTrigs
DTTracoCard * TracoTrigs() const
Return container of TRACO triggers.
Definition: DTSCTrigUnit.h:87
DTTSTheta
Definition: DTTSTheta.h:44
DTSCTrigUnit::TSPhTrigs
DTTSPhi * TSPhTrigs() const
Return the chamber Trigger Server (Phi)
Definition: DTSCTrigUnit.h:90
DTTrigGeom::dumpGeom
void dumpGeom() const
Dump the geometry.
Definition: DTTrigGeom.cc:266
DTSCTrigUnit::localPosition
LocalPoint localPosition(const DTTrigData *trig) const
Coordinate of a trigger-data object in chamber frame.
Definition: DTSCTrigUnit.h:99
DTBtiCard.h