|  | ATLAS Offline Software
    | 
 
 
 
#include <TRTOverlay.h>
|  | 
|  | TRTOverlay (const std::string &name, ISvcLocator *pSvcLocator) | 
|  | 
| virtual StatusCode | initialize () override final | 
|  | 
| virtual StatusCode | execute (const EventContext &ctx) const override final | 
|  | 
| virtual StatusCode | sysInitialize () override | 
|  | Override sysInitialize.  More... 
 | 
|  | 
| virtual bool | isClonable () const override | 
|  | Specify if the algorithm is clonable.  More... 
 | 
|  | 
| virtual unsigned int | cardinality () const override | 
|  | Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.  More... 
 | 
|  | 
| virtual StatusCode | sysExecute (const EventContext &ctx) override | 
|  | Execute an algorithm.  More... 
 | 
|  | 
| virtual const DataObjIDColl & | extraOutputDeps () const override | 
|  | Return the list of extra output dependencies.  More... 
 | 
|  | 
| virtual bool | filterPassed (const EventContext &ctx) const | 
|  | 
| virtual void | setFilterPassed (bool state, const EventContext &ctx) const | 
|  | 
| 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 | 
|  | 
|  | 
| StatusCode | overlayContainer (const EventContext &ctx, const TRT_RDO_Container *bkgContainer, const TRT_RDO_Container *signalContainer, TRT_RDO_Container *outputContainer, const InDetSimDataCollection *signalSDOCollection, DataPool< TRT_LoLumRawData > &dataItemsPool) const | 
|  | 
| void | mergeCollections (TRT_RDO_Collection *bkgCollection, TRT_RDO_Collection *signalCollection, TRT_RDO_Collection *outputCollection, double occupancy, const InDetSimDataCollection *signalSDOCollection, const TRTCond::StrawStatusData *strawStatusHT, CLHEP::HepRandomEngine *rndmEngine) const | 
|  | Here we take 2 view containers with elements owned by the DataPool we modify some of them and push them to a 3rd view container.  More... 
 | 
|  | 
| 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... 
 | 
|  | 
Definition at line 32 of file TRTOverlay.h.
 
◆ StoreGateSvc_t
◆ TRTOverlay()
      
        
          | TRTOverlay::TRTOverlay | ( | const std::string & | name, | 
        
          |  |  | ISvcLocator * | pSvcLocator | 
        
          |  | ) |  |  | 
      
 
 
◆ cardinality()
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. 
Override this to return 0 for reentrant algorithms. 
Override this to return 0 for reentrant algorithms. 
Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.
 
 
◆ 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);
 
 
 
 
◆ 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.
 
 
◆ 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.
 
 
◆ 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 TRTOverlay::execute | ( | const EventContext & | ctx | ) | const |  | finaloverridevirtual | 
 
