CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
96  DTGeomSupplier* GeomSupplier(const DTTrigData* trig) const;
97 
99  inline LocalPoint localPosition(const DTTrigData* trig) const { return GeomSupplier(trig)->localPosition(trig); }
100 
102  inline GlobalPoint CMSPosition(const DTTrigData* trig) const { return GeomSupplier(trig)->CMSPosition(trig); }
103 
105  inline LocalVector localDirection(const DTTrigData* trig) const { return GeomSupplier(trig)->localDirection(trig); }
106 
108  inline GlobalVector CMSDirection(const DTTrigData* trig) const { return GeomSupplier(trig)->CMSDirection(trig); }
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
DTGeomSupplier * GeomSupplier(const DTTrigData *trig) const
Return the appropriate coordinate supplier.
Definition: DTSCTrigUnit.cc:66
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:138
const DTChamber * stat() const
The associated chamber.
Definition: DTSCTrigUnit.h:69
int sector() const
Return sector number.
Definition: DTTrigGeom.h:65
GlobalPoint CMSPosition(const DTTrigData *trig) const
CMS position in chamber of a trigger-data object.
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 nSegm(int step)
Return number of DTTSPhi segments.
Definition: DTTSPhi.cc:473
int wheel() const
Return wheel number.
Definition: DTTrigGeom.h:59
void setGeom(const DTChamber *stat)
Set/Update Geometry.
Definition: DTTrigGeom.cc:203
void setGeom(const DTChamber *stat)
Set geometry.
Definition: DTSCTrigUnit.h:63
DTTSTheta * TSThTrigs() const
Return the chamber Trigger Server (Theta)
Definition: DTSCTrigUnit.h:93
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
GlobalVector CMSDirection(const DTTrigData *trig) const
CMS direction in chamber of a trigger -data object.
DTTSPhi * TSPhTrigs() const
Return the chamber Trigger Server (Phi)
Definition: DTSCTrigUnit.h:90
void dumpGeom() const
Dump the geometry.
Definition: DTTrigGeom.cc:266
LocalPoint localPosition(const DTTrigData *trig) const
Coordinate of a trigger-data object in chamber frame.
Definition: DTSCTrigUnit.h:99
void dumpLUT(short int btic) const
Dump the Lut file.
Definition: DTSCTrigUnit.h:117
DTBtiCard * BtiTrigs() const
Return container of BTI triggers.
Definition: DTSCTrigUnit.h:84
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:141
DTSCTrigUnit(const DTChamber *stat)
Constructor.
Definition: DTSCTrigUnit.cc:34
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:142
virtual LocalPoint localPosition(const DTTrigData *) const =0
Local position in chamber of a trigger-data object.
const DTChambPhSegm * segment(int step, unsigned n)
Return the requested DTTSPhi segment.
Definition: DTTSPhi.cc:483
GlobalVector CMSDirection(const DTTrigData *trig) const
Direction of a trigger-data object in CMS frame.
Definition: DTSCTrigUnit.h:108
int nSegm(int step)
Return number of TStheta segments (just 1)
Definition: DTTSTheta.cc:199
virtual void print(const DTTrigData *trig) const
Print a trigger-data object with also local and global position/direction.
int station() const
Return station number.
Definition: DTTrigGeom.h:62
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTTrigGeom.h:53
DTTracoCard * TracoTrigs() const
Return container of TRACO triggers.
Definition: DTSCTrigUnit.h:87
int station() const
Return station number.
Definition: DTSCTrigUnit.h:78
LocalVector localDirection(const DTTrigData *trig) const
Direction of a trigger-data object in chamber frame.
Definition: DTSCTrigUnit.h:105
int nDTBtiChip()
Number of active DTBtiChips.
Definition: DTSCTrigUnit.h:120
const DTChamber * stat() const
Associated chamber.
Definition: DTTrigGeom.h:50
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTSCTrigUnit.h:72
DTTrigGeom * geom() const
The associated geometry.
Definition: DTSCTrigUnit.h:60
int wheel() const
Return wheel number.
Definition: DTSCTrigUnit.h:75
step
Definition: StallMonitor.cc:94
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 sector() const
Return sector number.
Definition: DTSCTrigUnit.h:81
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
void print(DTTrigData *trig) const
Print a trigger-data object.
Definition: DTSCTrigUnit.h:111
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTSCTrigUnit.cc:84
void dumpGeom() const
Dump the geometry.
Definition: DTSCTrigUnit.h:114
int size() const
Get cache vector&#39;s size.
Definition: DTCache.h:44
GlobalPoint CMSPosition(const DTTrigData *trig) const
Coordinate of a trigger-data object in CMS frame.
Definition: DTSCTrigUnit.h:102
int nThetaSegm(int step)
Number of theta segments for a given step.
Definition: DTSCTrigUnit.h:132