|  | ATLAS Offline Software
    | 
 
 
 
Algorithm to produce TriggerTowers filled with simulated pedestal runs.  
 More...
#include <L1CaloPedestalGenerator.h>
|  | 
|  | L1CaloPedestalGenerator (const std::string &name, ISvcLocator *pSvcLocator) | 
|  | 
| virtual | ~L1CaloPedestalGenerator () | 
|  | 
| virtual StatusCode | initialize () | 
|  | 
| virtual StatusCode | execute () | 
|  | 
| virtual StatusCode | finalize () | 
|  | 
| virtual StatusCode | sysInitialize () override | 
|  | Override sysInitialize.  More... 
 | 
|  | 
| virtual const DataObjIDColl & | extraOutputDeps () const override | 
|  | Return the list of extra output dependencies.  More... 
 | 
|  | 
| ServiceHandle< StoreGateSvc > & | evtStore () | 
|  | The standard StoreGateSvc(event store) Returns (kind of) a pointer to theStoreGateSvc.  More...
 | 
|  | 
| const ServiceHandle< StoreGateSvc > & | evtStore () const | 
|  | The standard StoreGateSvc(event store) Returns (kind of) a pointer to theStoreGateSvc.  More...
 | 
|  | 
| const ServiceHandle< StoreGateSvc > & | detStore () const | 
|  | The standard StoreGateSvc/DetectorStoreReturns (kind of) a pointer to theStoreGateSvc.  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, V, H > &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 | 
|  | 
|  | 
| LVL1::InternalTriggerTower * | findInternalTriggerTower (const Identifier &towerId, bool bCreate=true) | 
|  | 
| LVL1::InternalTriggerTower * | findInternalTriggerTower (double tt_phi, double tt_eta, unsigned int key, bool bCreate=true) | 
|  | 
| double | IDeta (const Identifier &id, const CaloLVL1_ID *l1id) | 
|  | 
| double | IDphi (const Identifier &id, const CaloLVL1_ID *l1id) | 
|  | 
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) | 
|  | specialization for handling Gaudi::Property<SG::VarHandleKey>  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) | 
|  | specialization for handling Gaudi::Property<SG::VarHandleKeyArray>  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) | 
|  | specialization for handling Gaudi::Property<SG::VarHandleBase>  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) | 
|  | specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>  More... 
 | 
|  | 
Algorithm to produce TriggerTowers filled with simulated pedestal runs. 
- Author
- Damien Prieur damie.nosp@m.n.pr.nosp@m.ieur@.nosp@m.cern.nosp@m..ch 
Definition at line 27 of file L1CaloPedestalGenerator.h.
◆ StoreGateSvc_t
◆ L1CaloPedestalGenerator()
      
        
          | L1CaloPedestalGenerator::L1CaloPedestalGenerator | ( | const std::string & | name, | 
        
          |  |  | ISvcLocator * | pSvcLocator | 
        
          |  | ) |  |  | 
      
 
 
◆ ~L1CaloPedestalGenerator()
  
  | 
        
          | L1CaloPedestalGenerator::~L1CaloPedestalGenerator | ( |  | ) |  |  | virtual | 
 
 
◆ 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()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
  
  | 
        
          | StatusCode L1CaloPedestalGenerator::execute | ( |  | ) |  |  | virtual | 
 
Definition at line 104 of file L1CaloPedestalGenerator.cxx.
  117         double eta = 
it->second->eta();
 
  118         double phi = 
it->second->phi();
 
  119         unsigned int key = 
it->second->key();
 
  121         std::vector<double> vEmAmps = 
it->second->EmAmps();
 
  122         std::vector<int> emDigits(vEmAmps.size());
 
  123                 for (
size_t i = 0; 
i < vEmAmps.size(); 
i++)
 
  124                   emDigits[
i] = 
static_cast<int> (vEmAmps[
i]);
 
  126         std::vector<double> vHadAmps = 
it->second->HadAmps();
 
  127         std::vector<int> hadDigits(vHadAmps.size());
 
  128                 for (
size_t i = 0; 
i < vHadAmps.size(); 
i++)
 
  129                   hadDigits[
i] = 
static_cast<int> (vHadAmps[
i]);
 
  134         std::vector<int> emEt; emEt.push_back(0);
 
  135         std::vector<int> hadEt; hadEt.push_back(0);
 
  136         std::vector<int> emBCID; emBCID.push_back(0);
 
  137         std::vector<int> hadBCID; hadBCID.push_back(0);
 
  138         std::vector<int> emExt; emExt.push_back(0);
 
  139         std::vector<int> hadExt; hadExt.push_back(0);
 
  146             emDigits, emEt, emExt, emBCID, 0, peak, emADCPeak,
 
  147             hadDigits, hadEt, hadExt, hadBCID, 0, peak, hadADCPeak);
 
  149         VectorOfTTs->push_back(tower);
 
  153     ATH_MSG_DEBUG( VectorOfTTs->size()<<
" TTs have been generated");
 
  159         return StatusCode::FAILURE;
 
  167     return StatusCode::SUCCESS;
 
  177     return StatusCode::SUCCESS;
 
  207     int region = l1id->
