#include <DTBtiCard.h>
Public Member Functions | |
std::vector< DTBtiChip * > | btiList (int) |
Returns the active BTI list in a given superlayer. More... | |
void | clearCache () |
Clear all BTI stuff (map & cache) More... | |
DTConfigBti * | config_bti (DTBtiId &btiid) const |
Return bti chip configuration. More... | |
bool | debug () const |
Return TU debug flag. More... | |
DTBtiCard (DTTrigGeom *) | |
Constructor. More... | |
DTBtiChip * | getBTI (int sl, int n) const |
Returns the required BTI. Return 0 if it doesn't exist. More... | |
DTBtiChip * | getBTI (const DTBtiId &btiid) const |
Returns the required BTI. Return 0 if it doesn't exist. More... | |
LocalVector | localDirection (const DTTrigData *) const override |
NEWGEO Local direction in chamber of a trigger-data object. More... | |
LocalPoint | localPosition (const DTTrigData *) const override |
NEWGEO Local position in chamber of a trigger-data object. More... | |
virtual void | reconstruct () |
Virtual reconstruct member. More... | |
virtual void | reconstruct (const DTDigiCollection dtDigis) |
void | setConfig (const DTConfigManager *conf) |
Set configuration. More... | |
DTBtiTrig * | storeTrigger (DTBtiTrigData) |
bool | useAcceptParamFlag () |
Return acceptance flag. More... | |
~DTBtiCard () 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... | |
virtual void | reconstruct () |
Virtual reconstruct member. 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... | |
virtual void | print (const DTTrigData *trig) const |
Print a trigger-data object with also local and global position/direction. 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 | |
DTBtiChip * | activeGetBTI (int sl, int n) |
Returns the required DTBtiChip. Create it if it doesn't exist. More... | |
DTBtiChip * | activeGetBTI (const DTBtiId &btiid) |
Returns the required DTBtiChip. Create it if it doesn't exist. More... | |
void | loadBTI (const DTDigiCollection dtDigis) |
store digi's in DTBtiChip's More... | |
void | localClear () |
clear the BTI maps More... | |
void | runBTI () |
run DTBtiChip algorithm More... | |
Private Attributes | |
BTIContainer | _btimap [3] |
ConfBtiMap | _conf_bti_map |
bool | _debug |
std::vector< DTDigi * > | _digis |
bool | _flag_acc |
const DTConfigPedestals * | _pedestals |
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 |
Contains active DTBtiChips
Modifications: V/05 S.Vanini : modified to run with new geometry III/07 : SV configuration with DTConfigManager
Definition at line 62 of file DTBtiCard.h.
DTBtiCard::DTBtiCard | ( | DTTrigGeom * | geom | ) |
Constructor.
Definition at line 60 of file DTBtiCard.cc.
|
override |
|
private |
Returns the required DTBtiChip. Create it if it doesn't exist.
Definition at line 379 of file DTBtiCard.cc.
References _btimap, config_bti(), gather_cfg::cout, DTConfigBti::debug(), debug(), DTCache< T, Coll >::end(), DTGeomSupplier::geom(), create_idmaps::n, DTTrigGeom::nCell(), and DTTrigGeom::statId().
Referenced by loadBTI(), and storeTrigger().
Returns the required DTBtiChip. Create it if it doesn't exist.
Definition at line 124 of file DTBtiCard.h.
References activeGetBTI(), DTBtiId::bti(), and DTBtiId::superlayer().
Referenced by activeGetBTI().
std::vector< DTBtiChip * > DTBtiCard::btiList | ( | int | sl | ) |
Returns the active BTI list in a given superlayer.
Definition at line 441 of file DTBtiCard.cc.
References _btimap, DTCache< T, Coll >::begin(), gather_cfg::cout, AlCaHLTBitMon_ParallelJobs::p, and DTCache< T, Coll >::size().
void DTBtiCard::clearCache | ( | ) |
Clear all BTI stuff (map & cache)
Definition at line 85 of file DTBtiCard.cc.
References DTCache< T, Coll >::clearCache(), and localClear().
Referenced by reconstruct(), and DTTrig::triggerReco().
DTConfigBti * DTBtiCard::config_bti | ( | DTBtiId & | btiid | ) | const |
Return bti chip configuration.
Definition at line 637 of file DTBtiCard.cc.
References _conf_bti_map, DTBtiId::bti(), gather_cfg::cout, DTBtiId::sector(), DTBtiId::station(), DTBtiId::superlayer(), and DTBtiId::wheel().
Referenced by activeGetBTI(), DTTracoCard::loadTRACO(), localDirection(), and localPosition().
|
inline |
Return TU debug flag.
Definition at line 77 of file DTBtiCard.h.
References _debug.
Referenced by activeGetBTI(), loadBTI(), localDirection(), localPosition(), and runBTI().
DTBtiChip * DTBtiCard::getBTI | ( | int | sl, |
int | n | ||
) | const |
Returns the required BTI. Return 0 if it doesn't exist.
Definition at line 427 of file DTBtiCard.cc.
References _btimap, gather_cfg::cout, DTCache< T, Coll >::end(), and create_idmaps::n.
Returns the required BTI. Return 0 if it doesn't exist.
Definition at line 83 of file DTBtiCard.h.
References DTBtiId::bti(), getBTI(), and DTBtiId::superlayer().
Referenced by getBTI().
|
private |
store digi's in DTBtiChip's
Definition at line 237 of file DTBtiCard.cc.
References _digis, _pedestals, activeGetBTI(), DTBtiChip::add_digi(), gather_cfg::cout, debug(), DTGeomSupplier::geom(), DTConfigPedestals::getOffset(), EcalPhiSymFlatTableProducers_cfi::id, localClear(), DTTrigGeom::mapTubeInFEch(), redigi_cff::pdigi, isotrackApplyRegressor::range, DTGeomSupplier::sector(), DTGeomSupplier::station(), DTSuperLayerId::superlayer(), and DTGeomSupplier::wheel().
Referenced by reconstruct().
|
private |
clear the BTI maps
Definition at line 100 of file DTBtiCard.cc.
References _btimap, _digis, DTCache< T, Coll >::begin(), mps_fire::i, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by clearCache(), loadBTI(), and ~DTBtiCard().
|
overridevirtual |
NEWGEO Local direction in chamber of a trigger-data object.
Implements DTGeomSupplier.
Definition at line 562 of file DTBtiCard.cc.
References DTTrigGeom::cellH(), DTTrigGeom::cellPitch(), config_bti(), funct::cos(), gather_cfg::cout, debug(), DTGeomSupplier::geom(), DTTrigGeom::localPosition(), funct::sin(), DTConfigBti::ST(), ClusterTask_cfi::trig, x, y, and z.
|
overridevirtual |
NEWGEO Local position in chamber of a trigger-data object.
Implements DTGeomSupplier.
Definition at line 519 of file DTBtiCard.cc.
References DTTrigGeom::cellPitch(), config_bti(), gather_cfg::cout, debug(), ALCARECOEcalPhiSym_cff::float, DTGeomSupplier::geom(), DTTrigGeom::localPosition(), DTConfigBti::ST(), ClusterTask_cfi::trig, x, y, and z.
|
inlinevirtual |
Definition at line 101 of file DTBtiCard.h.
References clearCache(), loadBTI(), and runBTI().
Referenced by DTTrig::triggerReco().
|
private |
run DTBtiChip algorithm
Definition at line 339 of file DTBtiCard.cc.
References _btimap, DTCache< T, Coll >::_cache, DTCache< T, Coll >::begin(), gather_cfg::cout, debug(), relativeConstraints::empty, DTConfig::NSTEPF, DTConfig::NSTEPL, DTBtiChip::nTrig(), DTBtiChip::number(), DTBtiChip::run(), DTGeomSupplier::sector(), DTGeomSupplier::station(), DTBtiChip::triggerData(), and DTGeomSupplier::wheel().
Referenced by reconstruct().
void DTBtiCard::setConfig | ( | const DTConfigManager * | conf | ) |
Set configuration.
Definition at line 90 of file DTBtiCard.cc.
References _conf_bti_map, _debug, _flag_acc, _pedestals, DTGeomSupplier::ChamberId(), DTConfigManager::getDTConfigBtiMap(), DTConfigManager::getDTConfigPedestals(), DTConfigManager::getDTTPGDebug(), and DTConfigManager::useAcceptParam().
Referenced by DTSCTrigUnit::setConfig().
DTBtiTrig * DTBtiCard::storeTrigger | ( | DTBtiTrigData | td | ) |
Returns a DTBtiTrig corresponding to a DTBtiTrigData. Creates the corresponding BTI chip if needed and stores the trigger
Definition at line 460 of file DTBtiCard.cc.
References activeGetBTI(), DTBtiId::bti(), gather_cfg::cout, eostools::move(), DTBtiTrigData::parentId(), DTBtiId::sector(), DTGeomSupplier::sector(), DTBtiId::station(), DTGeomSupplier::station(), DTBtiTrigData::step(), DTBtiId::superlayer(), ClusterTask_cfi::trig, DTBtiId::wheel(), and DTGeomSupplier::wheel().
|
inline |
Return acceptance flag.
Definition at line 111 of file DTBtiCard.h.
References _flag_acc.
Referenced by DTBtiChip::DTBtiChip().
|
private |
Definition at line 130 of file DTBtiCard.h.
Referenced by activeGetBTI(), btiList(), getBTI(), localClear(), and runBTI().
|
private |
Definition at line 131 of file DTBtiCard.h.
Referenced by config_bti(), and setConfig().
|
private |
Definition at line 135 of file DTBtiCard.h.
Referenced by debug(), and setConfig().
|
private |
Definition at line 133 of file DTBtiCard.h.
Referenced by loadBTI(), and localClear().
|
private |
Definition at line 138 of file DTBtiCard.h.
Referenced by setConfig(), and useAcceptParamFlag().
|
private |
Definition at line 136 of file DTBtiCard.h.
Referenced by loadBTI(), and setConfig().