test
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 //
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 //------------------------------------
25 // Collaborating Class Declarations --
26 //------------------------------------
44 
45 class DTChamber;
46 
47 
48 // ---------------------
49 // -- Class Interface --
50 // ---------------------
51 
52 class DTSCTrigUnit {
53 
54  public:
55 
57  //DTSCTrigUnit(DTChamber* stat, edm::ParameterSet& tu_pset) ;
58  DTSCTrigUnit(const DTChamber *stat) ;
59 
61  ~DTSCTrigUnit() ;
62 
64  inline DTTrigGeom* geom() const { return _geom; }
65 
67  void setGeom(const DTChamber* stat) { _geom->setGeom(stat); }
68 
70  void setConfig(const DTConfigManager *conf);
71 
73  inline const DTChamber* stat() const { return _geom->stat(); }
74 
76  inline DTChamberId statId() const { return _geom->statId(); }
77 
79  inline int wheel() const { return _geom->wheel(); }
80 
82  inline int station() const { return _geom->station(); }
83 
85  inline int sector() const { return _geom->sector(); }
86 
88  inline DTBtiCard* BtiTrigs() const { return _theBTIs; }
89 
91  inline DTTracoCard* TracoTrigs() const { return _theTRACOs; }
92 
94  inline DTTSPhi* TSPhTrigs() const { return _theTSPhi; }
95 
97  inline DTTSTheta* TSThTrigs() const { return _theTSTheta; }
98 
100  DTGeomSupplier* GeomSupplier(const DTTrigData* trig) const;
101 
103  inline LocalPoint localPosition(const DTTrigData* trig) const {
104  return GeomSupplier(trig)->localPosition(trig);
105  }
106 
108  inline GlobalPoint CMSPosition(const DTTrigData* trig) const {
109  return GeomSupplier(trig)->CMSPosition(trig);
110  }
111 
113  inline LocalVector localDirection(const DTTrigData* trig) const {
114  return GeomSupplier(trig)->localDirection(trig);
115  }
116 
118  inline GlobalVector CMSDirection(const DTTrigData* trig) const {
119  return GeomSupplier(trig)->CMSDirection(trig);
120  }
121 
123  inline void print(DTTrigData* trig) const {
124  GeomSupplier(trig)->print(trig);
125  }
126 
128  inline void dumpGeom() const { _geom->dumpGeom(); }
129 
131  inline void dumpLUT(short int btic) const { _geom->dumpLUT(btic); }
132 
134  int nDTBtiChip() { return _theBTIs->size(); }
135 
137  int nDTTracoChip() { return _theTRACOs->size(); }
138 
140  int nPhiSegm(int step) { return _theTSPhi->nSegm(step); }
141 
142 
144  const DTChambPhSegm* phiSegment(int step, int n) {
145  return _theTSPhi->segment(step, n);
146  }
147 
149  int nThetaSegm(int step) { return _theTSTheta->nSegm(step); }
150 
152  const DTChambThSegm* thetaSegment(int step, int n) {
153  return _theTSTheta->segment(step, n);
154  }
155 
156  private:
157 
158  DTTrigGeom* _geom; // Pointer to the geometry
159 
160  // Containers for DTBtiChip, DTTracoChip and TS
165 
166 };
167 
168 #endif
DTGeomSupplier * GeomSupplier(const DTTrigData *trig) const
Return the appropriate coordinate supplier.
Definition: DTSCTrigUnit.cc:71
DTTrigGeom * _geom
Definition: DTSCTrigUnit.h:158
const DTChamber * stat() const
The associated chamber.
Definition: DTSCTrigUnit.h:73
int sector() const
Return sector number.
Definition: DTTrigGeom.h:67
GlobalPoint CMSPosition(const DTTrigData *trig) const
CMS position in chamber of a trigger-data object.
int nDTTracoChip()
Number of active DTTracoChips.
Definition: DTSCTrigUnit.h:137
const DTChambThSegm * thetaSegment(int step, int n)
Return output segments, theta view.
Definition: DTSCTrigUnit.h:152
int nSegm(int step)
Return number of DTTSPhi segments.
Definition: DTTSPhi.cc:500
int wheel() const
Return wheel number.
Definition: DTTrigGeom.h:61
void setGeom(const DTChamber *stat)
Set/Update Geometry.
Definition: DTTrigGeom.cc:203
void setGeom(const DTChamber *stat)
Set geometry.
Definition: DTSCTrigUnit.h:67
DTTSTheta * TSThTrigs() const
Return the chamber Trigger Server (Theta)
Definition: DTSCTrigUnit.h:97
DTTSPhi * _theTSPhi
Definition: DTSCTrigUnit.h:163
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:94
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:103
void dumpLUT(short int btic) const
Dump the Lut file.
Definition: DTSCTrigUnit.h:131
DTBtiCard * BtiTrigs() const
Return container of BTI triggers.
Definition: DTSCTrigUnit.h:88
DTBtiCard * _theBTIs
Definition: DTSCTrigUnit.h:161
DTSCTrigUnit(const DTChamber *stat)
Constructor.
Definition: DTSCTrigUnit.cc:35
DTTracoCard * _theTRACOs
Definition: DTSCTrigUnit.h:162
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:118
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.
int station() const
Return station number.
Definition: DTTrigGeom.h:64
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTTrigGeom.h:55
DTTracoCard * TracoTrigs() const
Return container of TRACO triggers.
Definition: DTSCTrigUnit.h:91
int station() const
Return station number.
Definition: DTSCTrigUnit.h:82
LocalVector localDirection(const DTTrigData *trig) const
Direction of a trigger-data object in chamber frame.
Definition: DTSCTrigUnit.h:113
int nDTBtiChip()
Number of active DTBtiChips.
Definition: DTSCTrigUnit.h:134
const DTChamber * stat() const
Associated chamber.
Definition: DTTrigGeom.h:52
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTSCTrigUnit.h:76
DTTrigGeom * geom() const
The associated geometry.
Definition: DTSCTrigUnit.h:64
int wheel() const
Return wheel number.
Definition: DTSCTrigUnit.h:79
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:144
int sector() const
Return sector number.
Definition: DTSCTrigUnit.h:85
int nPhiSegm(int step)
Number of Phi segments for a given step.
Definition: DTSCTrigUnit.h:140
DTTSTheta * _theTSTheta
Definition: DTSCTrigUnit.h:164
~DTSCTrigUnit()
Destructor.
Definition: DTSCTrigUnit.cc:62
void print(DTTrigData *trig) const
Print a trigger-data object.
Definition: DTSCTrigUnit.h:123
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTSCTrigUnit.cc:85
void dumpGeom() const
Dump the geometry.
Definition: DTSCTrigUnit.h:128
int size() const
Get cache vector&#39;s size.
Definition: DTCache.h:46
GlobalPoint CMSPosition(const DTTrigData *trig) const
Coordinate of a trigger-data object in CMS frame.
Definition: DTSCTrigUnit.h:108
int nThetaSegm(int step)
Number of theta segments for a given step.
Definition: DTSCTrigUnit.h:149