region(
id);
 
  208     int ieta = l1id->
eta(
id);
 
  211     double gran[4] = {0.1, 0.2, 0.1, 0.425};
 
  212     double offset[4] = {0., 2.5, 3.1, 3.2};
 
  215     if (region>=0 && region<=3) {
 
  216         eta = 
sign* ( ( (ieta+0.5) * gran[region] ) + 
offset[region] );
 
  227     double phiMax = l1id->
phi_max(regId);
 
  228     int iphi = l1id->
phi(
id);
 
  230     double phi = (iphi+0.5)*2*
M_PI/(phiMax+1);
 
 
 
 
◆ 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 
 
 
◆ extraOutputDeps()
  
  | 
        
          | const DataObjIDColl & AthAlgorithm::extraOutputDeps | ( |  | ) | const |  | overridevirtualinherited | 
 
Return the list of extra output dependencies. 
This list is extended to include symlinks implied by inheritance relations. 
Definition at line 50 of file AthAlgorithm.cxx.
   57   return Algorithm::extraOutputDeps();
 
 
 
 
◆ finalize()
  
  | 
        
          | StatusCode L1CaloPedestalGenerator::finalize | ( |  | ) |  |  | virtual | 
 
 
◆ findInternalTriggerTower() [1/2]
◆ findInternalTriggerTower() [2/2]
  
  | 
        
          | LVL1::InternalTriggerTower * L1CaloPedestalGenerator::findInternalTriggerTower | ( | double | tt_phi, |  
          |  |  | double | tt_eta, |  
          |  |  | unsigned int | key, |  
          |  |  | bool | bCreate = true |  
          |  | ) |  |  |  | private | 
 
 
◆ IDeta()
◆ IDphi()
◆ initialize()
  
  | 
        
          | StatusCode L1CaloPedestalGenerator::initialize | ( |  | ) |  |  | virtual | 
 
Definition at line 51 of file L1CaloPedestalGenerator.cxx.
   68     return StatusCode::FAILURE;
 
   88         std::vector<double> vnoise;
 
   91         std::vector< std::vector<double> > vAutoCorrMatrix(
m_nSamples, std::vector<double>(
m_nSamples,0));
 
   94         std::vector<double> vsamples;
 
 
 
 
◆ 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. 
 
 
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ 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. 
 
 
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
  
  | 
        
          | StatusCode AthAlgorithm::sysInitialize | ( |  | ) |  |  | overridevirtualinherited | 
 
 
◆ sysStart()
Handle START transition. 
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container. 
 
 
◆ updateVHKA()
◆ m_caloMgr
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
  
  | 
        
          | DataObjIDColl AthAlgorithm::m_extendedExtraObjects |  | privateinherited | 
 
 
◆ m_IntTTContainer
◆ m_lvl1Helper
◆ m_nSamples
  
  | 
        
          | unsigned int L1CaloPedestalGenerator::m_nSamples |  | private | 
 
 
◆ m_pedMean
  
  | 
        
          | double L1CaloPedestalGenerator::m_pedMean |  | private | 
 
 
◆ m_pedRMS
  
  | 
        
          | double L1CaloPedestalGenerator::m_pedRMS |  | private | 
 
 
◆ m_towerKey
◆ m_TTLocation
  
  | 
        
          | std::string L1CaloPedestalGenerator::m_TTLocation |  | private | 
 
 
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
 
JetConstituentVector::iterator iterator
virtual double phi() const
returns phi coordinate of centre of relevant trigger tower.
Scalar phi() const
phi method
std::map< unsigned int, LVL1::InternalTriggerTower * > * m_IntTTContainer
const CaloLVL1_ID * m_lvl1Helper
Scalar eta() const
pseudorapidity method
int phi_max(const Identifier regId) const
min value of phi index (-999 == failure)
LVL1::InternalTriggerTower * findInternalTriggerTower(const Identifier &towerId, bool bCreate=true)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
int region(const Identifier id) const
return region according to :
LVL1::TriggerTowerKey * m_towerKey
Identifier region_id(int pos_neg_z, int sampling, int region) const
build a region (of towers) identifier
double IDphi(const Identifier &id, const CaloLVL1_ID *l1id)
id_iterator tower_end() const
end iterator over towers
virtual void setOwner(IDataHandleHolder *o)=0
virtual double eta() const
returns the centre of the TT at eta_coord:
int phi(const Identifier id) const
return phi according to :
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
A version of the TriggerTower that contains information that would not be availiable during datatakin...
Trigger towers are the inputs to all other parts of the calorimeter trigger.
Helper class for offline TT identifiers.
int eta(const Identifier id) const
return eta according to :
int pos_neg_z(const Identifier id) const
return pos_neg_z according to :
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
DataVector< LVL1::TriggerTower > TriggerTowerCollection
double IDeta(const Identifier &id, const CaloLVL1_ID *l1id)
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.
virtual StatusCode finalize()
virtual unsigned int ttKey(const TriggerTower &tower)
returns the key of the passed tower
bool is_tile(const Identifier id) const
Test wether given tower or layer is part of the Tile Calorimeter.
virtual StatusCode initialize()
TriggerTower_v2 TriggerTower
Define the latest version of the TriggerTower class.