#include <DTTSTheta.h>
Public Member Functions | |
const DTConfigTSTheta * | config () const |
Return configuration. More... | |
DTTSTheta (DTTrigGeom *, DTBtiCard *) | |
Constructor. More... | |
LocalVector | localDirection (const DTTrigData *) const override |
Local direction in chamber of a L1Trigger-data object. More... | |
LocalPoint | localPosition (const DTTrigData *) const override |
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 override |
Print a L1Trigger-data object with also local and global position/direction. More... | |
void | reconstruct () override |
Load BTIs triggers and run TSTheta algoritm. More... | |
const DTChambThSegm * | segment (int step, unsigned n) |
Return the requested DTTSTheta segment (only the first) More... | |
void | setConfig (const DTConfigManager *conf) |
Set configuration. More... | |
~DTTSTheta () override | |
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... | |
DTTrigGeom * | geom () const |
Associated geometry. More... | |
int | sector () const |
Return sector number. More... | |
const DTChamber * | stat () 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 |
Implementation of TS Theta L1Trigger algorithm
Definition at line 44 of file DTTSTheta.h.
DTTSTheta::DTTSTheta | ( | DTTrigGeom * | geom, |
DTBtiCard * | bticard | ||
) |
Constructor.
Definition at line 37 of file DTTSTheta.cc.
References _Htrig, _nHtrig, _ntrig, _trig, mps_fire::i, DTConfig::NSTEPF, DTConfig::NSTEPL, and BitArray< N >::zero().
|
override |
|
private |
Add a DTBtiChip L1Trigger to the DTTSTheta.
Definition at line 96 of file DTTSTheta.cc.
References _Htrig, _nHtrig, _ntrig, _trig, DTBtiTrigData::btiNumber(), DTBtiTrigData::code(), config(), gather_cfg::cout, debug, DTGeomSupplier::geom(), dqmiodumpmetadata::n, DTConfig::NSTEPF, DTConfig::NSTEPL, and BitArray< N >::set().
Referenced by loadDTTSTheta().
|
private |
Return the BitArray of DTBtiChip fired.
Definition at line 240 of file DTTSTheta.cc.
References _trig, gather_cfg::cout, DTConfig::NSTEPF, and DTConfig::NSTEPL.
Referenced by runDTTSTheta().
|
private |
Return the BitArray of DTBtiChip fired with a HTRIG.
Definition at line 249 of file DTTSTheta.cc.
References _Htrig, gather_cfg::cout, DTConfig::NSTEPF, and DTConfig::NSTEPL.
Referenced by runDTTSTheta().
|
inline |
Return configuration.
Definition at line 54 of file DTTSTheta.h.
References _config.
Referenced by add_btiT(), loadDTTSTheta(), and runDTTSTheta().
|
private |
store DTBtiChip L1Triggers in the TST
Definition at line 72 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(), and DTGeomSupplier::wheel().
Referenced by reconstruct().
|
private |
Clear.
Definition at line 57 of file DTTSTheta.cc.
References _Htrig, _nHtrig, _ntrig, _trig, DTConfig::NSTEPF, DTConfig::NSTEPL, and BitArray< N >::zero().
Referenced by loadDTTSTheta().
|
overridevirtual |
Local direction in chamber of a L1Trigger-data object.
Implements DTGeomSupplier.
Definition at line 264 of file DTTSTheta.cc.
|
overridevirtual |
Local position in chamber of a L1Trigger-data object.
Implements DTGeomSupplier.
Definition at line 258 of file DTTSTheta.cc.
int DTTSTheta::nHTrig | ( | int | step | ) |
Return number of DTBtiChip fired with a HTRIG (used by DTTracoChip)
Definition at line 229 of file DTTSTheta.cc.
References _nHtrig, gather_cfg::cout, DTConfig::NSTEPF, DTConfig::NSTEPL, and DTCache< T, Coll >::size().
Referenced by DTTracoChip::storeUncorr().
int DTTSTheta::nSegm | ( | int | step | ) |
Return number of TStheta segments (just 1)
Definition at line 199 of file DTTSTheta.cc.
References DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), dqmiodumpmetadata::n, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by DTSCTrigUnit::nThetaSegm().
int DTTSTheta::nTrig | ( | int | step | ) |
Return number of DTBtiChip fired (used by DTTracoChip)
Definition at line 218 of file DTTSTheta.cc.
References _ntrig, gather_cfg::cout, DTConfig::NSTEPF, DTConfig::NSTEPL, and DTCache< T, Coll >::size().
Referenced by DTTracoChip::storeUncorr().
|
overridevirtual |
Print a L1Trigger-data object with also local and global position/direction.
Reimplemented from DTGeomSupplier.
Definition at line 270 of file DTTSTheta.cc.
References ClusterTask_cfi::trig.
|
inlineoverridevirtual |
Load BTIs triggers and run TSTheta algoritm.
Reimplemented from DTCache< T, Coll >.
Definition at line 81 of file DTTSTheta.h.
References loadDTTSTheta(), and runDTTSTheta().
Referenced by DTTrig::triggerReco().
|
private |
run DTTSTheta algorithm (build the mask)
Definition at line 136 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, mps_fire::i, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, DTGeomSupplier::sector(), DTGeomSupplier::station(), and DTGeomSupplier::wheel().
Referenced by reconstruct().
const DTChambThSegm * DTTSTheta::segment | ( | int | step, |
unsigned | n | ||
) |
Return the requested DTTSTheta segment (only the first)
Definition at line 209 of file DTTSTheta.cc.
References DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), dqmiodumpmetadata::n, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by DTSCTrigUnit::thetaSegment().
void DTTSTheta::setConfig | ( | const DTConfigManager * | conf | ) |
Set configuration.
Definition at line 67 of file DTTSTheta.cc.
References _config, DTGeomSupplier::ChamberId(), and DTConfigManager::getDTConfigTSTheta().
Referenced by DTSCTrigUnit::setConfig().
|
private |
Definition at line 106 of file DTTSTheta.h.
Referenced by loadDTTSTheta().
|
private |
Definition at line 108 of file DTTSTheta.h.
Referenced by config(), and setConfig().
|
private |
Definition at line 112 of file DTTSTheta.h.
Referenced by add_btiT(), btiQual(), DTTSTheta(), and localClear().
|
private |
Definition at line 114 of file DTTSTheta.h.
Referenced by add_btiT(), DTTSTheta(), localClear(), and nHTrig().
|
private |
Definition at line 113 of file DTTSTheta.h.
Referenced by add_btiT(), DTTSTheta(), localClear(), nTrig(), and runDTTSTheta().
|
private |
Definition at line 111 of file DTTSTheta.h.
Referenced by add_btiT(), btiMask(), DTTSTheta(), and localClear().