Definition at line 101 of file TRTOverlay.cxx.
  109     if (!bkgContainer.isValid()) {
 
  110       ATH_MSG_ERROR(
"Could not get background TRT RDO container " << bkgContainer.name() << 
" from store " << bkgContainer.store());
 
  111       return StatusCode::FAILURE;
 
  113     bkgContainerPtr = bkgContainer.cptr();
 
  115     ATH_MSG_DEBUG(
"Found background TRT RDO container " << bkgContainer.name() << 
" in store " << bkgContainer.store());
 
  120   if (!signalContainer.isValid()) {
 
  121     ATH_MSG_ERROR(
"Could not get signal TRT RDO container " << signalContainer.name() << 
" from store " << signalContainer.store());
 
  122     return StatusCode::FAILURE;
 
  124   ATH_MSG_DEBUG(
"Found signal TRT RDO container " << signalContainer.name() << 
" in store " << signalContainer.store());
 
  128   if (!signalSDOContainer.isValid()) {
 
  129     ATH_MSG_ERROR(
"Could not get signal TRT SDO map container " << signalSDOContainer.name() << 
" from store " << signalSDOContainer.store());
 
  130     return StatusCode::FAILURE;
 
  132   ATH_MSG_DEBUG(
"Found signal TRT SDO map container " << signalSDOContainer.name() << 
" in store " << signalSDOContainer.store());
 
  138   dataItemsPool.prepareToAdd(200000);
 
  142   ATH_CHECK(outputContainer.record(std::make_unique<TRT_RDO_Container>(signalContainer->size())));
 
  143   if (!outputContainer.isValid()) {
 
  144     ATH_MSG_ERROR(
"Could not record output TRT RDO container " << outputContainer.name() << 
" to store " << outputContainer.store());
 
  145     return StatusCode::FAILURE;
 
  147   ATH_MSG_DEBUG(
"Recorded output TRT RDO container " << outputContainer.name() << 
" in store " << outputContainer.store());
 
  150                              outputContainer.ptr(), signalSDOContainer.cptr(),
 
  156   return StatusCode::SUCCESS;
 
 
 
 
◆ 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()
Return the list of extra output dependencies. 
This list is extended to include symlinks implied by inheritance relations. 
Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.
 
 
◆ filterPassed()
◆ initialize()
  
  | 
        
          | StatusCode TRTOverlay::initialize | ( |  | ) |  |  | finaloverridevirtual | 
 
Definition at line 69 of file TRTOverlay.cxx.
   88     return StatusCode::FAILURE;
 
   97   return StatusCode::SUCCESS;
 
 
 
 
◆ 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. 
 
 
◆ isClonable()
◆ mergeCollections()
Here we take 2 view containers with elements owned by the DataPool we modify some of them and push them to a 3rd view container. 
Definition at line 288 of file TRTOverlay.cxx.
  297     throw std::runtime_error(
"mergeCollections(): collection Id mismatch");
 
  316   while ((ibkg < bkgCollection->
size()) || (isig < signalCollection->
size())) {
 
  320     if (isig == signalCollection->
size()) {
 
  323     } 
else if (ibkg == bkgCollection->
size()) {
 
  329       if (signalCollection->
at(isig)->identify() < bkgCollection->
at(ibkg)->identify()) {
 
  331       } 
else if (bkgCollection->
at(ibkg)->identify() < signalCollection->
at(isig)->identify()) {
 
  337         bkgCollection->
swapElement(ibkg++, 
nullptr, tmpBkg);
 
  343         if (sigRdo && bkgRdo) {
 
  345           sigRdo->
merge(*bkgRdo);
 
  348           if (!(sigRdo->
getWord() & 0x04020100)) {
 
  352             InDetSimDataCollection::const_iterator sdoIter = signalSDOCollection->find(rdoId);
 
  353             if (sdoIter != signalSDOCollection->end()) {
 
  354               const std::vector<InDetSimData::Deposit> &deposits = sdoIter->second.getdeposits();
 
  358                   if (std::abs(particleLink->pdg_id()) == 11) {
 
  367             bool isXenonStraw = 
false;
 
  368             if (strawStatusHT != 
nullptr) {
 
  376             float HTOccupancyCorrection = 0.;
 
  391             unsigned int newWord = 0;
 
  392             if (HTOccupancyCorrection != 0. && occupancy * HTOccupancyCorrection > CLHEP::RandFlat::shoot(rndmEngine, 0, 1)) {
 
  393               newWord += 1 << (26-9);
 
  397             sigRdo->
merge(newRdo);
 
 
 
 
◆ 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. 
 
 
◆ overlayContainer()
Definition at line 160 of file TRTOverlay.cxx.
  174       std::unique_ptr<TRT_RDO_Collection> signalCollection = 
copyCollection(hashId, 
ptr, dataItemsPool);
 
  176       if (outputContainer->
addCollection(signalCollection.get(), hashId).isFailure()) {
 
  177         ATH_MSG_ERROR(
"Adding signal Collection with hashId " << hashId << 
" failed");
 
  178         return StatusCode::FAILURE;
 
  180         (void)signalCollection.release();
 
  184     return StatusCode::SUCCESS;
 
  190   CLHEP::HepRandomEngine *rndmEngine = rngWrapper->
getEngine(ctx);
 
  202   std::vector < std::pair<IdentifierHash, bool> > overlapMap;
 
  205     overlapMap.emplace_back(hashId, 
false);
 
  210     auto search = std::lower_bound( overlapMap.begin(), overlapMap.end(), hashId,
 
  211      [](
const std::pair<IdentifierHash, bool> &lhs,  
IdentifierHash rhs) -> 
bool { return lhs.first < rhs; } );
 
  212     if (
search == overlapMap.end() || 
search->first != hashId) {
 
  214       std::unique_ptr<TRT_RDO_Collection> bkgCollection{};
 
  217         bkgCollection = copyCollectionAndSort(hashId, bkgContainer->
indexFindPtr(hashId),dataItemsPool);
 
  222       if (outputContainer->
addCollection(bkgCollection.get(), hashId).isFailure()) {
 
  223         ATH_MSG_ERROR(
"Adding background Collection with hashId " << hashId << 
" failed");
 
  224         return StatusCode::FAILURE;
 
  226         (void)bkgCollection.release();
 
  236   for (
const auto &[hashId, overlap] : overlapMap) {
 
  238     std::unique_ptr<TRT_RDO_Collection> signalCollection =
 
  250       std::unique_ptr<TRT_RDO_Collection> bkgCollection{};
 
  252         bkgCollection = copyCollectionAndSort(hashId, bkgContainer->
indexFindPtr(hashId),dataItemsPool);
 
  260                        signalCollection.get(),
 
  268         ATH_MSG_ERROR(
"Adding overlaid Collection with hashId " << hashId << 
" failed");
 
  269         return StatusCode::FAILURE;
 
  274       if (outputContainer->
addCollection(signalCollection.get(), hashId).isFailure()) {
 
  275         ATH_MSG_ERROR(
"Adding signal Collection with hashId " << hashId << 
" failed");
 
  276         return StatusCode::FAILURE;
 
  278         (void)signalCollection.release();
 
  283   return StatusCode::SUCCESS;
 
 
 
 
◆ renounce()
◆ renounceArray()
◆ setFilterPassed()
◆ sysExecute()
Execute an algorithm. 
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs. 
Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.
 
 
◆ sysInitialize()
Override sysInitialize. 
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc 
Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.
Reimplemented in InputMakerBase, and HypoBase.
Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.
  110   if (
sc.isFailure()) {
 
  118       if ( cs.retrieve().isFailure() ) {
 
  120         return StatusCode::SUCCESS;
 
  122       if (cs->regHandle(
this,*
h).isFailure()) {
 
  123         sc = StatusCode::FAILURE;
 
  124         ATH_MSG_ERROR(
"unable to register WriteCondHandle " << 
h->fullKey()
 
 
 
 
◆ 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()
◆ OverlayTesting::TRTOverlay_test
  
  | 
        
          | friend class OverlayTesting::TRTOverlay_test |  | friend | 
 
 
◆ m_bkgInputKey
Initial value:{
      this, "BkgInputKey", "Bkg_TRT_RDOs",
      " ReadHandleKey for Background Input TRT_RDO_Container"}
Definition at line 62 of file TRTOverlay.h.
 
 
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. 
Empty if no symlinks were found. 
Definition at line 114 of file AthCommonReentrantAlgorithm.h.
 
 
◆ m_HTOccupancyCorrectionB
  
  | 
        
          | Gaudi::Property<double> TRTOverlay::m_HTOccupancyCorrectionB |  | private | 
 
Initial value:{
      this, "TRT_HT_OccupancyCorrectionBarrel", 0.110, ""}
Definition at line 82 of file TRTOverlay.h.
 
 
◆ m_HTOccupancyCorrectionB_Ar
  
  | 
        
          | Gaudi::Property<double> TRTOverlay::m_HTOccupancyCorrectionB_Ar |  | private | 
 
Initial value:{
      this, "TRT_HT_OccupancyCorrectionBarrelAr", 0.100, ""}
Definition at line 90 of file TRTOverlay.h.
 
 
◆ m_HTOccupancyCorrectionB_Ar_noE
  
  | 
        
          | Gaudi::Property<double> TRTOverlay::m_HTOccupancyCorrectionB_Ar_noE |  | private | 
 
Initial value:{
      this, "TRT_HT_OccupancyCorrectionBarrelArNoE", 0.088, ""}
Definition at line 94 of file TRTOverlay.h.
 
 
◆ m_HTOccupancyCorrectionB_noE
  
  | 
        
          | Gaudi::Property<double> TRTOverlay::m_HTOccupancyCorrectionB_noE |  | private | 
 
Initial value:{
      this, "TRT_HT_OccupancyCorrectionBarrelNoE", 0.060, ""}
Definition at line 86 of file TRTOverlay.h.
 
 
◆ m_HTOccupancyCorrectionEC
  
  | 
        
          | Gaudi::Property<double> TRTOverlay::m_HTOccupancyCorrectionEC |  | private | 
 
Initial value:{
      this, "TRT_HT_OccupancyCorrectionEndcap", 0.090, ""}
Definition at line 84 of file TRTOverlay.h.
 
 
◆ m_HTOccupancyCorrectionEC_Ar
  
  | 
        
          | Gaudi::Property<double> TRTOverlay::m_HTOccupancyCorrectionEC_Ar |  | private | 
 
Initial value:{
      this, "TRT_HT_OccupancyCorrectionEndcapAr", 0.101, ""}
Definition at line 92 of file TRTOverlay.h.
 
 
◆ m_HTOccupancyCorrectionEC_Ar_noE
  
  | 
        
          | Gaudi::Property<double> TRTOverlay::m_HTOccupancyCorrectionEC_Ar_noE |  | private | 
 
Initial value:{
      this, "TRT_HT_OccupancyCorrectionEndcapArNoE", 0.102, ""}
Definition at line 96 of file TRTOverlay.h.
 
 
◆ m_HTOccupancyCorrectionEC_noE
  
  | 
        
          | Gaudi::Property<double> TRTOverlay::m_HTOccupancyCorrectionEC_noE |  | private | 
 
Initial value:{
      this, "TRT_HT_OccupancyCorrectionEndcapNoE", 0.050, ""}
Definition at line 88 of file TRTOverlay.h.
 
 
◆ m_outputKey
Initial value:{
      this, "OutputKey", "TRT_RDOs",
      "WriteHandleKey for Output TRT_RDO_Container"}
Definition at line 68 of file TRTOverlay.h.
 
 
◆ m_rndmSvc
Initial value:{this, "RndmSvc", "AthRNGSvc",
                                      "Random Number Service"}
Definition at line 79 of file TRTOverlay.h.
 
 
◆ m_signalInputKey
Initial value:{
      this, "SignalInputKey", "Sig_TRT_RDOs",
      "ReadHandleKey for Signal Input TRT_RDO_Container"}
Definition at line 65 of file TRTOverlay.h.
 
 
◆ m_signalInputSDOKey
Initial value:{
      this, "SignalInputSDOKey", "Sig_TRT_SDO_Map",
      "ReadHandleKey for Signal Input InDetSimDataCollection for TRT"}
Definition at line 71 of file TRTOverlay.h.
 
 
◆ m_sortBkgInput
  
  | 
        
          | Gaudi::Property<bool> TRTOverlay::m_sortBkgInput |  | private | 
 
Initial value:{this, "SortBkgInput", false,
                                       "Sort background input RDOs"}
Definition at line 59 of file TRTOverlay.h.
 
 
◆ m_strawStatusHTKey
Initial value:{
      this, "StrawStatusHT", "StrawStatusHTData", "StrawStatusHT key"}
Definition at line 74 of file TRTOverlay.h.
 
 
◆ m_TRT_LocalOccupancyTool
Initial value:{
      this, "TRT_LocalOccupancyTool", "TRT_LocalOccupancy", ""}
Definition at line 98 of file TRTOverlay.h.
 
 
◆ m_trtId
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
 
def retrieve(aClass, aKey=None)
void setSeed(const std::string &algName, const EventContext &ctx)
Set the random seed using a string (e.g.
Gaudi::Property< double > m_HTOccupancyCorrectionEC_Ar
IdentifierHash straw_hash(Identifier straw_id) const
straw hash from id - optimized
virtual StatusCode addCollection(const T *coll, IdentifierHash hashId) override final
insert collection into container with id hash if IDC should not take ownership of collection,...
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Gaudi::Property< double > m_HTOccupancyCorrectionB_Ar
virtual Identifier identify() const override final
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
SG::WriteHandleKey< TRT_RDO_Container > m_outputKey
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
SG::ReadCondHandleKey< TRTCond::StrawStatusData > m_strawStatusHTKey
#define ATH_MSG_VERBOSE(x)
SG::ReadHandleKey< TRT_RDO_Container > m_signalInputKey
void swapElement(size_type index, value_type newElem, reference oldElem)
Swap one element out of the container.
void search(TDirectory *td, const std::string &s, std::string cwd, node *n)
recursive directory search for TH1 and TH2 and TProfiles
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< InDetSimDataCollection > m_signalInputSDOKey
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
a link optimized in size for a GenParticle in a McEventCollection
virtual size_t numberOfCollections() const override final
return number of collections
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
std::unique_ptr< HGTD_RDO_Collection > copyCollection(const IdentifierHash &hashId, const HGTD_RDO_Collection *collection)
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
bool isElectron(const xAOD::Egamma *eg)
is the object an electron (not Fwd)
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
void mergeCollections(TRT_RDO_Collection *bkgCollection, TRT_RDO_Collection *signalCollection, TRT_RDO_Collection *outputCollection, double occupancy, const InDetSimDataCollection *signalSDOCollection, const TRTCond::StrawStatusData *strawStatusHT, CLHEP::HepRandomEngine *rndmEngine) const
Here we take 2 view containers with elements owned by the DataPool we modify some of them and push th...
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
bool isValid() const
Validity check.
ToolHandle< InDet::ITRT_LocalOccupancy > m_TRT_LocalOccupancyTool
Gaudi::Property< double > m_HTOccupancyCorrectionB_noE
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Gaudi::Property< double > m_HTOccupancyCorrectionEC_noE
A wrapper class for event-slot-local random engines.
StatusCode initialize(bool used=true)
Gaudi::Property< bool > m_sortBkgInput
CLHEP::HepRandomEngine * getEngine(const EventContext &ctx) const
Retrieve the random engine corresponding to the provided EventContext.
virtual const T * indexFindPtr(IdentifierHash hashId) const override final
return pointer on the found entry or null if out of range using hashed index - fast version,...
Gaudi::Property< double > m_HTOccupancyCorrectionB
unsigned int getWord() const
unsigned int findStatus(const IdentifierHash &hashID) const
#define ATH_MSG_WARNING(x)
StatusCode overlayContainer(const EventContext &ctx, const TRT_RDO_Container *bkgContainer, const TRT_RDO_Container *signalContainer, TRT_RDO_Container *outputContainer, const InDetSimDataCollection *signalSDOCollection, DataPool< TRT_LoLumRawData > &dataItemsPool) const
const std::vector< EventContainers::hashPair< T > > & GetAllHashPtrPair() const
Gaudi::Property< double > m_HTOccupancyCorrectionEC
a typed memory pool that saves time spent allocation small object. This is typically used by containe...
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual Identifier identify() const override final
const T * at(size_type n) const
Access an element, as an rvalue.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
BASE::size_type size_type
std::pair< HepMcParticleLink, float > Deposit
ServiceHandle< IAthRNGSvc > m_rndmSvc
void merge(const InDetRawData &other)
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
SG::ReadHandleKey< TRT_RDO_Container > m_bkgInputKey
std::string debugPrint(const IDC_Container *container, unsigned numprint=25)
Diagnostic output of Identifiable Containers.
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Property< double > m_HTOccupancyCorrectionB_Ar_noE
Gaudi::Property< double > m_HTOccupancyCorrectionEC_Ar_noE