  | 
  
    ATLAS Offline Software
    
   | 
 
 
 
 
Go to the documentation of this file.
   34 #include "GaudiKernel/Bootstrap.h" 
   35 #include "GaudiKernel/ISvcLocator.h" 
   36 #include "GaudiKernel/IDataProviderSvc.h" 
   37 #include "GaudiKernel/SmartDataPtr.h" 
   45   , m_NDRAWERSPERBOARD(12)
 
   50   for (
int iboard = 0; iboard < 
m_NBOARDS; iboard++) {
 
  232   for (
int iboard = 0; iboard < 
m_NBOARDS; iboard++) {
 
  260       if (phi < 0 || phi > 63) failure = 1;
 
  264         return StatusCode::FAILURE;
 
  275                     << 
" Drawer " << idrawer
 
  281       for (
int ieta = mineta; ieta <= maxeta; ieta++) {
 
  299   ATH_MSG_INFO( 
"Initialization completed, number of towers " << 
nt );
 
  301   return StatusCode::SUCCESS;
 
  316   ATH_CHECK( triggerContainer.
record(std::make_unique<TileTriggerContainer>()) );
 
  328   double p_maxTowerSum = 0;
 
  329   std::vector<Identifier> p_boardTowerID;
 
  330   std::vector<double> p_boardTowerSum;
 
  331   std::vector<Identifier> p_backTowerID;
 
  332   std::vector<double> p_backTowerSum;
 
  346     std::vector<float> samples = cinp->
fsamples();
 
  353                     << 
" peak =" << samples[0] );
 
  361         if (samples[0] > p_maxTowerSum) {
 
  362           p_maxTowerSum = samples[0];
 
  404       p_backTowerID[nbacktowers] = id1;
 
  407       p_backTowerID[nbacktowers] = 
id2;
 
  413   p_backTowerID.resize(nbacktowers);
 
  414   p_backTowerSum.resize(nbacktowers);
 
  416   triggerContainer->
push_back(std::make_unique<TileTrigger>(p_maxTowerID, p_maxTowerSum,
 
  417                                                             p_boardTowerID, p_boardTowerSum,
 
  418                                                             p_backTowerID, p_backTowerSum));
 
  420   ATH_MSG_DEBUG( 
"TileTriggerContainer registered successfully (" << triggerContainer.
key() << 
")" );
 
  424   return StatusCode::SUCCESS;
 
  435   return StatusCode::SUCCESS;
 
  
def retrieve(aClass, aKey=None)
 
Const iterator class for DataVector/DataList.
 
int m_boardOfTower[NMAXTOWERS]
 
Scalar phi() const
phi method
 
const Identifier & TTL1_ID() const
 
float m_towerSum[NMAXTOWERS]
 
const std::vector< float > & fsamples() const
 
ID identifier(int i) const
reverse conversion
 
std::vector< std::string > m_connectedDrawers6
 
static const int m_NMaxTowers
 
#define ATH_MSG_VERBOSE(x)
 
std::vector< std::string > m_connectedDrawers[8]
 
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
 
int phi(const Identifier id) const
return phi according to :
 
Handle class for recording to StoreGate.
 
void initialize(const CaloLVL1_ID *caloLVL1_ID)
 
::StatusCode StatusCode
StatusCode definition for legacy code.
 
std::vector< std::string > m_connectedDrawers1
 
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
 
std::vector< std::string > m_connectedDrawers2
 
#define CHECK(...)
Evaluate an expression and check for errors.
 
SG::WriteHandleKey< TileTriggerContainer > m_triggerContainerKey
 
virtual bool isValid() override final
Can the handle be successfully dereferenced?
 
std::vector< std::string > m_connectedDrawers7
 
bool m_connectedTowers[NMAXTOWERS]
 
bool m_firedTowers[NMAXTOWERS]
 
Helpers for checking error return status codes and reporting errors.
 
int eta(const Identifier id) const
return eta according to :
 
value_type push_back(value_type pElem)
Add an element to the end of the collection.
 
const CaloLVL1_ID * m_TT_ID
 
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
 
int pos_neg_z(const Identifier id) const
return pos_neg_z according to :
 
std::vector< std::string > m_connectedDrawers8
 
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
 
std::vector< std::string > m_connectedDrawers4
 
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
 
Hash table for TileTTL1 identifiers
 
TileCosmicsTrigger(const std::string &name, ISvcLocator *pSvcLocator)
 
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
 
IdentifierHash tower_hash(Identifier towerId) const
create hash id from tower id
 
std::vector< std::string > m_connectedDrawers3
 
Handle class for reading from StoreGate.
 
SG::ReadHandleKey< TileTTL1Container > m_ttl1ContainerKey
 
Identifier tower_id(int pos_neg_z, int sampling, int region, int eta, int phi) const
build a tower identifier
 
virtual ~TileCosmicsTrigger()
 
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
 
std::vector< std::string > m_connectedDrawers5