ATLAS Offline Software
Loading...
Searching...
No Matches
TrigLArNoiseBurstRecoAlg Class Reference

Implements LArNoiseBurst detection for the new HLT framework. More...

#include <TrigLArNoiseBurstRecoAlg.h>

Inheritance diagram for TrigLArNoiseBurstRecoAlg:
Collaboration diagram for TrigLArNoiseBurstRecoAlg:

Public Member Functions

 TrigLArNoiseBurstRecoAlg (const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &context) const override
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
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 the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
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)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadHandleKey< CaloCellContainerm_cellContainerKey { this, "CellContainerKey", "CellsClusters","SG Key of cells"}
SG::ReadCondHandleKey< LArBadFebContm_knownBadFEBsVecKey {this, "BadFEBsKey", "LArKnownBadFEBs", "key to read the known Bad FEBs"}
SG::ReadCondHandleKey< LArBadFebContm_knownMNBFEBsVecKey {this, "MNBFEBsKey", "LArKnownMNBFEBs", "key to read the known MNB FEBs"}
SG::WriteHandleKey< bool > m_noiseBurstDetected {this, "NoiseBurstKey", "HLT_NoiseBurst", "Flag which records if a noise burst was detected in the event"}
ToolHandle< ILArNoisyROToolm_noisyROTool {this, "Tool", "LArNoisyROTool", "Noise Burst Calculation Tool"}
Gaudi::Property< bool > m_badFEBFlaggedPartitions { this, "BadFEBFlaggedPartitions" , true, "flag to be used for NB detection" }
Gaudi::Property< bool > m_satTightFlaggedPartitions { this, "SatTightFlaggedPartitions", true, "flag to be used for NB detection" }
Gaudi::Property< bool > m_mNBLooseFlaggedPartitions { this, "MNBLooseFlaggedPartitions", true, "flag to be used for NB detection" }
Gaudi::Property< bool > m_mNBTightFlaggedPartitions { this, "MNBTightFlaggedPartitions", true, "flag to be used for NB detection" }
Gaudi::Property< bool > m_mNBTight_PsVetoFlaggedPartitions { this, "MNBTight_PsVetoFlaggedPartitions", true, "flag to be used for NB detection" }
ToolHandle< GenericMonitoringToolm_monTool { this, "MonTool", "", "Monitoring tool" }
unsigned int m_mask {0}
std::mutex m_pubIS_mtx
std::shared_ptr< hltinterface::GenericHLTContainer > m_IsObject
long int m_timeTagPosToClear {}
long int m_publishTime {}
std::string m_name_of_is
size_t m_evntPos {}
size_t m_timeTagPos {}
size_t m_timeTagPosns {}
long int m_timeTagPosRec ATLAS_THREAD_SAFE {}
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Implements LArNoiseBurst detection for the new HLT framework.

Definition at line 29 of file TrigLArNoiseBurstRecoAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TrigLArNoiseBurstRecoAlg()

TrigLArNoiseBurstRecoAlg::TrigLArNoiseBurstRecoAlg ( const std::string & name,
ISvcLocator * pSvcLocator )

Definition at line 19 of file TrigLArNoiseBurstRecoAlg.cxx.

20 :
21 AthReentrantAlgorithm( name, pSvcLocator ), m_IsObject(nullptr), m_timeTagPosToClear(240), m_publishTime(180), m_name_of_is("LArISInfo_NoiseBurstAlg"), m_timeTagPosRec(0) {
22}
std::shared_ptr< hltinterface::GenericHLTContainer > m_IsObject

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode TrigLArNoiseBurstRecoAlg::execute ( const EventContext & context) const
overridevirtual

Definition at line 70 of file TrigLArNoiseBurstRecoAlg.cxx.

