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
virtual void print(const DTTrigData *trig) const
Print a trigger-data object with also local and global position/direction.
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:138
const DTChamber * stat() const
Associated chamber.
Definition: DTTrigGeom.h:50
int sector() const
Return sector number.
Definition: DTTrigGeom.h:65
int nDTTracoChip()
Number of active DTTracoChips.
Definition: DTSCTrigUnit.h:123
const DTChambThSegm * thetaSegment(int step, int n)
Return output segments, theta view.
Definition: DTSCTrigUnit.h:135
int sector() const
Return sector number.
Definition: DTSCTrigUnit.h:81
int nSegm(int step)
Return number of DTTSPhi segments.
Definition: DTTSPhi.cc:460
void dumpLUT(short int btic) const
Dump the Lut file.
Definition: DTSCTrigUnit.h:117
void setGeom(const DTChamber *stat)
Set/Update Geometry.
Definition: DTTrigGeom.cc:203
void setGeom(const DTChamber *stat)
Set geometry.
Definition: DTSCTrigUnit.h:63
DTBtiCard * BtiTrigs() const
Return container of BTI triggers.
Definition: DTSCTrigUnit.h:84
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:143
const DTChambThSegm * segment(int step, unsigned n)
Return the requested DTTSTheta segment (only the first)
Definition: DTTSTheta.cc:209
void dumpLUT(short int btic)
Dump the LUT for this chamber.
Definition: DTTrigGeom.cc:316
GlobalPoint CMSPosition(const DTTrigData *trig) const
Coordinate of a trigger-data object in CMS frame.
Definition: DTSCTrigUnit.h:102
void print(DTTrigData *trig) const
Print a trigger-data object.
Definition: DTSCTrigUnit.h:111
const DTChamber * stat() const
The associated chamber.
Definition: DTSCTrigUnit.h:69
GlobalVector CMSDirection(const DTTrigData *trig) const
Direction of a trigger-data object in CMS frame.
Definition: DTSCTrigUnit.h:108
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTSCTrigUnit.h:72
int wheel() const
Return wheel number.
Definition: DTTrigGeom.h:59
int size() const
Get cache vector&#39;s size.
Definition: DTCache.h:44
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:141
DTTSPhi * TSPhTrigs() const
Return the chamber Trigger Server (Phi)
Definition: DTSCTrigUnit.h:90
DTSCTrigUnit(const DTChamber *stat)
Constructor.
Definition: DTSCTrigUnit.cc:34
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:142
GlobalVector CMSDirection(const DTTrigData *trig) const
CMS direction in chamber of a trigger -data object.
virtual LocalPoint localPosition(const DTTrigData *) const =0
Local position in chamber of a trigger-data object.
DTTrigGeom * geom() const
The associated geometry.
Definition: DTSCTrigUnit.h:60
const DTChambPhSegm * segment(int step, unsigned n)
Return the requested DTTSPhi segment.
Definition: DTTSPhi.cc:470
void dumpGeom() const
Dump the geometry.
Definition: DTTrigGeom.cc:266
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTTrigGeom.h:53
int nSegm(int step)
Return number of TStheta segments (just 1)
Definition: DTTSTheta.cc:199
int station() const
Return station number.
Definition: DTTrigGeom.h:62
int station() const
Return station number.
Definition: DTSCTrigUnit.h:78
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
DTTracoCard * TracoTrigs() const
Return container of TRACO triggers.
Definition: DTSCTrigUnit.h:87
void dumpGeom() const
Dump the geometry.
Definition: DTSCTrigUnit.h:114
int nDTBtiChip()
Number of active DTBtiChips.
Definition: DTSCTrigUnit.h:120
LocalPoint localPosition(const DTTrigData *trig) const
Coordinate of a trigger-data object in chamber frame.
Definition: DTSCTrigUnit.h:99
LocalVector localDirection(const DTTrigData *trig) const
Direction of a trigger-data object in chamber frame.
Definition: DTSCTrigUnit.h:105
step
Definition: StallMonitor.cc:83
virtual LocalVector localDirection(const DTTrigData *) const =0
Local direction in chamber of a trigger-data object.
const DTChambPhSegm * phiSegment(int step, int n)
Return output segments, phi view.
Definition: DTSCTrigUnit.h:129
int nPhiSegm(int step)
Number of Phi segments for a given step.
Definition: DTSCTrigUnit.h:126
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:144
~DTSCTrigUnit()
Destructor.
Definition: DTSCTrigUnit.cc:58
int wheel() const
Return wheel number.
Definition: DTSCTrigUnit.h:75
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTSCTrigUnit.cc:84
DTTSTheta * TSThTrigs() const
Return the chamber Trigger Server (Theta)
Definition: DTSCTrigUnit.h:93
int nThetaSegm(int step)
Number of theta segments for a given step.
Definition: DTSCTrigUnit.h:132