#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 |
NEWGEO Local direction in chamber of a trigger-data object. More... | |
LocalPoint | localPosition (const DTTrigData *) const |
NEWGEO Local position in chamber of a trigger-data object. 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 () | |
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 59 of file DTBtiCard.h.
DTBtiCard::DTBtiCard | ( | DTTrigGeom * | geom | ) |
Constructor.
Definition at line 62 of file DTBtiCard.cc.
DTBtiCard::~DTBtiCard | ( | ) |
|
private |
Returns the required DTBtiChip. Create it if it doesn't exist.
Definition at line 406 of file DTBtiCard.cc.
References _btimap, config_bti(), gather_cfg::cout, DTConfigBti::debug(), debug(), DTCache< T, Coll >::end(), DTGeomSupplier::geom(), gen::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 122 of file DTBtiCard.h.
References DTBtiId::bti(), and DTBtiId::superlayer().
std::vector< DTBtiChip * > DTBtiCard::btiList | ( | int | sl | ) |
Returns the active BTI list in a given superlayer.
Definition at line 471 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 95 of file DTBtiCard.cc.
References DTCache< T, Coll >::clearCache(), and localClear().
Referenced by DTTrig::triggerReco().
DTConfigBti * DTBtiCard::config_bti | ( | DTBtiId & | btiid | ) | const |
Return bti chip configuration.
Definition at line 676 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 76 of file DTBtiCard.h.
References gen::n.
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 456 of file DTBtiCard.cc.
References _btimap, gather_cfg::cout, and DTCache< T, Coll >::end().
Returns the required BTI. Return 0 if it doesn't exist.
Definition at line 82 of file DTBtiCard.h.
References DTBtiId::bti(), DTCache< T, Coll >::reconstruct(), and DTBtiId::superlayer().
|
private |
store digi's in DTBtiChip's
Definition at line 258 of file DTBtiCard.cc.
References _digis, _pedestals, activeGetBTI(), DTBtiChip::add_digi(), gather_cfg::cout, debug(), DTGeomSupplier::geom(), DTConfigPedestals::getOffset(), hcalTTPDigis_cfi::id, localClear(), DTTrigGeom::mapTubeInFEch(), DigiAPD_cff::pdigi, DTGeomSupplier::sector(), DTGeomSupplier::station(), DTSuperLayerId::superlayer(), and DTGeomSupplier::wheel().
|
private |
clear the BTI maps
Definition at line 117 of file DTBtiCard.cc.
References _btimap, _digis, DTCache< T, Coll >::begin(), mps_fire::i, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by clearCache(), loadBTI(), and ~DTBtiCard().
|
virtual |
NEWGEO Local direction in chamber of a trigger-data object.
Implements DTGeomSupplier.
Definition at line 600 of file DTBtiCard.cc.
References DTBtiTrigData::btiSL(), DTTrigGeom::cellH(), DTTrigGeom::cellPitch(), config_bti(), funct::cos(), gather_cfg::cout, debug(), DTGeomSupplier::geom(), DTBtiTrigData::K(), DTTrigGeom::localPosition(), DTBtiTrigData::parentId(), DTBtiTrigData::print(), funct::sin(), DTConfigBti::ST(), x, y, and z.
|
virtual |
NEWGEO Local position in chamber of a trigger-data object.
Implements DTGeomSupplier.
Definition at line 553 of file DTBtiCard.cc.
References DTBtiTrigData::btiSL(), DTTrigGeom::cellPitch(), config_bti(), gather_cfg::cout, debug(), objects.autophobj::float, DTGeomSupplier::geom(), DTTrigGeom::localPosition(), DTBtiTrigData::parentId(), DTBtiTrigData::print(), DTConfigBti::ST(), x, DTBtiTrigData::X(), y, and z.
|
inlinevirtual |
Definition at line 102 of file DTBtiCard.h.
Referenced by DTTrig::triggerReco().
|
private |
run DTBtiChip algorithm
Definition at line 361 of file DTBtiCard.cc.
References _btimap, DTCache< T, Coll >::_cache, DTCache< T, Coll >::begin(), gather_cfg::cout, debug(), DTConfig::NSTEPF, DTConfig::NSTEPL, DTBtiChip::nTrig(), DTBtiChip::number(), DTBtiChip::run(), DTGeomSupplier::sector(), DTCache< T, Coll >::size(), DTGeomSupplier::station(), DTBtiChip::triggerData(), and DTGeomSupplier::wheel().
void DTBtiCard::setConfig | ( | const DTConfigManager * | conf | ) |
Set configuration.
Definition at line 103 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 492 of file DTBtiCard.cc.
References activeGetBTI(), DTBtiChip::addTrig(), DTBtiId::bti(), gather_cfg::cout, DTBtiTrigData::parentId(), DTGeomSupplier::sector(), DTBtiId::sector(), DTGeomSupplier::station(), DTBtiId::station(), DTBtiTrigData::step(), DTBtiId::superlayer(), DTGeomSupplier::wheel(), and DTBtiId::wheel().
|
inline |
Return acceptance flag.
Definition at line 108 of file DTBtiCard.h.
Referenced by DTBtiChip::DTBtiChip().
|
private |
Definition at line 131 of file DTBtiCard.h.
Referenced by activeGetBTI(), btiList(), getBTI(), localClear(), and runBTI().
|
private |
Definition at line 132 of file DTBtiCard.h.
Referenced by config_bti(), and setConfig().
|
private |
Definition at line 136 of file DTBtiCard.h.
Referenced by cmsPerfSuite.PerfSuite::optionParse(), cmsPerfSuite.PerfSuite::runCmsReport(), and setConfig().
|
private |
Definition at line 134 of file DTBtiCard.h.
Referenced by loadBTI(), and localClear().
|
private |
Definition at line 139 of file DTBtiCard.h.
Referenced by setConfig().
|
private |
Definition at line 137 of file DTBtiCard.h.
Referenced by loadBTI(), and setConfig().