|
ATLAS Offline Software
|
#include <L1CaloCells2TriggerTowers.h>
|
| L1CaloCells2TriggerTowers (const std::string &name) |
| Create a proper constructor for Athena. More...
|
|
virtual | ~L1CaloCells2TriggerTowers () |
| destructor More...
|
|
| L1CaloCells2TriggerTowers ()=delete |
| delete the big 4 More...
|
|
| L1CaloCells2TriggerTowers (const L1CaloCells2TriggerTowers &rhs)=delete |
|
| L1CaloCells2TriggerTowers (L1CaloCells2TriggerTowers &&rhs)=delete |
|
L1CaloCells2TriggerTowers & | operator= (const L1CaloCells2TriggerTowers &rhs)=delete |
|
virtual StatusCode | initialize () override |
| Dummy implementation of the initialisation function. More...
|
|
virtual StatusCode | finalize () override |
|
virtual bool | initCaloCellsTriggerTowers (const CaloCellContainer &cellContainer) override |
| Declare the interface that the class provides. More...
|
|
virtual bool | initLArDigitsTriggerTowers (const LArDigitContainer &larDigitContainer) override |
|
virtual bool | initTileDigitsTriggerTowers (const TileDigitsContainer &tileDigitsContainer) override |
|
virtual std::vector< const CaloCell * > | caloCells (const Identifier &ttId) const override |
|
virtual std::vector< std::vector< const CaloCell * > > | caloCellsByLayer (const Identifier &ttId) const override |
|
virtual std::vector< int > | layerNames (const Identifier &ttID) const override |
|
virtual int | layerNames (const CaloCell *cell) const override |
|
virtual float | energy (const std::vector< const CaloCell * > &cells) const override |
|
virtual float | et (const std::vector< const CaloCell * > &cells) const override |
|
virtual float | energy (const Identifier &ttId) const override |
|
virtual float | et (const Identifier &ttId) const override |
|
virtual std::vector< double > | samples (const Identifier &ttId) const override |
|
virtual std::vector< const LArDigit * > | larDigits (const Identifier &ttId) const override |
|
virtual std::vector< const TileDigits * > | tileDigits (const Identifier &ttId) const override |
|
virtual void | dumpCaloCells () const override |
|
virtual void | dumpCaloCells (const Identifier &ttId) const override |
|
virtual void | dumpDigits (const Identifier &ttId) const override |
|
virtual void | dumpLArDigits (const Identifier &ttId) const override |
|
virtual void | dumpLArDigits () const override |
|
virtual void | dumpTileDigits (const Identifier &ttId) const override |
|
virtual void | dumpTileDigits () const override |
|
virtual void | print () const =0 |
| Print the state of the tool. More...
|
|
virtual void | print () const |
| Print the state of the tool. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
const CaloLVL1_ID * | m_lvl1Helper |
|
const TileID * | m_tileID |
|
const CaloCell_ID * | m_caloCellHelper |
|
SG::ReadCondHandleKey< LArOnOffIdMapping > | m_cablingKey {this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"} |
|
ToolHandle< LVL1::IL1CaloMatchCell2Tower > | m_cellMatch { this, "L1CaloMatchCell2Tower", "LVL1::L1CaloMatchCell2Tower", "L1CaloMatchCell2Tower" } |
|
ToolHandle< CaloTriggerTowerService > | m_ttSvc { this, "CaloTriggerTowerService", "CaloTriggerTowerService"} |
|
const TileCablingService * | m_tileCablingService |
|
bool | m_bInitialized |
|
bool | m_bLArDigitsInitialized |
|
bool | m_bTileDigitsInitialized |
|
std::map< unsigned int, std::vector< const CaloCell * > > | m_mTTCaloCells |
|
std::map< unsigned int, std::vector< const LArDigit * > > | m_mTTLArDigits |
|
std::map< unsigned int, std::vector< const TileDigits * > > | m_mTTTileDigits |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Definition at line 52 of file L1CaloCells2TriggerTowers.h.
◆ StoreGateSvc_t
◆ L1CaloCells2TriggerTowers() [1/4]
LVL1::L1CaloCells2TriggerTowers::L1CaloCells2TriggerTowers |
( |
const std::string & |
name | ) |
|
◆ ~L1CaloCells2TriggerTowers()
virtual LVL1::L1CaloCells2TriggerTowers::~L1CaloCells2TriggerTowers |
( |
| ) |
|
|
inlinevirtual |
◆ L1CaloCells2TriggerTowers() [2/4]
LVL1::L1CaloCells2TriggerTowers::L1CaloCells2TriggerTowers |
( |
| ) |
|
|
delete |
◆ L1CaloCells2TriggerTowers() [3/4]
◆ L1CaloCells2TriggerTowers() [4/4]
◆ calcEnergyOrEt()
float LVL1::L1CaloCells2TriggerTowers::calcEnergyOrEt |
( |
const std::vector< const CaloCell * > & |
cells, |
|
|
const unsigned int |
mode |
|
) |
| const |
|
overrideprotectedvirtual |
Implements LVL1::IL1CaloCells2TriggerTowers.
Definition at line 107 of file L1CaloCells2TriggerTowers.cxx.
109 if(
cells.size()!=0) {
110 typedef std::vector<const CaloCell*>::const_iterator Itr;
114 float cellEnergy(0.0);
121 cellEnergy+=(*i)->energy()*0.5;
124 cellEnergy+=(*i)->energy();
129 cellEnergy+=(*i)->energy();
132 if(
mode == 1){
et += cellEnergy/cosh((*i)->eta());}
◆ caloCells()
◆ caloCellsByLayer()
Implements LVL1::IL1CaloCells2TriggerTowers.
Definition at line 34 of file L1CaloCells2TriggerTowers.cxx.
35 const std::vector<const CaloCell*> vCells(this->
caloCells(ttId));
36 std::vector<std::vector<const CaloCell*> > ccByLayer;
37 std::vector<const CaloCell*>
cc;
38 int caloSampleInUse(-10);
40 if(vCells.size()!=0) {
41 std::vector<const CaloCell*>::const_iterator itCells = vCells.begin();
42 for(;itCells!=vCells.end();++itCells) {
47 if( caloSampleInUse != currentCaloSample ){
48 ccByLayer.push_back(
cc);
50 caloSampleInUse = currentCaloSample;
52 cc.push_back(*itCells);
54 ccByLayer.push_back(
cc);
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ dump() [1/3]
void LVL1::L1CaloCells2TriggerTowers::dump |
( |
const std::vector< const CaloCell * > & |
vCells | ) |
const |
|
overrideprotectedvirtual |
Implements LVL1::IL1CaloCells2TriggerTowers.
Definition at line 493 of file L1CaloCells2TriggerTowers.cxx.
497 std::vector<const CaloCell*>::const_iterator itCells = vCells.begin();
498 for(;itCells!=vCells.end();++itCells) {
507 ATH_MSG_INFO(
" * tile - section: "<<
section <<
", side: "<<
side<<
", module: "<<
module<<
", tower: "<<tower<<
", sample: "<<
sample<<
" - eta: "<< (*itCells)->eta()<<
", phi: "<< (*itCells)->phi()<<
", E:" << (*itCells)->energy() );
515 ATH_MSG_INFO(
" * fcal - pos_neg_z: "<<pos_neg<<
", module: "<<
module<<
", ieta: "<<eta<<
", iphi: "<<phi<<
" - eta: "<< (*itCells)->eta()<<
", phi: "<< (*itCells)->phi()<<
", E:" << (*itCells)->energy() );
523 ATH_MSG_INFO(
" * larg - pos_neg_z: "<<pos_neg<<
", sampling: "<<sampling<<
", region: "<<region<<
", ieta: "<<eta<<
", iphi: "<<phi<<
" - eta: "<< (*itCells)->eta()<<
", phi: "<< (*itCells)->phi()<<
", E:" << (*itCells)->energy() );
◆ dump() [2/3]
void LVL1::L1CaloCells2TriggerTowers::dump |
( |
const std::vector< const LArDigit * > & |
vCells | ) |
const |
|
overrideprotectedvirtual |
Implements LVL1::IL1CaloCells2TriggerTowers.
Definition at line 528 of file L1CaloCells2TriggerTowers.cxx.
533 std::vector<const LArDigit*>::const_iterator itLArDigits = vLArDigits.begin();
534 for(;itLArDigits!=vLArDigits.end();++itLArDigits) {
536 const LArDigit* larDigit= *itLArDigits;
541 std::vector<short> vADC= larDigit->
samples();
542 std::vector<short>::const_iterator it_sample = vADC.begin();
543 for(;it_sample!=vADC.end();++it_sample) std::cout<< *it_sample<<
" ";
544 std::cout<<std::endl;
◆ dump() [3/3]
void LVL1::L1CaloCells2TriggerTowers::dump |
( |
const std::vector< const TileDigits * > & |
vCells | ) |
const |
|
overrideprotectedvirtual |
Implements LVL1::IL1CaloCells2TriggerTowers.
Definition at line 588 of file L1CaloCells2TriggerTowers.cxx.
591 std::vector<const TileDigits*>::const_iterator itTileDigits = vTileDigits.begin();
592 for(;itTileDigits!=vTileDigits.end();++itTileDigits) {
603 std::vector<double> vADC = tileDigit->
get_digits();
604 std::vector<double>::const_iterator it_sample = vADC.begin();
605 for(;it_sample!=vADC.end();++it_sample){
◆ dumpCaloCells() [1/2]
void LVL1::L1CaloCells2TriggerTowers::dumpCaloCells |
( |
| ) |
const |
|
overridevirtual |
◆ dumpCaloCells() [2/2]
void LVL1::L1CaloCells2TriggerTowers::dumpCaloCells |
( |
const Identifier & |
ttId | ) |
const |
|
overridevirtual |
◆ dumpDigits()
void LVL1::L1CaloCells2TriggerTowers::dumpDigits |
( |
const Identifier & |
ttId | ) |
const |
|
overridevirtual |
◆ dumpLArDigits() [1/2]
void LVL1::L1CaloCells2TriggerTowers::dumpLArDigits |
( |
| ) |
const |
|
overridevirtual |
◆ dumpLArDigits() [2/2]
void LVL1::L1CaloCells2TriggerTowers::dumpLArDigits |
( |
const Identifier & |
ttId | ) |
const |
|
overridevirtual |
◆ dumpTileDigits() [1/2]
void LVL1::L1CaloCells2TriggerTowers::dumpTileDigits |
( |
| ) |
const |
|
overridevirtual |
◆ dumpTileDigits() [2/2]
void LVL1::L1CaloCells2TriggerTowers::dumpTileDigits |
( |
const Identifier & |
ttId | ) |
const |
|
overridevirtual |
◆ energy() [1/2]
float LVL1::L1CaloCells2TriggerTowers::energy |
( |
const Identifier & |
ttId | ) |
const |
|
overridevirtual |
◆ energy() [2/2]
float LVL1::L1CaloCells2TriggerTowers::energy |
( |
const std::vector< const CaloCell * > & |
cells | ) |
const |
|
overridevirtual |
◆ et() [1/2]
◆ et() [2/2]
float LVL1::L1CaloCells2TriggerTowers::et |
( |
const std::vector< const CaloCell * > & |
cells | ) |
const |
|
overridevirtual |
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ finalize()
StatusCode LVL1::L1CaloCells2TriggerTowers::finalize |
( |
| ) |
|
|
overridevirtual |
◆ getKey()
Get the (hashed) key of an object that is in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the SG::sgkey_t
key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getName
- Parameters
-
ptr | The bare pointer to the object that the event store should know about |
- Returns
- The hashed key of the object in the store. If not found, an invalid (zero) key.
Definition at line 119 of file AsgTool.cxx.
121 #ifdef XAOD_STANDALONE
127 return (
proxy ==
nullptr ? 0 :
proxy->sgkey() );
128 #endif // XAOD_STANDALONE
◆ getName()
const std::string & asg::AsgTool::getName |
( |
const void * |
ptr | ) |
const |
|
inherited |
Get the name of an object that is / should be in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the std::string
name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getKey
- Parameters
-
ptr | The bare pointer to the object that the event store should know about |
- Returns
- The string name of the object in the store. If not found, an empty string.
Definition at line 106 of file AsgTool.cxx.
108 #ifdef XAOD_STANDALONE
114 static const std::string
dummy =
"";
116 #endif // XAOD_STANDALONE
◆ getProperty()
template<class T >
const T* asg::AsgTool::getProperty |
( |
const std::string & |
name | ) |
const |
|
inherited |
Get one of the tool's properties.
◆ initCaloCellsTriggerTowers()
◆ initialize()
StatusCode LVL1::L1CaloCells2TriggerTowers::initialize |
( |
| ) |
|
|
overridevirtual |
Dummy implementation of the initialisation function.
It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...
Reimplemented from asg::AsgTool.
Definition at line 143 of file L1CaloCells2TriggerTowers.cxx.
144 ATH_MSG_INFO(
"Initialize LVL1::L1CaloCells2TriggerTowers");
157 return StatusCode::FAILURE;
162 sc =
detStore()->retrieve(lvl1_id,
"CaloLVL1_ID");
◆ initLArDigitsTriggerTowers()
bool LVL1::L1CaloCells2TriggerTowers::initLArDigitsTriggerTowers |
( |
const LArDigitContainer & |
larDigitContainer | ) |
|
|
overridevirtual |
◆ initTileDigitsTriggerTowers()
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ larDigits()
◆ layerNames() [1/2]
int LVL1::L1CaloCells2TriggerTowers::layerNames |
( |
const CaloCell * |
cell | ) |
const |
|
overridevirtual |
◆ layerNames() [2/2]
std::vector< int > LVL1::L1CaloCells2TriggerTowers::layerNames |
( |
const Identifier & |
ttID | ) |
const |
|
overridevirtual |
Implements LVL1::IL1CaloCells2TriggerTowers.
Definition at line 61 of file L1CaloCells2TriggerTowers.cxx.
62 const std::vector<const CaloCell*> vCells(this->
caloCells(ttId));
64 int caloSampleInUse(-10);
65 if(vCells.size()!=0) {
66 std::vector<const CaloCell*>::const_iterator itCells = vCells.begin();
67 for(;itCells!=vCells.end();++itCells) {
71 if( caloSampleInUse != currentCaloSample ){
72 layers.push_back(currentCaloSample);
73 caloSampleInUse = currentCaloSample;
◆ msg() [1/2]
◆ msg() [2/2]
◆ msg_level_name()
const std::string & asg::AsgTool::msg_level_name |
( |
| ) |
const |
|
inherited |
A deprecated function for getting the message level's name.
Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:
MSG::name( msg().level() )
This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.
- Returns
- The string name of the current minimum message level that's printed
Definition at line 101 of file AsgTool.cxx.
◆ msgLvl()
◆ operator=()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ print() [1/2]
void asg::AsgTool::print |
( |
| ) |
const |
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
◆ print() [2/2]
virtual void asg::IAsgTool::print |
( |
| ) |
const |
|
pure virtualinherited |
Print the state of the tool.
Implemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, asg::AsgTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
◆ renounce()
◆ renounceArray()
◆ reset()
void LVL1::L1CaloCells2TriggerTowers::reset |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ resetCaloCells()
void LVL1::L1CaloCells2TriggerTowers::resetCaloCells |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ resetLArDigits()
void LVL1::L1CaloCells2TriggerTowers::resetLArDigits |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ resetTileDigits()
void LVL1::L1CaloCells2TriggerTowers::resetTileDigits |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ samples()
std::vector< double > LVL1::L1CaloCells2TriggerTowers::samples |
( |
const Identifier & |
ttId | ) |
const |
|
overridevirtual |
Implements LVL1::IL1CaloCells2TriggerTowers.
Definition at line 395 of file L1CaloCells2TriggerTowers.cxx.
399 std::vector<const TileDigits*> vTileDigits(this->
tileDigits(ttId));
401 std::vector<double> vADCSum;
404 std::vector<const TileDigits*>::const_iterator it_digit = vTileDigits.begin();
405 for(;it_digit!=vTileDigits.end();++it_digit) {
407 std::vector<double> vADC((*it_digit)->get_digits());
409 int adcSize(vADC.size());
410 if(vADCSum.size()==0) vADCSum.resize(adcSize);
412 for(
int i=0;
i<adcSize;++
i) {
420 const double inv_nSum = 1. /
static_cast<double> (nSum);
421 for(;it_adc!=vADCSum.end();++it_adc){
422 (*it_adc) *= inv_nSum;
431 std::vector<const LArDigit*> vLArDigits(this->
larDigits(ttId));
433 std::vector<double> vADCSum;
436 std::vector<const LArDigit*>::const_iterator it_digit = vLArDigits.begin();
437 for(;it_digit!=vLArDigits.end();++it_digit) {
439 std::vector<short> vADC((*it_digit)->samples());
441 int adcSize(vADC.size());
442 if(vADCSum.size()==0) vADCSum.resize(adcSize);
444 for(
int i=0;
i<adcSize;++
i) {
452 const double inv_nSum = 1. /
static_cast<double> (nSum);
453 for(;it_adc!=vADCSum.end();++it_adc){
454 (*it_adc) *= inv_nSum;
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ tileDigits()
◆ updateVHKA()
◆ m_bInitialized
bool LVL1::L1CaloCells2TriggerTowers::m_bInitialized |
|
private |
◆ m_bLArDigitsInitialized
bool LVL1::L1CaloCells2TriggerTowers::m_bLArDigitsInitialized |
|
private |
◆ m_bTileDigitsInitialized
bool LVL1::L1CaloCells2TriggerTowers::m_bTileDigitsInitialized |
|
private |
◆ m_cablingKey
◆ m_caloCellHelper
◆ m_cellMatch
◆ m_detStore
◆ m_evtStore
◆ m_lvl1Helper
◆ m_mTTCaloCells
std::map<unsigned int, std::vector<const CaloCell*> > LVL1::L1CaloCells2TriggerTowers::m_mTTCaloCells |
|
private |
◆ m_mTTLArDigits
std::map<unsigned int, std::vector<const LArDigit*> > LVL1::L1CaloCells2TriggerTowers::m_mTTLArDigits |
|
private |
◆ m_mTTTileDigits
std::map<unsigned int, std::vector<const TileDigits*> > LVL1::L1CaloCells2TriggerTowers::m_mTTTileDigits |
|
private |
◆ m_tileCablingService
◆ m_tileID
const TileID* LVL1::L1CaloCells2TriggerTowers::m_tileID |
|
private |
◆ m_ttSvc
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
std::map< unsigned int, std::vector< const CaloCell * > > m_mTTCaloCells
Extra patterns decribing particle interation process.
Const iterator class for DataVector/DataList.
int region(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
int tower(const Identifier id) const
Tile field values (NOT_VALID == invalid request)
const CaloLVL1_ID * m_lvl1Helper
Identifier pmt2tt_id(const Identifier &id) const
static const TileCablingService * getInstance()
get pointer to service instance
virtual std::vector< const TileDigits * > tileDigits(const Identifier &ttId) const override
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
int pos_neg(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
virtual void dumpTileDigits() const override
virtual void resetCaloCells() override
const std::vector< short > & samples() const
virtual void resetLArDigits() override
int sample(const Identifier &id) const
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
std::vector< SG::VarHandleKeyArray * > m_vhka
value_type get_compact() const
Get the compact id.
int region(const Identifier id) const
return region according to :
std::map< unsigned int, std::vector< const LArDigit * > > m_mTTLArDigits
bool m_bLArDigitsInitialized
int calo_sample(const Identifier id) const
returns an int taken from Sampling enum and describing the subCalo to which the Id belongs.
bool is_tile(const Identifier id) const
test if the id belongs to the Tiles
int module(const Identifier id) const
Tile field values (NOT_VALID == invalid request)
const CaloCell_ID * m_caloCellHelper
value_type get_compact() const
Get the compact id.
id_iterator tower_end() const
end iterator over towers
int layer(const Identifier id) const
return layer according to :
ToolHandle< CaloTriggerTowerService > m_ttSvc
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
bool is_hec(const Identifier id) const
Test wether given tower or layer is part of the HEC.
int phi(const Identifier id) const
return phi according to :
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
std::vector< double > get_digits(void) const
This class initializes the Calo (LAr and Tile) offline identifiers.
int sample(const Identifier id) const
Tile field values (NOT_VALID == invalid request)
Liquid Argon digit base class.
virtual float energy(const std::vector< const CaloCell * > &cells) const override
bool is_fcal(const Identifier id) const
test if the id belongs to the FCAL - true also for MiniFCAL
int sampling(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual void resetTileDigits() override
virtual void dump(const std::vector< const CaloCell * > &vCells) const override
virtual void dumpLArDigits() const override
int eta(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
Identifier cell_ID(void) const
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
string tileDigitsContainer
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
std::map< unsigned int, std::vector< const TileDigits * > > m_mTTTileDigits
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
virtual std::vector< const CaloCell * > caloCells(const Identifier &ttId) const override
bool is_em_barrel(const Identifier id) const
test if the id belongs to the EM barrel
Helper class for offline TT identifiers.
ToolHandle< LVL1::IL1CaloMatchCell2Tower > m_cellMatch
const CaloCell_ID * getCaloCell_ID(void) const
Access to IdHelper.
int eta(const Identifier id) const
return eta according to :
StatusCode initialize(bool used=true)
int phi(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
Identifier identify(void) const
int pos_neg_z(const Identifier id) const
return pos_neg_z according to :
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
int side(const Identifier id) const
Tile field values (NOT_VALID == invalid request)
Data object for each calorimeter readout cell.
const TileCablingService * m_tileCablingService
Identifier pmt_id(const Identifier &any_id) const
virtual float et(const std::vector< const CaloCell * > &cells) const override
id_iterator tower_begin() const
begin iterator over towers
int sampling(const Identifier id) const
return sampling according to :
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
const HWIdentifier & channelID() const
int section(const Identifier &id) const
Identifier tower_id(int pos_neg_z, int sampling, int region, int eta, int phi) const
build a tower identifier
bool is_tile(const Identifier id) const
Test wether given tower or layer is part of the Tile Calorimeter.
virtual std::vector< const LArDigit * > larDigits(const Identifier &ttId) const override
Identifier cell2tt_id(const Identifier &id) const
virtual float calcEnergyOrEt(const std::vector< const CaloCell * > &cells, const unsigned int mode) const override
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
bool m_bTileDigitsInitialized
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
int section(const Identifier id) const
Tile field values (NOT_VALID == invalid request)