CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTSCTrigUnit.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
11 //
12 //--------------------------------------------------
13 #ifndef DT_SC_TRIG_UNIT_H
14 #define DT_SC_TRIG_UNIT_H
15 
16 //---------------
17 // C++ Headers --
18 //---------------
19 #include <vector>
20 
21 //----------------------
22 // Base Class Headers --
23 //----------------------
24 
25 
26 //------------------------------------
27 // Collaborating Class Declarations --
28 //------------------------------------
46 
47 class DTChamber;
48 
49 
50 // ---------------------
51 // -- Class Interface --
52 // ---------------------
53 
54 class DTSCTrigUnit {
55 
56  public:
57 
59  //DTSCTrigUnit(DTChamber* stat, edm::ParameterSet& tu_pset) ;
61 
63  ~DTSCTrigUnit() ;
64 
66  inline DTTrigGeom* geom() const { return _geom; }
67 
69  void setGeom(const DTChamber* stat) { _geom->setGeom(stat); }
70 
72  void setConfig(const DTConfigManager *conf);
73 
75  inline const DTChamber* stat() const { return _geom->stat(); }
76 
78  inline DTChamberId statId() const { return _geom->statId(); }
79 
81  inline int wheel() const { return _geom->wheel(); }
82 
84  inline int station() const { return _geom->station(); }
85 
87  inline int sector() const { return _geom->sector(); }
88 
90  inline DTBtiCard* BtiTrigs() const { return _theBTIs; }
91 
93  inline DTTracoCard* TracoTrigs() const { return _theTRACOs; }
94 
96  inline DTTSPhi* TSPhTrigs() const { return _theTSPhi; }
97 
99  inline DTTSTheta* TSThTrigs() const { return _theTSTheta; }
100 
102  DTGeomSupplier* GeomSupplier(const DTTrigData* trig) const;
103 
105  inline LocalPoint localPosition(const DTTrigData* trig) const {
106  return GeomSupplier(trig)->localPosition(trig);
107  }
108 
110  inline GlobalPoint CMSPosition(const DTTrigData* trig) const {
111  return GeomSupplier(trig)->CMSPosition(trig);
112  }
113 
115  inline LocalVector localDirection(const DTTrigData* trig) const {
116  return GeomSupplier(trig)->localDirection(trig);
117  }
118 
120  inline GlobalVector CMSDirection(const DTTrigData* trig) const {
121  return GeomSupplier(trig)->CMSDirection(trig);
122  }
123 
125  inline void print(DTTrigData* trig) const {
126  GeomSupplier(trig)->print(trig);
127  }
128 
130  inline void dumpGeom() const { _geom->dumpGeom(); }
131 
133  inline void dumpLUT(short int btic) const { _geom->dumpLUT(btic); }
134 
136  int nDTBtiChip() { return _theBTIs->size(); }
137 
139  int nDTTracoChip() { return _theTRACOs->size(); }
140 
142  int nPhiSegm(int step) { return _theTSPhi->nSegm(step); }
143 
144 
146  const DTChambPhSegm* phiSegment(int step, int n) {
147  return _theTSPhi->segment(step, n);
148  }
149 
151  int nThetaSegm(int step) { return _theTSTheta->nSegm(step); }
152 
154  const DTChambThSegm* thetaSegment(int step, int n) {
155  return _theTSTheta->segment(step, n);
156  }
157 
158  private:
159 
160  DTTrigGeom* _geom; // Pointer to the geometry
161 
162  // Containers for DTBtiChip, DTTracoChip and TS
167 
168 };
169 
170 #endif
DTGeomSupplier * GeomSupplier(const DTTrigData *trig) const
Return the appropriate coordinate supplier.
Definition: DTSCTrigUnit.cc:71
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:160
const DTChamber * stat() const
The associated chamber.
Definition: DTSCTrigUnit.h:75
int sector() const
Return sector number.
Definition: DTTrigGeom.h:69
GlobalPoint CMSPosition(const DTTrigData *trig) const
CMS position in chamber of a trigger-data object.
int nDTTracoChip()
Number of active DTTracoChips.
Definition: DTSCTrigUnit.h:139
const DTChambThSegm * thetaSegment(int step, int n)
Return output segments, theta view.
Definition: DTSCTrigUnit.h:154
int nSegm(int step)
Return number of DTTSPhi segments.
Definition: DTTSPhi.cc:500
int wheel() const
Return wheel number.
Definition: DTTrigGeom.h:63
list step
Definition: launcher.py:15
void setGeom(const DTChamber *stat)
Set/Update Geometry.
Definition: DTTrigGeom.cc:203
DTSCTrigUnit(DTChamber *stat)
Constructor.
Definition: DTSCTrigUnit.cc:35
void setGeom(const DTChamber *stat)
Set geometry.
Definition: DTSCTrigUnit.h:69
DTTSTheta * TSThTrigs() const
Return the chamber Trigger Server (Theta)
Definition: DTSCTrigUnit.h:99
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:165
const DTChambThSegm * segment(int step, unsigned n)
Return the requested DTTSTheta segment (only the first)
Definition: DTTSTheta.cc:222
void dumpLUT(short int btic)
Dump the LUT for this chamber.
Definition: DTTrigGeom.cc:327
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:96
void dumpGeom() const
Dump the geometry.
Definition: DTTrigGeom.cc:276
LocalPoint localPosition(const DTTrigData *trig) const
Coordinate of a trigger-data object in chamber frame.
Definition: DTSCTrigUnit.h:105
void dumpLUT(short int btic) const
Dump the Lut file.
Definition: DTSCTrigUnit.h:133
DTBtiCard * BtiTrigs() const
Return container of BTI triggers.
Definition: DTSCTrigUnit.h:90
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:163
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:164
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:510
GlobalVector CMSDirection(const DTTrigData *trig) const
Direction of a trigger-data object in CMS frame.
Definition: DTSCTrigUnit.h:120
int nSegm(int step)
Return number of TStheta segments (just 1)
Definition: DTTSTheta.cc:212
virtual void print(const DTTrigData *trig) const
Print a trigger-data object with also local and global position/direction.
tuple conf
Definition: dbtoconf.py:185
int station() const
Return station number.
Definition: DTTrigGeom.h:66
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTTrigGeom.h:57
DTTracoCard * TracoTrigs() const
Return container of TRACO triggers.
Definition: DTSCTrigUnit.h:93
int station() const
Return station number.
Definition: DTSCTrigUnit.h:84
LocalVector localDirection(const DTTrigData *trig) const
Direction of a trigger-data object in chamber frame.
Definition: DTSCTrigUnit.h:115
int nDTBtiChip()
Number of active DTBtiChips.
Definition: DTSCTrigUnit.h:136
const DTChamber * stat() const
Associated chamber.
Definition: DTTrigGeom.h:54
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTSCTrigUnit.h:78
DTTrigGeom * geom() const
The associated geometry.
Definition: DTSCTrigUnit.h:66
int wheel() const
Return wheel number.
Definition: DTSCTrigUnit.h:81
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:146
int sector() const
Return sector number.
Definition: DTSCTrigUnit.h:87
int nPhiSegm(int step)
Number of Phi segments for a given step.
Definition: DTSCTrigUnit.h:142
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:166
~DTSCTrigUnit()
Destructor.
Definition: DTSCTrigUnit.cc:62
void print(DTTrigData *trig) const
Print a trigger-data object.
Definition: DTSCTrigUnit.h:125
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTSCTrigUnit.cc:85
void dumpGeom() const
Dump the geometry.
Definition: DTSCTrigUnit.h:130
int size() const
Get cache vector&#39;s size.
Definition: DTCache.h:48
GlobalPoint CMSPosition(const DTTrigData *trig) const
Coordinate of a trigger-data object in CMS frame.
Definition: DTSCTrigUnit.h:110
int nThetaSegm(int step)
Number of theta segments for a given step.
Definition: DTSCTrigUnit.h:151