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

#include <TileMuonReceiverDecisionToNtuple.h>

Inheritance diagram for TileMuonReceiverDecisionToNtuple:
Collaboration diagram for TileMuonReceiverDecisionToNtuple:

Public Member Functions

 TileMuonReceiverDecisionToNtuple (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~TileMuonReceiverDecisionToNtuple ()
StatusCode initialize ()
StatusCode execute (const EventContext &ctx)
 Execute method.
StatusCode finalize ()
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
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
 Get filter decision:
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 Set filter decision:
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

virtual bool isReEntrant () const override final
 Legacy algorithms are not thread-safe.
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

NTuple::Tuple * m_ntuplePtr
std::string m_ntupleID
std::string m_ntupleLoc
int m_nMaxTrigInputs
int m_nBits
NTuple::Item< int > m_nTrigInput
NTuple::Array< int > m_partition
NTuple::Array< int > m_module
NTuple::Array< float > m_energy_D5andD6
NTuple::Array< float > m_energy_D6
NTuple::Array< float > m_time_D5andD6
NTuple::Array< float > m_time_D6
NTuple::Item< float > m_thershold_hi_d5andd6
NTuple::Item< float > m_thershold_lo_d5andd6
NTuple::Item< float > m_thershold_hi_d6
NTuple::Item< float > m_thershold_lo_d6
NTuple::Array< bool > m_trigbit0
NTuple::Array< bool > m_trigbit1
NTuple::Array< bool > m_trigbit2
NTuple::Array< bool > m_trigbit3
std::string m_TileMuRcvContainer
std::string m_TileMuRcvContainer_dbg
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

Definition at line 38 of file TileMuonReceiverDecisionToNtuple.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

◆ TileMuonReceiverDecisionToNtuple()

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

Definition at line 42 of file TileMuonReceiverDecisionToNtuple.cxx.

43 : AthAlgorithm(name, pSvcLocator)
44 , m_ntuplePtr(0)
45 , m_ntupleID("TileMuRcvNt") // usualy it is a number hxxx, but here we use a name
46 , m_ntupleLoc("/FILE1")
47 , m_TileMuRcvContainer("TileMuRcvCnt")
48{
49 declareProperty("TileMuonReceiverContainer" , m_TileMuRcvContainer);
50 declareProperty("NTupleLoc" , m_ntupleLoc);
51 declareProperty("NTupleID" , m_ntupleID);
52 declareProperty("NDecisionBits" , m_nBits=4);
53 declareProperty("NMaxTrigInputs" , m_nMaxTrigInputs=128);
54}
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ ~TileMuonReceiverDecisionToNtuple()

TileMuonReceiverDecisionToNtuple::~TileMuonReceiverDecisionToNtuple ( )
virtual

Definition at line 58 of file TileMuonReceiverDecisionToNtuple.cxx.

59{
60}

Member Function Documentation

◆ 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 }

◆ 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 TileMuonReceiverDecisionToNtuple::execute ( const EventContext & ctx)
virtual

Execute method.

Implements AthAlgorithm.

Definition at line 130 of file TileMuonReceiverDecisionToNtuple.cxx.

131{
132 // step1: read container and declare temporary vectors
133 //
134 const TileMuonReceiverContainer *TileMuRcvCnt = nullptr;
135 CHECK( evtStore()->retrieve(TileMuRcvCnt, m_TileMuRcvContainer) );
136
137 // step2: to fill items in ntuple
138 //
141
142 ATH_MSG_INFO("Size of the container " << TileMuRcvCnt->size() );
143
144 if (it!=end){
145 // the first entry in the container are the thresholds and was wrote like that to avoid
146 // replicating this information in every element of the collection so to avoid other errors
147 //
148 const std::vector<float> & thresh = (*it)->GetThresholds();
149 ++it;
150
151 if (thresh.size()==4){
152 ATH_MSG_VERBOSE( " thresholds: "<< thresh[0] <<" "<< thresh[1] <<" "<< thresh[2] <<" "<< thresh[3] );
157 } else {
158 ATH_MSG_WARNING( " unexpected thresholds vector size: "<< thresh.size());
159 m_thershold_hi_d5andd6 = -1000.;
160 m_thershold_lo_d5andd6 = -1000.;
161 m_thershold_hi_d6 = -1000.;
162 m_thershold_lo_d6 = -1000.;
163 }
164 } else {
165 ATH_MSG_DEBUG( " no thresholds available" );
166 m_thershold_hi_d5andd6 = -1000.;
167 m_thershold_lo_d5andd6 = -1000.;
168 m_thershold_hi_d6 = -1000.;
169 m_thershold_lo_d6 = -1000.;
170 }
171
172 m_nTrigInput=0;
173
174 for(; it != end; ++it) {
175
177 ATH_MSG_WARNING(" Number of input objects exceeds max size = " << m_nMaxTrigInputs);
178 break;
179 }
180
181 const TileMuonReceiverObj * obj = (*it);
182
183 // going over the collection of inputs to the L1Muon
184 //
185 // (1) ID
186
187 int id = obj->GetID();
188 int part = id/100;
189 int module = id - 100*part;
191 m_module[m_nTrigInput] = module;
192 if (id>0) {
193 ATH_MSG_DEBUG( " index: " << m_nTrigInput << " id: " << id << " - " << ((part<4)?"EBA":"EBC") << " " << module);
194 } else {
195 ATH_MSG_WARNING( " index: " << m_nTrigInput << " unexpected id: " << id);
196 }
197
198 // (2) Energy
199
200 const std::vector<float> & ene = obj->GetEne();
201
202 if (ene.size()==2){
203 ATH_MSG_VERBOSE( " energy: " << ene[0] << " " << ene[1]);
205 m_energy_D6[m_nTrigInput] = ene[1];
206 } else {
207 ATH_MSG_WARNING( " unexpected energy vector size: " << ene.size());
209 m_energy_D6[m_nTrigInput] = -1000.;
210 }
211
212 // (3) Time d6:t1+t2/2 d5+d6:t1+t2+t3+t4/4
213
214 const std::vector<float> & time = obj->GetTime();
215
216 if (time.size()==2){
217 ATH_MSG_VERBOSE(" time: " << time[0] << " " << time[1] );
220 } else {
221 ATH_MSG_WARNING(" unexpected time vector size: " << time.size());
223 m_time_D6[m_nTrigInput] = -1000.;
224 }
225
226 // (4) decision
227
228 const std::vector<bool> & decision = obj->GetDecision();
229
230 if (decision.size()==4){
231 ATH_MSG_DEBUG( " decision: "<< decision[0] <<" "<< decision[1] <<" "<< decision[2] <<" "<< decision[3]) ;
232 m_trigbit0[m_nTrigInput] = decision[0]; // d5+d6 hi
233 m_trigbit1[m_nTrigInput] = decision[1]; // d5+d6 lo
234 m_trigbit2[m_nTrigInput] = decision[2]; // d6 hi
235 m_trigbit3[m_nTrigInput] = decision[3]; // d6 lo is this right? Ie d6 lo is 0?
236 } else {
237 ATH_MSG_WARNING( " unexpected decision vector size: "<< decision.size()) ;
238 m_trigbit0[m_nTrigInput] = false;
239 m_trigbit1[m_nTrigInput] = false;
240 m_trigbit2[m_nTrigInput] = false;
241 m_trigbit3[m_nTrigInput] = false;
242 }
243
244 m_nTrigInput++;
245 }
246
247 ATH_MSG_INFO(" Number of inputs " << m_nTrigInput);
248
249 // step3: commit ntuple
250 //
251 CHECK( ntupleSvc()->writeRecord(m_ntuplePtr) );
252
253 // Execution completed.
254 //
255 ATH_MSG_DEBUG( "execute() completed successfully" );
256 return StatusCode::SUCCESS;
257}
#define ATH_MSG_INFO(x)
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
#define CHECK(...)
Evaluate an expression and check for errors.
INTupleSvc * ntupleSvc()
TileContainer< TileMuonReceiverObj > TileMuonReceiverContainer
ServiceHandle< StoreGateSvc > & evtStore()
DataModel_detail::const_iterator< DataVector > const_iterator
Definition DataVector.h:838
const_iterator end() const noexcept
const_iterator begin() const noexcept
size_type size() const noexcept
time(flags, cells_name, *args, **kw)

◆ 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 & AthCommonAlgorithm< 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 89 of file AthCommonAlgorithm.cxx.

54{
55 // If we didn't find any symlinks to add, just return the collection
56 // from the base class. Otherwise, return the extended collection.
57 if (!m_extendedExtraObjects.empty()) {
59 }
61}
Common base class for algorithms.

◆ filterPassed()

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

Get filter decision:

Definition at line 93 of file AthCommonAlgorithm.h.

93 {
94 return execState( ctx ).filterPassed();
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:

◆ finalize()

StatusCode TileMuonReceiverDecisionToNtuple::finalize ( )

Definition at line 260 of file TileMuonReceiverDecisionToNtuple.cxx.

261{
262 ATH_MSG_INFO( "finalize() successfully" );
263 return StatusCode::SUCCESS;
264}

◆ initialize()

StatusCode TileMuonReceiverDecisionToNtuple::initialize ( )

Definition at line 66 of file TileMuonReceiverDecisionToNtuple.cxx.

67{
68 ATH_MSG_INFO( "TileMuonReceiverDecisionToNtuple::initialize begins" );
69
70 m_ntupleLoc="/NTUPLES" + m_ntupleLoc;
71
72 SmartDataPtr<NTuple::Directory> DirPtr(ntupleSvc(), m_ntupleLoc);
73
74 if(!DirPtr) DirPtr=ntupleSvc()->createDirectory(m_ntupleLoc);
75 if(!DirPtr) {
76 ATH_MSG_ERROR( "Invalid Ntuple Directory: " );
77 return StatusCode::FAILURE;
78 }
79
80 m_ntuplePtr=ntupleSvc()->book(DirPtr.ptr(), m_ntupleID,
81 CLID_ColumnWiseTuple, "Tile Muon Receiver Ntuple");
82 // if(!m_ntuplePtr) {
83
84 // std::string ntupleCompleteID=m_ntupleLoc+"/"+m_ntupleID;
85
86 // NTuplePtr nt(ntupleSvc(),ntupleCompleteID);
87 // if (!nt) {
88 // ATH_MSG_ERROR( "Failed to book or to retrieve ntuple "
89 // << ntupleCompleteID );
90 // return StatusCode::FAILURE;
91 // } else {
92 // ATH_MSG_INFO( "Reaccessing ntuple " << ntupleCompleteID );
93 // m_ntuplePtr = nt;
94 // }
95 // }
96
97 //
98 // The container has an object for each module in a extended barrel partition. Are expected 128 entries per event.
99 //
100 // For each entry i will have :
101 // - thresholds (?) 4 (Global will be equal for all entries) | one vector for each event -> 128 id's
102 // - decision ... NTuple::Matrix ?
103 // - d6 energy, d6 time
104 // d5+d6 energy, d5+d6 time | one vector combines each qty for each id -> NTuple::Array for ech qty
105 // - id mod and part | id is a convoluted number combining part and mod eg 356 part:3 mod:56 -> NTuple::Array for ech qty
106 //
107
108 CHECK ( m_ntuplePtr->addItem("TileMuRcv/nTrigInputs" , m_nTrigInput,0,m_nMaxTrigInputs) );
109 CHECK ( m_ntuplePtr->addItem("TileMuRcv/trigThr_Hi_D5andD6" , m_thershold_hi_d5andd6) );
110 CHECK ( m_ntuplePtr->addItem("TileMuRcv/trigThr_Lo_D5andD6" , m_thershold_lo_d5andd6) );
111 CHECK ( m_ntuplePtr->addItem("TileMuRcv/trigThr_Hi_D6" , m_thershold_hi_d6) );
112 CHECK ( m_ntuplePtr->addItem("TileMuRcv/trigThr_Lo_D6" , m_thershold_lo_d6) );
113 CHECK ( m_ntuplePtr->addItem("TileMuRcv/t_D5andD6" , m_nTrigInput, m_time_D5andD6) );
114 CHECK ( m_ntuplePtr->addItem("TileMuRcv/t_D6" , m_nTrigInput, m_time_D6) );
115 CHECK ( m_ntuplePtr->addItem("TileMuRcv/e_D5andD6" , m_nTrigInput, m_energy_D5andD6) );
116 CHECK ( m_ntuplePtr->addItem("TileMuRcv/e_D6" , m_nTrigInput, m_energy_D6) );
117 CHECK ( m_ntuplePtr->addItem("TileMuRcv/mod" , m_nTrigInput, m_module) );
118 CHECK ( m_ntuplePtr->addItem("TileMuRcv/part" , m_nTrigInput, m_partition) );
119 CHECK ( m_ntuplePtr->addItem("TileMuRcv/d_tile2tgcSL_bit0" , m_nTrigInput, m_trigbit0) );
120 CHECK ( m_ntuplePtr->addItem("TileMuRcv/d_tile2tgcSL_bit1" , m_nTrigInput, m_trigbit1) );
121 CHECK ( m_ntuplePtr->addItem("TileMuRcv/d_tile2tgcSL_bit2" , m_nTrigInput, m_trigbit2) );
122 CHECK ( m_ntuplePtr->addItem("TileMuRcv/d_tile2tgcSL_bit3" , m_nTrigInput, m_trigbit3) );
123
124
125 // ATH_MSG_INFO( "Initialization completed" );
126 return StatusCode::SUCCESS;
127}
#define ATH_MSG_ERROR(x)

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

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::isClonable ( ) const
inlineoverridevirtualinherited

Specify if the algorithm is clonable.

Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.

Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.

Definition at line 68 of file AthCommonAlgorithm.h.

68 {
69 return true;
70 }

◆ isReEntrant()

virtual bool AthAlgorithm::isReEntrant ( ) const
inlinefinaloverrideprotectedvirtualinherited

Legacy algorithms are not thread-safe.

Definition at line 47 of file AthAlgorithm.h.

47{ return false; }

◆ 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 AthCommonAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Set filter decision:

Reimplemented in AthFilterAlgorithm.

Definition at line 99 of file AthCommonAlgorithm.h.

99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:

◆ sysExecute()

StatusCode AthCommonAlgorithm< 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.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

41{
42 return BaseAlg::sysExecute (ctx);
43}

◆ sysInitialize()

StatusCode AthCommonAlgorithm< 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 AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, HypoBase, InputMakerBase, and PyAthena::Alg.

Definition at line 60 of file AthCommonAlgorithm.cxx.

71 {
73
74 if (sc.isFailure()) {
75 return sc;
76 }
77
78 ServiceHandle<ICondSvc> cs("CondSvc",name());
79 for (auto h : outputHandles()) {
80 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
81 // do this inside the loop so we don't create the CondSvc until needed
82 if ( cs.retrieve().isFailure() ) {
83 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
85 }
86 if (cs->regHandle(this,*h).isFailure()) {
88 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
89 << " with CondSvc");
90 }
91 }
92 }
93 return sc;
94}
virtual StatusCode sysInitialize() override
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

◆ 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_energy_D5andD6

NTuple::Array<float> TileMuonReceiverDecisionToNtuple::m_energy_D5andD6
private

Definition at line 64 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_energy_D6

NTuple::Array<float> TileMuonReceiverDecisionToNtuple::m_energy_D6
private

Definition at line 65 of file TileMuonReceiverDecisionToNtuple.h.

◆ 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 AthCommonAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 108 of file AthCommonAlgorithm.h.

◆ m_module

NTuple::Array<int> TileMuonReceiverDecisionToNtuple::m_module
private

Definition at line 62 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_nBits

int TileMuonReceiverDecisionToNtuple::m_nBits
private

Definition at line 57 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_nMaxTrigInputs

int TileMuonReceiverDecisionToNtuple::m_nMaxTrigInputs
private

Definition at line 56 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_nTrigInput

NTuple::Item<int> TileMuonReceiverDecisionToNtuple::m_nTrigInput
private

Definition at line 60 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_ntupleID

std::string TileMuonReceiverDecisionToNtuple::m_ntupleID
private

Definition at line 53 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_ntupleLoc

std::string TileMuonReceiverDecisionToNtuple::m_ntupleLoc
private

Definition at line 54 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_ntuplePtr

NTuple::Tuple* TileMuonReceiverDecisionToNtuple::m_ntuplePtr
private

Definition at line 52 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_partition

NTuple::Array<int> TileMuonReceiverDecisionToNtuple::m_partition
private

Definition at line 61 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_thershold_hi_d5andd6

NTuple::Item<float> TileMuonReceiverDecisionToNtuple::m_thershold_hi_d5andd6
private

Definition at line 69 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_thershold_hi_d6

NTuple::Item<float> TileMuonReceiverDecisionToNtuple::m_thershold_hi_d6
private

Definition at line 71 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_thershold_lo_d5andd6

NTuple::Item<float> TileMuonReceiverDecisionToNtuple::m_thershold_lo_d5andd6
private

Definition at line 70 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_thershold_lo_d6

NTuple::Item<float> TileMuonReceiverDecisionToNtuple::m_thershold_lo_d6
private

Definition at line 72 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_TileMuRcvContainer

std::string TileMuonReceiverDecisionToNtuple::m_TileMuRcvContainer
private

Definition at line 82 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_TileMuRcvContainer_dbg

std::string TileMuonReceiverDecisionToNtuple::m_TileMuRcvContainer_dbg
private

Definition at line 83 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_time_D5andD6

NTuple::Array<float> TileMuonReceiverDecisionToNtuple::m_time_D5andD6
private

Definition at line 66 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_time_D6

NTuple::Array<float> TileMuonReceiverDecisionToNtuple::m_time_D6
private

Definition at line 67 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_trigbit0

NTuple::Array<bool> TileMuonReceiverDecisionToNtuple::m_trigbit0
private

Definition at line 74 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_trigbit1

NTuple::Array<bool> TileMuonReceiverDecisionToNtuple::m_trigbit1
private

Definition at line 75 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_trigbit2

NTuple::Array<bool> TileMuonReceiverDecisionToNtuple::m_trigbit2
private

Definition at line 76 of file TileMuonReceiverDecisionToNtuple.h.

◆ m_trigbit3

NTuple::Array<bool> TileMuonReceiverDecisionToNtuple::m_trigbit3
private

Definition at line 77 of file TileMuonReceiverDecisionToNtuple.h.

◆ 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: