test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
DTTSTheta Class Reference

#include <DTTSTheta.h>

Inheritance diagram for DTTSTheta:
DTCache< T, Coll > DTGeomSupplier

Public Member Functions

const DTConfigTSThetaconfig () const
 Return configuration. More...
 
 DTTSTheta (DTTrigGeom *, DTBtiCard *)
 Constructor. More...
 
LocalVector localDirection (const DTTrigData *) const
 Local direction in chamber of a L1Trigger-data object. More...
 
LocalPoint localPosition (const DTTrigData *) const
 Local position in chamber of a L1Trigger-data object. More...
 
int nHTrig (int step)
 Return number of DTBtiChip fired with a HTRIG (used by DTTracoChip) More...
 
int nSegm (int step)
 Return number of TStheta segments (just 1) More...
 
int nTrig (int step)
 Return number of DTBtiChip fired (used by DTTracoChip) More...
 
void print (const DTTrigData *trig) const
 Print a L1Trigger-data object with also local and global position/direction. More...
 
void reconstruct ()
 Load BTIs triggers and run TSTheta algoritm. More...
 
const DTChambThSegmsegment (int step, unsigned n)
 Return the requested DTTSTheta segment (only the first) More...
 
void setConfig (const DTConfigManager *conf)
 Set configuration. More...
 
 ~DTTSTheta ()
 Destructor. More...
 
- Public Member Functions inherited from DTCache< T, Coll >
const_iterator begin () const
 Get first cache element. More...
 
void clearCache ()
 Clear cache vector. More...
 
 DTCache ()
 Constructor. More...
 
const_iterator end () const
 Get last cache element. More...
 
int size () const
 Get cache vector's size. More...
 
virtual ~DTCache ()
 Destructor. More...
 
- Public Member Functions inherited from DTGeomSupplier
DTChamberId ChamberId () const
 Identifier of the associated chamber. More...
 
GlobalVector CMSDirection (const DTTrigData *trig) const
 CMS direction in chamber of a trigger -data object. More...
 
GlobalPoint CMSPosition (const DTTrigData *trig) const
 CMS position in chamber of a trigger-data object. More...
 
 DTGeomSupplier (DTTrigGeom *geom)
 Constructor. More...
 
DTTrigGeomgeom () const
 Associated geometry. More...
 
int sector () const
 Return sector number. More...
 
const DTChamberstat () const
 Associated chamber. More...
 
int station () const
 Return station number. More...
 
int wheel () const
 Return wheel number. More...
 
virtual ~DTGeomSupplier ()
 Destructor. More...
 

Private Member Functions

void add_btiT (int step, const DTBtiTrigData *btitrig)
 Add a DTBtiChip L1Trigger to the DTTSTheta. More...
 
BitArray
< DTConfigTSTheta::NCELLTH > * 
btiMask (int step) const
 Return the BitArray of DTBtiChip fired. More...
 
BitArray
< DTConfigTSTheta::NCELLTH > * 
btiQual (int step) const
 Return the BitArray of DTBtiChip fired with a HTRIG. More...
 
void loadDTTSTheta ()
 store DTBtiChip L1Triggers in the TST More...
 
void localClear ()
 Clear. More...
 
void runDTTSTheta ()
 run DTTSTheta algorithm (build the mask) More...
 

Private Attributes

DTBtiCard_bticard
 
const DTConfigTSTheta_config
 
BitArray
< DTConfigTSTheta::NCELLTH
_Htrig [DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
 
int _nHtrig [DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
 
int _ntrig [DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
 
BitArray
< DTConfigTSTheta::NCELLTH
_trig [DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
 

Additional Inherited Members

- Public Types inherited from DTCache< T, Coll >
typedef
my_collection::const_iterator 
const_iterator
 
typedef my_collection::iterator iterator
 
typedef Coll my_collection
 
typedef T my_type
 
- Protected Attributes inherited from DTCache< T, Coll >
my_collection _cache
 
- Protected Attributes inherited from DTGeomSupplier
DTTrigGeom_geom
 

Detailed Description

Implementation of TS Theta L1Trigger algorithm

Author
C.Grandi

Definition at line 44 of file DTTSTheta.h.

Constructor & Destructor Documentation

DTTSTheta::DTTSTheta ( DTTrigGeom geom,
DTBtiCard bticard 
)

Constructor.

Definition at line 37 of file DTTSTheta.cc.

References _Htrig, _nHtrig, _ntrig, _trig, i, DTConfig::NSTEPF, DTConfig::NSTEPL, and BitArray< N >::zero().

37  :
38  DTGeomSupplier(geom), _bticard(bticard) {
39 
41  _trig[i].zero();
42  _Htrig[i].zero();
43  _ntrig[i] = 0;
44  _nHtrig[i] = 0;
45  }
46 
47 }
int i
Definition: DBlmapReader.cc:9
BitArray< DTConfigTSTheta::NCELLTH > _trig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:112
void zero()
Definition: BitArray.h:216
int _ntrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:114
static const int NSTEPF
Definition: DTConfig.h:36
int _nHtrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:115
static const int NSTEPL
Constants: first and last step to start trigger finding.
Definition: DTConfig.h:36
DTBtiCard * _bticard
Definition: DTTSTheta.h:107
DTGeomSupplier(DTTrigGeom *geom)
Constructor.
BitArray< DTConfigTSTheta::NCELLTH > _Htrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:113
DTTSTheta::~DTTSTheta ( )

Destructor.

Definition at line 53 of file DTTSTheta.cc.

53  {
54  //delete _config;
55 }

Member Function Documentation

void DTTSTheta::add_btiT ( int  step,
const DTBtiTrigData btitrig 
)
private

Add a DTBtiChip L1Trigger to the DTTSTheta.

Definition at line 107 of file DTTSTheta.cc.

References _Htrig, _nHtrig, _ntrig, _trig, DTBtiTrigData::btiNumber(), DTBtiTrigData::code(), config(), gather_cfg::cout, debug, DTGeomSupplier::geom(), gen::n, DTConfig::NSTEPF, DTConfig::NSTEPL, BitArray< N >::set(), and relval_parameters_module::step.

Referenced by loadDTTSTheta().

107  {
108  int n = btitrig->btiNumber();
109 
110 /*
111 OBSOLETE! in NEWGEO the bti number order is the correct one!
112  // check where the BTI is, and reverse the order in stat 1 and 2 and 3 (only for some sectors)
113 
114  if( (wheel()==0 && (sector()==1 || sector()==4 || sector()==5 ||
115  sector()==8 || sector()==9 || sector()==12))
116  || wheel()==-1
117  || wheel()==-2)
118  {n=DTConfigTSTheta::NCELLTH + 1 - n; }
119 
120 */
121 
122  if( n<1 || n>geom()->nCell(2) ) {
123  std::cout << "DTTSTheta::add_btiT: BTI out of range: " << n;
124  std::cout << " trigger not added!" << std::endl;
125  return;
126  }
127  if(step<DTConfigTSTheta::NSTEPF||step>DTConfigTSTheta::NSTEPL){
128  std::cout << "DTTSTheta::add_btiT: step out of range: " << step;
129  std::cout << " trigger not added!" << std::endl;
130  return;
131  }
134 
135  if(btitrig->code()==8){
138  }
139 
140  if(config()->debug()){
141  std::cout << "BTI Trigger added at step " << step;
142  std::cout << " to DTTSTheta at position " << n << std::endl;
143  }
144  return;
145 }
DTTrigGeom * geom() const
Associated geometry.
BitArray< DTConfigTSTheta::NCELLTH > _trig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:112
int _ntrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:114
static const int NSTEPF
Definition: DTConfig.h:36
const DTConfigTSTheta * config() const
Return configuration.
Definition: DTTSTheta.h:56
int _nHtrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:115
static const int NSTEPL
Constants: first and last step to start trigger finding.
Definition: DTConfig.h:36
int btiNumber() const
Return parent BTI number.
#define debug
Definition: HDRShower.cc:19
BitArray< DTConfigTSTheta::NCELLTH > _Htrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:113
tuple cout
Definition: gather_cfg.py:145
void set(const int i)
Definition: BitArray.h:230
int code() const
Return trigger code.
BitArray< DTConfigTSTheta::NCELLTH > * DTTSTheta::btiMask ( int  step) const
private

Return the BitArray of DTBtiChip fired.

Definition at line 254 of file DTTSTheta.cc.

References _trig, gather_cfg::cout, DTConfig::NSTEPF, DTConfig::NSTEPL, and relval_parameters_module::step.

Referenced by runDTTSTheta().

254  {
255  if(step<DTConfigTSTheta::NSTEPF||step>DTConfigTSTheta::NSTEPL){
256  std::cout << "DTTSTheta::btiMask: step out of range " << step;
257  std::cout << " empty pointer returned" << std::endl;
258  return 0;
259  }
261 }
BitArray< DTConfigTSTheta::NCELLTH > _trig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:112
static const int NSTEPF
Definition: DTConfig.h:36
static const int NSTEPL
Constants: first and last step to start trigger finding.
Definition: DTConfig.h:36
tuple cout
Definition: gather_cfg.py:145
BitArray< DTConfigTSTheta::NCELLTH > * DTTSTheta::btiQual ( int  step) const
private

Return the BitArray of DTBtiChip fired with a HTRIG.

Definition at line 264 of file DTTSTheta.cc.

References _Htrig, gather_cfg::cout, DTConfig::NSTEPF, DTConfig::NSTEPL, and relval_parameters_module::step.

Referenced by runDTTSTheta().

264  {
265  if(step<DTConfigTSTheta::NSTEPF||step>DTConfigTSTheta::NSTEPL){
266  std::cout << "DTTSTheta::btiQual: step out of range " << step;
267  std::cout << " empty pointer returned" << std::endl;
268  return 0;
269  }
271 }
static const int NSTEPF
Definition: DTConfig.h:36
static const int NSTEPL
Constants: first and last step to start trigger finding.
Definition: DTConfig.h:36
BitArray< DTConfigTSTheta::NCELLTH > _Htrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:113
tuple cout
Definition: gather_cfg.py:145
const DTConfigTSTheta* DTTSTheta::config ( void  ) const
inline

Return configuration.

Definition at line 56 of file DTTSTheta.h.

References _config.

Referenced by add_btiT(), loadDTTSTheta(), and runDTTSTheta().

56 { return _config; }
const DTConfigTSTheta * _config
Definition: DTTSTheta.h:109
void DTTSTheta::loadDTTSTheta ( )
private

store DTBtiChip L1Triggers in the TST

Definition at line 82 of file DTTSTheta.cc.

References _bticard, add_btiT(), DTCache< T, Coll >::begin(), config(), gather_cfg::cout, debug, DTCache< T, Coll >::end(), localClear(), AlCaHLTBitMon_ParallelJobs::p, DTGeomSupplier::sector(), DTGeomSupplier::station(), relval_parameters_module::step, and DTGeomSupplier::wheel().

Referenced by reconstruct().

82  {
83  localClear();
84  if(station()==4)return;
85 
86  if(config()->debug()){
87  std::cout << "DTTSTheta::loadDTTSTheta called for wheel=" << wheel() ;
88  std::cout << ", station=" << station();
89  std::cout << ", sector=" << sector() << std::endl;
90  }
91 
92  // loop on all BTI triggers
93  std::vector<DTBtiTrigData>::const_iterator p;
94  std::vector<DTBtiTrigData>::const_iterator pend=_bticard->end();
95  for(p=_bticard->begin();p!=pend;p++){
96  // Look only to BTIs in SL 2
97  if (p->btiSL() == 2) {
98  // BTI number
99  int step = p->step();
100  add_btiT( step, &(*p) );
101  }
102  }
103 
104 }
int sector() const
Return sector number.
void add_btiT(int step, const DTBtiTrigData *btitrig)
Add a DTBtiChip L1Trigger to the DTTSTheta.
Definition: DTTSTheta.cc:107
int station() const
Return station number.
int wheel() const
Return wheel number.
const DTConfigTSTheta * config() const
Return configuration.
Definition: DTTSTheta.h:56
void localClear()
Clear.
Definition: DTTSTheta.cc:63
DTBtiCard * _bticard
Definition: DTTSTheta.h:107
#define debug
Definition: HDRShower.cc:19
const_iterator begin() const
Get first cache element.
Definition: DTCache.h:40
tuple cout
Definition: gather_cfg.py:145
const_iterator end() const
Get last cache element.
Definition: DTCache.h:43
void DTTSTheta::localClear ( )
private

Clear.

Definition at line 63 of file DTTSTheta.cc.

References _Htrig, _nHtrig, _ntrig, _trig, DTConfig::NSTEPF, DTConfig::NSTEPL, and BitArray< N >::zero().

Referenced by loadDTTSTheta().

63  {
64  for(int is=0;is<DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1;is++){
65  // clear input bit masks
66  _trig[is].zero();
67  _Htrig[is].zero();
68  _ntrig[is] = 0;
69  _nHtrig[is] = 0;
70  }
71 }
BitArray< DTConfigTSTheta::NCELLTH > _trig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:112
void zero()
Definition: BitArray.h:216
int _ntrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:114
static const int NSTEPF
Definition: DTConfig.h:36
int _nHtrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:115
static const int NSTEPL
Constants: first and last step to start trigger finding.
Definition: DTConfig.h:36
BitArray< DTConfigTSTheta::NCELLTH > _Htrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:113
LocalVector DTTSTheta::localDirection ( const DTTrigData tr) const
virtual

Local direction in chamber of a L1Trigger-data object.

Implements DTGeomSupplier.

Definition at line 281 of file DTTSTheta.cc.

281  {
282  //const DTChambThSegm* trig = dynamic_cast<const DTChambThSegm*>(tr);
283  //@@ Not implemented yet
284  return LocalVector(0,0,0);
285 }
Local3DVector LocalVector
Definition: LocalVector.h:12
LocalPoint DTTSTheta::localPosition ( const DTTrigData tr) const
virtual

Local position in chamber of a L1Trigger-data object.

Implements DTGeomSupplier.

Definition at line 274 of file DTTSTheta.cc.

274  {
275  //const DTChambThSegm* trig = dynamic_cast<const DTChambThSegm*>(tr);
276  //@@ Not implemented yet
277  return LocalPoint(0,0,0);
278 }
Local3DPoint LocalPoint
Definition: LocalPoint.h:11
int DTTSTheta::nHTrig ( int  step)

Return number of DTBtiChip fired with a HTRIG (used by DTTracoChip)

Definition at line 243 of file DTTSTheta.cc.

References _nHtrig, gather_cfg::cout, DTConfig::NSTEPF, DTConfig::NSTEPL, DTCache< T, Coll >::size(), and relval_parameters_module::step.

Referenced by DTTracoChip::storeUncorr().

243  {
244  if(step<DTConfigTSTheta::NSTEPF||step>DTConfigTSTheta::NSTEPL){
245  std::cout << "DTTSTheta::nHTrig: step out of range " << step;
246  std::cout << " 0 returned" << std::endl;
247  return 0;
248  }
249  if(size()>0) return _nHtrig[step-DTConfigTSTheta::NSTEPF];
250  return 0;
251 }
static const int NSTEPF
Definition: DTConfig.h:36
int _nHtrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:115
static const int NSTEPL
Constants: first and last step to start trigger finding.
Definition: DTConfig.h:36
tuple cout
Definition: gather_cfg.py:145
int size() const
Get cache vector&#39;s size.
Definition: DTCache.h:46
int DTTSTheta::nSegm ( int  step)

Return number of TStheta segments (just 1)

Definition at line 212 of file DTTSTheta.cc.

References DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), gen::n, AlCaHLTBitMon_ParallelJobs::p, and relval_parameters_module::step.

Referenced by DTSCTrigUnit::nThetaSegm().

212  {
213  int n=0;
214  std::vector<DTChambThSegm>::const_iterator p;
215  for(p=begin(); p<end(); p++) {
216  if(p->step()==step)n++;
217  }
218  return n;
219 }
const_iterator begin() const
Get first cache element.
Definition: DTCache.h:40
const_iterator end() const
Get last cache element.
Definition: DTCache.h:43
int DTTSTheta::nTrig ( int  step)

Return number of DTBtiChip fired (used by DTTracoChip)

Definition at line 232 of file DTTSTheta.cc.

References _ntrig, gather_cfg::cout, DTConfig::NSTEPF, DTConfig::NSTEPL, DTCache< T, Coll >::size(), and relval_parameters_module::step.

Referenced by DTTracoChip::storeUncorr().

232  {
233  if(step<DTConfigTSTheta::NSTEPF||step>DTConfigTSTheta::NSTEPL){
234  std::cout << "DTTSTheta::nTrig: step out of range " << step;
235  std::cout << " 0 returned" << std::endl;
236  return 0;
237  }
238  if(size()>0) return _ntrig[step-DTConfigTSTheta::NSTEPF];
239  return 0;
240 }
int _ntrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:114
static const int NSTEPF
Definition: DTConfig.h:36
static const int NSTEPL
Constants: first and last step to start trigger finding.
Definition: DTConfig.h:36
tuple cout
Definition: gather_cfg.py:145
int size() const
Get cache vector&#39;s size.
Definition: DTCache.h:46
void DTTSTheta::print ( const DTTrigData trig) const
virtual

Print a L1Trigger-data object with also local and global position/direction.

Reimplemented from DTGeomSupplier.

Definition at line 288 of file DTTSTheta.cc.

References DTTrigData::print().

288  {
289  trig->print();
290  //@@ coordinate printing not implemented yet
291  //@@ rermove this method as soon as the local coordinates are meaningful
292 
293 }
virtual void print() const =0
Print a trigger-data object with also local and global position/direction.
void DTTSTheta::reconstruct ( )
inlinevirtual

Load BTIs triggers and run TSTheta algoritm.

Reimplemented from DTCache< T, Coll >.

Definition at line 83 of file DTTSTheta.h.

References loadDTTSTheta(), and runDTTSTheta().

Referenced by DTTrig::triggerReco().

void runDTTSTheta()
run DTTSTheta algorithm (build the mask)
Definition: DTTSTheta.cc:148
void loadDTTSTheta()
store DTBtiChip L1Triggers in the TST
Definition: DTTSTheta.cc:82
void DTTSTheta::runDTTSTheta ( )
private

run DTTSTheta algorithm (build the mask)

Definition at line 148 of file DTTSTheta.cc.

References DTCache< T, Coll >::_cache, _ntrig, BitArray< N >::any(), btiMask(), btiQual(), BitArray< N >::byte(), DTGeomSupplier::ChamberId(), config(), gather_cfg::cout, debug, i, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, DTGeomSupplier::sector(), DTGeomSupplier::station(), and DTGeomSupplier::wheel().

Referenced by reconstruct().

148  {
149  // Just make a DTChambThSegm for each step and store it
150  for(int is=DTConfigTSTheta::NSTEPF;is<DTConfigTSTheta::NSTEPL+1;is++) {
151  if(_ntrig[is-DTConfigTSTheta::NSTEPF]>0) {
152  int i=0;
153  int code[8];
154  int pos[8];
155  int qual[8];
156  for(i=0;i<8;i++) {
157  //@@ MULT not implemented:
158  pos[i]=btiMask(is)->byte(i).any();
159  qual[i]=btiQual(is)->byte(i).any();
160  code[i]=pos[i]+qual[i];
161  }
162 
163  // SM .OR. response of BTI number 57 in previous group of 8 BTIs
164 
165  if(pos[7] > pos[6]) pos[6]=pos[7];
166  if(qual[7] > qual[6]) qual[6]=qual[7];
167  if(code[7] > code[6]) code[6]=code[7];
168 
169 
170  if(config()->debug()){
171  std::cout << " wheel = " << wheel() << " station = " << station() << " sector = " << sector() << std::endl;
172  std::cout << " pos : ";
173  for(i=0;i<8;i++) {
174  std::cout << pos[i] << " ";
175  }
176  std::cout << std::endl;
177  std::cout << " qual : ";
178  for(i=0;i<8;i++) {
179  std::cout << qual[i] << " ";
180  }
181  std::cout << std::endl;
182  std::cout << " code : ";
183  for(i=0;i<8;i++) {
184  std::cout << code[i] << " ";
185 
186  }
187  std::cout << std::endl;
188  std::cout << std::endl;
189  }
190 
191  _cache.push_back(DTChambThSegm(ChamberId(),is,pos,qual));
192  }
193  }
194 
195  // debugging...
196  if(config()->debug()){
197  if(_cache.size()>0){
198  std::cout << "====================================================" << std::endl;
199  std::cout << " Theta segments " << std::endl;
200  std::vector<DTChambThSegm>::const_iterator p;
201  for(p=_cache.begin();p<_cache.end();p++) {
202  p->print();
203  }
204  std::cout << "====================================================" << std::endl;
205  }
206  }
207  // end debugging
208 
209 }
int i
Definition: DBlmapReader.cc:9
my_collection _cache
Definition: DTCache.h:56
int sector() const
Return sector number.
int any()
Definition: BitArray.h:184
int _ntrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:114
BitArray< 8 > byte(const int i) const
Definition: BitArray.h:287
static const int NSTEPF
Definition: DTConfig.h:36
int station() const
Return station number.
BitArray< DTConfigTSTheta::NCELLTH > * btiMask(int step) const
Return the BitArray of DTBtiChip fired.
Definition: DTTSTheta.cc:254
int wheel() const
Return wheel number.
const DTConfigTSTheta * config() const
Return configuration.
Definition: DTTSTheta.h:56
BitArray< DTConfigTSTheta::NCELLTH > * btiQual(int step) const
Return the BitArray of DTBtiChip fired with a HTRIG.
Definition: DTTSTheta.cc:264
DTChamberId ChamberId() const
Identifier of the associated chamber.
static const int NSTEPL
Constants: first and last step to start trigger finding.
Definition: DTConfig.h:36
#define debug
Definition: HDRShower.cc:19
tuple cout
Definition: gather_cfg.py:145
const DTChambThSegm * DTTSTheta::segment ( int  step,
unsigned  n 
)

Return the requested DTTSTheta segment (only the first)

Definition at line 222 of file DTTSTheta.cc.

References DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), and AlCaHLTBitMon_ParallelJobs::p.

Referenced by DTSCTrigUnit::thetaSegment().

222  {
223  std::vector<DTChambThSegm>::const_iterator p;
224  for(p=begin();p<end();p++){
225  if(p->step()==step&&n==1)
226  return &(*p);
227  }
228  return 0;
229 }
const_iterator begin() const
Get first cache element.
Definition: DTCache.h:40
const_iterator end() const
Get last cache element.
Definition: DTCache.h:43
void DTTSTheta::setConfig ( const DTConfigManager conf)

Set configuration.

Definition at line 74 of file DTTSTheta.cc.

References _config, DTGeomSupplier::ChamberId(), and DTConfigManager::getDTConfigTSTheta().

Referenced by DTSCTrigUnit::setConfig().

74  {
75 
76  DTChamberId sid = ChamberId();
77  _config = conf->getDTConfigTSTheta(sid);
78 
79 }
DTChamberId ChamberId() const
Identifier of the associated chamber.
const DTConfigTSTheta * getDTConfigTSTheta(DTChamberId) const
Get desired Trigger Server Theta configuration.
const DTConfigTSTheta * _config
Definition: DTTSTheta.h:109

Member Data Documentation

DTBtiCard* DTTSTheta::_bticard
private

Definition at line 107 of file DTTSTheta.h.

Referenced by loadDTTSTheta().

const DTConfigTSTheta* DTTSTheta::_config
private

Definition at line 109 of file DTTSTheta.h.

Referenced by config(), and setConfig().

Definition at line 113 of file DTTSTheta.h.

Referenced by add_btiT(), btiQual(), DTTSTheta(), and localClear().

int DTTSTheta::_nHtrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
private

Definition at line 115 of file DTTSTheta.h.

Referenced by add_btiT(), DTTSTheta(), localClear(), and nHTrig().

int DTTSTheta::_ntrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
private

Definition at line 114 of file DTTSTheta.h.

Referenced by add_btiT(), DTTSTheta(), localClear(), nTrig(), and runDTTSTheta().

Definition at line 112 of file DTTSTheta.h.

Referenced by add_btiT(), btiMask(), DTTSTheta(), and localClear().