70 {
71
72 ATH_MSG_DEBUG ( "Executing " << name() << "..." );
73
74 bool monitor = !m_monTool.name().empty();
75 auto timer = Monitored::Timer("TIME_larnoisetool");
76 auto mon = Monitored::Group(m_monTool,timer);
77 std::string bitWise_flags("bitWise_flags");
78
79 const EventIDBase& EIHandle = context.eventID();
80 long int thisTimeStamp = (EIHandle).time_stamp();
81 long int thisTimeStampns = (EIHandle).time_stamp_ns_offset();
82 uint32_t thisLB = (EIHandle).lumi_block();
83 unsigned long long thisEv = (EIHandle).event_number();
84 ATH_MSG_DEBUG ( name() << " processing EN : " << thisEv << " in LB : " << thisLB << " TS : " << thisTimeStamp << " TSNS : " << thisTimeStampns );
85
86 // get cells
87 SG::ReadHandle<CaloCellContainer> cellsHandle(m_cellContainerKey, context);
88 ATH_CHECK( cellsHandle.isValid() );
89 ATH_MSG_DEBUG ( "Cells handle size: " << cellsHandle->size() << "..." );
90
91 // necessary conditions
92 std::set<unsigned int> bf;
93 std::vector<HWIdentifier> MNBfeb;
94 SG::ReadCondHandle<LArBadFebCont> badHdl(m_knownBadFEBsVecKey, context);
95 const LArBadFebCont* badCont=*badHdl;
96 if(badCont) {
97 for(const LArBadFebCont::BadChanEntry& badchan : *badCont) {
98 bf.insert(badchan.first);
99 }
100 }
101
102 SG::ReadCondHandle<LArBadFebCont> MNBHdl(m_knownMNBFEBsVecKey, context);
103 const LArBadFebCont* MNBCont=*MNBHdl;
104 if(MNBCont) {
105 for(const LArBadFebCont::BadChanEntry& badchan : *MNBCont) {
106 MNBfeb.push_back(HWIdentifier(badchan.first));
107 }
108 }
109
110 // no cells, no discussion
111 // should record, before amything, the answer
112 if ( !(cellsHandle.cptr()) ) return StatusCode::FAILURE;
113 unsigned int flag = 0;
114 bool pass=false;
115 ATH_MSG_DEBUG ("Got cell container, will process it");
116 std::unique_ptr<LArNoisyROSummary> noisyRO = m_noisyROTool->process(context, cellsHandle.cptr(), &bf, &MNBfeb, nullptr);
117 ATH_MSG_DEBUG("processed it");
118 if ( monitor ) { // input
119 auto bitWise = Monitored::Scalar<std::string>(bitWise_flags,"Input");
120 fill(m_monTool,bitWise);
121 }
122 if ( noisyRO->BadFEBFlaggedPartitions() ) {
123 ATH_MSG_DEBUG("Passed : BadFEBFlaggedPartitions");
124 flag |= 0x1;
125 if ( monitor ) {
126 auto bitWise = Monitored::Scalar<std::string>(bitWise_flags,"BadFEBFlaggedPartitions");
127 fill(m_monTool,bitWise);
128 }
129 }
130 if ( noisyRO->BadFEB_WFlaggedPartitions() ) {
131 ATH_MSG_DEBUG("Passed : BadFEB_WFlaggedPartitions");
132 flag |= 0x8;
133 if ( monitor ) {
134 auto bitWise = Monitored::Scalar<std::string>(bitWise_flags,"BadFEB_WFlaggedPartitions");
135 fill(m_monTool,bitWise);
136 }
137 }
138 if ( noisyRO->SatTightFlaggedPartitions() ) {
139 ATH_MSG_DEBUG("Passed : SatTightFlaggedPartitions");
140 flag |= 0x2;
141 if ( monitor ) {
142 auto bitWise = Monitored::Scalar<std::string>(bitWise_flags,"SatTightFlaggedPartitions");
143 fill(m_monTool,bitWise);
144 }
145 }
146 if ( noisyRO->MNBLooseFlaggedPartitions() ) {
147 ATH_MSG_DEBUG("Passed : MNBLooseFlaggedPartions");
148 flag |= 0x10;
149 if ( monitor ) {
150 auto bitWise = Monitored::Scalar<std::string>(bitWise_flags,"MNBLooseFlaggedPartions");
151 fill(m_monTool,bitWise);
152 }
153 }
154 if ( noisyRO->MNBTightFlaggedPartitions() ) {
155 ATH_MSG_DEBUG("Passed : MNBTightFlaggedPartions");
156 flag |= 0x20;
157 if ( monitor ) {
158 auto bitWise = Monitored::Scalar<std::string>(bitWise_flags,"MNBTightFlaggedPartions");
159 fill(m_monTool,bitWise);
160 }
161 }
162 if ( noisyRO->MNBTight_PsVetoFlaggedPartitions() ) {
163 ATH_MSG_DEBUG("Passed : MNBTight_PSVetoFlaggedPartions");
164 flag |= 0x40;
165 if ( monitor ) {
166 auto bitWise = Monitored::Scalar<std::string>(bitWise_flags,"MNBTight_PsVetoFlaggedPartions");
167 fill(m_monTool,bitWise);
168 }
169 }
170
171 if ( (flag & m_mask) != 0x0 ) {
172 ATH_MSG_DEBUG("LAr Noise detected !");
173 pass = true;
174 if ( monitor ) {
175 auto bitWise = Monitored::Scalar<std::string>(std::move(bitWise_flags),"Output");
176 fill(m_monTool,bitWise);
177 }
178 }
179 else {
180 ATH_MSG_DEBUG("LAr Noise not detected!");
181 }
182
183 // publish the found values in IS
184 if ( pass && (m_IsObject != nullptr) ) {
185 // lock the IS publishing
186 std::lock_guard<std::mutex> lock( m_pubIS_mtx );
187 boost::property_tree::ptree event_tree;
188 event_tree.put("eventNumber",thisEv);
189 event_tree.put("LBNumber",thisLB);
190 try{
191 hltinterface::IInfoRegister::instance()->beginEvent(event_tree);
192
193 if ( ( thisTimeStamp - m_timeTagPosRec) > m_timeTagPosToClear ) {
194
195 std::vector<long>& ee = m_IsObject->getIntVecField(m_evntPos);
196 std::vector<long>& tt = m_IsObject->getIntVecField(m_timeTagPos);
197 std::vector<long>& ttn = m_IsObject->getIntVecField(m_timeTagPosns);
198
199 int toBeCleared = 0;
200 for(unsigned int dd=0;dd<tt.size();dd++){
201 if ( ( thisTimeStamp - tt[dd] ) < m_publishTime ) {
202 toBeCleared = (int)dd-1;
203 break;
204 }
205 }
206
207 if ( toBeCleared > 0 ) {
208 ee.erase(ee.begin(),ee.begin()+(toBeCleared) );
209 tt.erase(tt.begin(),tt.begin()+(toBeCleared) );
210 ttn.erase(ttn.begin(),ttn.begin()+(toBeCleared) );
211 }
212 m_timeTagPosRec = thisTimeStamp ; // records to remember when things were cleared
213 } // thisTimeStamp if check
214
215 m_IsObject->appendField(m_evntPos,std::vector<long>{flag});
216 m_IsObject->appendField(m_timeTagPos,std::vector<long>{(long int)thisTimeStamp});
217 m_IsObject->appendField(m_timeTagPosns,std::vector<long>{(long int)thisTimeStampns});
218 hltinterface::IInfoRegister::instance()->endEvent(event_tree);
219 }catch(const std::exception &ex){
220 ATH_MSG_INFO("Caught exception while calling hltinterface::IInfoRegister::instance()->endEvent for event " << thisEv
221 <<" at LB " << thisLB
222 <<". Exception was "<<ex.what());
223 }
224 } // if m_IsObject
225 SG::WriteHandle<bool> outputHandle (m_noiseBurstDetected, context );
226 auto output = std::make_unique<bool>(pass);
227 ATH_CHECK( outputHandle.record(std::move(output) ) );
228
229 return StatusCode::SUCCESS;
230}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
LArBadXCont< LArBadFeb > LArBadFebCont
std::pair< ChanId_t, LArBadFeb > BadChanEntry
ToolHandle< GenericMonitoringTool > m_monTool
SG::WriteHandleKey< bool > m_noiseBurstDetected
SG::ReadHandleKey< CaloCellContainer > m_cellContainerKey
ToolHandle< ILArNoisyROTool > m_noisyROTool
SG::ReadCondHandleKey< LArBadFebCont > m_knownBadFEBsVecKey
SG::ReadCondHandleKey< LArBadFebCont > m_knownMNBFEBsVecKey
bool flag
Definition master.py:29
output
Definition merge.py:16
timer(name, disabled=False)
setEventNumber uint32_t
void fill(H5::Group &out_file, size_t iterations)

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

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 & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

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.

90{
91 // If we didn't find any symlinks to add, just return the collection
92 // from the base class. Otherwise, return the extended collection.
93 if (!m_extendedExtraObjects.empty()) {
95 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96 {
97 return execState( ctx ).filterPassed();
98 }
virtual bool filterPassed(const EventContext &ctx) const

◆ initialize()

StatusCode TrigLArNoiseBurstRecoAlg::initialize ( )
overridevirtual

Definition at line 25 of file TrigLArNoiseBurstRecoAlg.cxx.

25 {
26
27 ATH_CHECK( m_cellContainerKey.initialize() );
28 ATH_CHECK( m_knownBadFEBsVecKey.initialize() );
29 ATH_CHECK( m_knownMNBFEBsVecKey.initialize() );
30 ATH_CHECK( m_noiseBurstDetected.initialize() );
31 ATH_CHECK(m_noisyROTool.retrieve());
32
33
34 if ( not m_monTool.name().empty() )
35 CHECK( m_monTool.retrieve() );
36
37 // prepare mask
38 m_mask = 0x0;
44
45 // No TDAQ structure, no publishing anyway
46 try {
47 auto cfact = hltinterface::ContainerFactory::getInstance();
48 if ( cfact ) {
49 // construct the LAr noise burst container and register it
50 ATH_MSG_DEBUG ( "Got the factory for TDAQ interface, will try to register vectors" );
51 m_IsObject = cfact->constructContainer(m_name_of_is,"LArNoiseBurstCandidates");
52 m_evntPos = cfact->addIntVector(m_IsObject,"Flag",hltinterface::GenericHLTContainer::LASTVALUE);
53 m_timeTagPos = cfact->addIntVector(m_IsObject,"TimeStamp",hltinterface::GenericHLTContainer::LASTVALUE);
54 m_timeTagPosns = cfact->addIntVector(m_IsObject,"TimeStamp_ns",hltinterface::GenericHLTContainer::LASTVALUE);
55 ATH_MSG_DEBUG ( "Registering container in IS with name /HLTObjects/" << m_name_of_is );
56 hltinterface::IInfoRegister::instance()->registerObject("/HLTObjects/",m_IsObject);
57 } // if cfact
58 }
59 catch (std::exception& ex ) {
60 ATH_MSG_WARNING ( "Cannot use ISInfo publication. got exception " << ex.what() );
61 m_IsObject = nullptr;
62 m_timeTagPosRec=0;
63 }
64 // some initial value to clean up stuff
65
66 ATH_MSG_INFO("TrigLArNoiseBurstRecoAlg initialization completed successfully.");
67 return StatusCode::SUCCESS;
68}
#define ATH_MSG_WARNING(x)
#define CHECK(...)
Evaluate an expression and check for errors.
Gaudi::Property< bool > m_satTightFlaggedPartitions
Gaudi::Property< bool > m_mNBTight_PsVetoFlaggedPartitions
Gaudi::Property< bool > m_mNBTightFlaggedPartitions
Gaudi::Property< bool > m_badFEBFlaggedPartitions
Gaudi::Property< bool > m_mNBLooseFlaggedPartitions

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

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()

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

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()

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 > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
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)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

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.

77{
78 return BaseAlg::sysExecute (ctx);
79}

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
overridevirtualinherited

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 HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107 {
109
110 if (sc.isFailure()) {
111 return sc;
112 }
113
114 ServiceHandle<ICondSvc> cs("CondSvc",name());
115 for (auto h : outputHandles()) {
116 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117 // do this inside the loop so we don't create the CondSvc until needed
118 if ( cs.retrieve().isFailure() ) {
119 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120 return StatusCode::SUCCESS;
121 }
122 if (cs->regHandle(this,*h).isFailure()) {
124 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
129 return sc;
130}
#define ATH_MSG_ERROR(x)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ ATLAS_THREAD_SAFE

long int m_timeTagPosRec TrigLArNoiseBurstRecoAlg::ATLAS_THREAD_SAFE {}
mutableprivate

Definition at line 64 of file TrigLArNoiseBurstRecoAlg.h.

64{};

◆ m_badFEBFlaggedPartitions

Gaudi::Property< bool > TrigLArNoiseBurstRecoAlg::m_badFEBFlaggedPartitions { this, "BadFEBFlaggedPartitions" , true, "flag to be used for NB detection" }
private

Definition at line 45 of file TrigLArNoiseBurstRecoAlg.h.

45{ this, "BadFEBFlaggedPartitions" , true, "flag to be used for NB detection" };

◆ m_cellContainerKey

SG::ReadHandleKey<CaloCellContainer > TrigLArNoiseBurstRecoAlg::m_cellContainerKey { this, "CellContainerKey", "CellsClusters","SG Key of cells"}
private

Definition at line 38 of file TrigLArNoiseBurstRecoAlg.h.

38{ this, "CellContainerKey", "CellsClusters","SG Key of cells"};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evntPos

size_t TrigLArNoiseBurstRecoAlg::m_evntPos {}
private

Definition at line 61 of file TrigLArNoiseBurstRecoAlg.h.

61{};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

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_IsObject

std::shared_ptr<hltinterface::GenericHLTContainer> TrigLArNoiseBurstRecoAlg::m_IsObject
private

Definition at line 56 of file TrigLArNoiseBurstRecoAlg.h.

◆ m_knownBadFEBsVecKey

SG::ReadCondHandleKey<LArBadFebCont> TrigLArNoiseBurstRecoAlg::m_knownBadFEBsVecKey {this, "BadFEBsKey", "LArKnownBadFEBs", "key to read the known Bad FEBs"}
private

Definition at line 39 of file TrigLArNoiseBurstRecoAlg.h.

39{this, "BadFEBsKey", "LArKnownBadFEBs", "key to read the known Bad FEBs"};

◆ m_knownMNBFEBsVecKey

SG::ReadCondHandleKey<LArBadFebCont> TrigLArNoiseBurstRecoAlg::m_knownMNBFEBsVecKey {this, "MNBFEBsKey", "LArKnownMNBFEBs", "key to read the known MNB FEBs"}
private

Definition at line 40 of file TrigLArNoiseBurstRecoAlg.h.

40{this, "MNBFEBsKey", "LArKnownMNBFEBs", "key to read the known MNB FEBs"};

◆ m_mask

unsigned int TrigLArNoiseBurstRecoAlg::m_mask {0}
private

Definition at line 52 of file TrigLArNoiseBurstRecoAlg.h.

52{0};

◆ m_mNBLooseFlaggedPartitions

Gaudi::Property< bool > TrigLArNoiseBurstRecoAlg::m_mNBLooseFlaggedPartitions { this, "MNBLooseFlaggedPartitions", true, "flag to be used for NB detection" }
private

Definition at line 47 of file TrigLArNoiseBurstRecoAlg.h.

47{ this, "MNBLooseFlaggedPartitions", true, "flag to be used for NB detection" };

◆ m_mNBTight_PsVetoFlaggedPartitions

Gaudi::Property< bool > TrigLArNoiseBurstRecoAlg::m_mNBTight_PsVetoFlaggedPartitions { this, "MNBTight_PsVetoFlaggedPartitions", true, "flag to be used for NB detection" }
private

Definition at line 49 of file TrigLArNoiseBurstRecoAlg.h.

49{ this, "MNBTight_PsVetoFlaggedPartitions", true, "flag to be used for NB detection" };

◆ m_mNBTightFlaggedPartitions

Gaudi::Property< bool > TrigLArNoiseBurstRecoAlg::m_mNBTightFlaggedPartitions { this, "MNBTightFlaggedPartitions", true, "flag to be used for NB detection" }
private

Definition at line 48 of file TrigLArNoiseBurstRecoAlg.h.

48{ this, "MNBTightFlaggedPartitions", true, "flag to be used for NB detection" };

◆ m_monTool

ToolHandle< GenericMonitoringTool > TrigLArNoiseBurstRecoAlg::m_monTool { this, "MonTool", "", "Monitoring tool" }
private

Definition at line 51 of file TrigLArNoiseBurstRecoAlg.h.

51{ this, "MonTool", "", "Monitoring tool" };

◆ m_name_of_is

std::string TrigLArNoiseBurstRecoAlg::m_name_of_is
private

Definition at line 60 of file TrigLArNoiseBurstRecoAlg.h.

◆ m_noiseBurstDetected

SG::WriteHandleKey<bool> TrigLArNoiseBurstRecoAlg::m_noiseBurstDetected {this, "NoiseBurstKey", "HLT_NoiseBurst", "Flag which records if a noise burst was detected in the event"}
private

Definition at line 41 of file TrigLArNoiseBurstRecoAlg.h.

41{this, "NoiseBurstKey", "HLT_NoiseBurst", "Flag which records if a noise burst was detected in the event"};

◆ m_noisyROTool

ToolHandle<ILArNoisyROTool> TrigLArNoiseBurstRecoAlg::m_noisyROTool {this, "Tool", "LArNoisyROTool", "Noise Burst Calculation Tool"}
private

Definition at line 43 of file TrigLArNoiseBurstRecoAlg.h.

43{this, "Tool", "LArNoisyROTool", "Noise Burst Calculation Tool"};

◆ m_pubIS_mtx

std::mutex TrigLArNoiseBurstRecoAlg::m_pubIS_mtx
mutableprivate

Definition at line 55 of file TrigLArNoiseBurstRecoAlg.h.

◆ m_publishTime

long int TrigLArNoiseBurstRecoAlg::m_publishTime {}
private

Definition at line 59 of file TrigLArNoiseBurstRecoAlg.h.

59{};

◆ m_satTightFlaggedPartitions

Gaudi::Property< bool > TrigLArNoiseBurstRecoAlg::m_satTightFlaggedPartitions { this, "SatTightFlaggedPartitions", true, "flag to be used for NB detection" }
private

Definition at line 46 of file TrigLArNoiseBurstRecoAlg.h.

46{ this, "SatTightFlaggedPartitions", true, "flag to be used for NB detection" };

◆ m_timeTagPos

size_t TrigLArNoiseBurstRecoAlg::m_timeTagPos {}
private

Definition at line 62 of file TrigLArNoiseBurstRecoAlg.h.

62{};

◆ m_timeTagPosns

size_t TrigLArNoiseBurstRecoAlg::m_timeTagPosns {}
private

Definition at line 63 of file TrigLArNoiseBurstRecoAlg.h.

63{};

◆ m_timeTagPosToClear

long int TrigLArNoiseBurstRecoAlg::m_timeTagPosToClear {}
private

Definition at line 58 of file TrigLArNoiseBurstRecoAlg.h.

58{};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: