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

#include <TBTrackInfoFromTag.h>

Inheritance diagram for TBTrackInfoFromTag:
Collaboration diagram for TBTrackInfoFromTag:

Public Member Functions

 TBTrackInfoFromTag (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~TBTrackInfoFromTag ()
virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &ctx) override
 Execute method.
virtual StatusCode finalize () override
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

std::string m_SGrecordkey
std::string m_SGkey1
std::string m_inputRootFileName
unsigned int m_max_nPixelHits
unsigned int m_max_nSctHits
unsigned int m_max_nTrtHitsTRT
unsigned int m_max1_Trt_HLTRT
unsigned int m_max2_Trt_HLTRT
unsigned int m_max_btdc1
unsigned int m_max_GainC
unsigned int m_max_MuBack
unsigned int m_max_TfitC
unsigned int m_max_EfitC
unsigned int m_max_Chi2C
unsigned int m_max1_SampleC
unsigned int m_max2_SampleC
TFile * rootFile1
TFile * rootFile2
TileRec_h1000tileRecTree
TB_treetbTree
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 49 of file TBTrackInfoFromTag.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

◆ TBTrackInfoFromTag()

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

Definition at line 29 of file TBTrackInfoFromTag.cxx.

29 : AthAlgorithm(name,pSvcLocator)
30 {
31 // job options
32 declareProperty("SGrecordkey", m_SGrecordkey="TBTrackReducedInfo");
33 declareProperty("EventInfoSGKey", m_SGkey1="ByteStreamEventInfo");
34 declareProperty("InputRootFile", m_inputRootFileName="./cbnt_RecExTB_Combined.root");
35
36 rootFile1 = 0;
37 rootFile2 = 0;
38 tbTree = 0;
39 tileRecTree = 0;
40
46 m_max_btdc1 = 0;
47 m_max_GainC = 0;
48 m_max_MuBack = 0;
49 m_max_TfitC = 0;
50 m_max_EfitC = 0;
51 m_max_Chi2C = 0;
54 }
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
TileRec_h1000 * tileRecTree
unsigned int m_max_nTrtHitsTRT
std::string m_inputRootFileName
unsigned int m_max2_Trt_HLTRT
unsigned int m_max1_Trt_HLTRT
unsigned int m_max_nSctHits
unsigned int m_max_nPixelHits
unsigned int m_max2_SampleC
unsigned int m_max1_SampleC

◆ ~TBTrackInfoFromTag()

TBTrackInfoFromTag::~TBTrackInfoFromTag ( )
virtual

Definition at line 56 of file TBTrackInfoFromTag.cxx.

57{ }

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 TBTrackInfoFromTag::execute ( const EventContext & ctx)
overridevirtual

Execute method.

Implements AthAlgorithm.

Definition at line 103 of file TBTrackInfoFromTag.cxx.

104{
105 ATH_MSG_DEBUG("Executing TBTrackInfoFromTag...");
106
107 int runNumber = ctx.eventID().run_number();
108 uint64_t evtNumber = ctx.eventID().event_number();
109
110 ATH_MSG_DEBUG("Run/Event numbers:\t " << runNumber << " / " << evtNumber);
111
112/*
113 int returnFlag = 0;
114 int evtFindFlag1, evtFindFlag2;
115 evtFindFlag1 = tileRecTree->Loop(evtNumber);
116 evtFindFlag2 = tbTree->Loop(evtNumber);
117
118 if(evtFindFlag1 < 0) {
119 ATH_MSG_DEBUG("There is no event number " << evtNumber << " in tileRecTree");
120 returnFlag = 1;
121 }
122 if(evtFindFlag2 < 0) {
123 ATH_MSG_DEBUG("There is no event number " << evtNumber << " in tbTree");
124 returnFlag = 1;
125 }
126
127 if(returnFlag == 1)
128 return sc;
129
130 tileRecTree->fChain->GetEntry(evtFindFlag1);
131 tbTree->fChain->GetEntry(evtFindFlag1);
132
133 ATH_MSG_DEBUG("EventNumber in EventInfo = " << evtNumber);
134 ATH_MSG_DEBUG("EventNumber in tbTree = " << tbTree->Event);
135 ATH_MSG_DEBUG("EventNumber in tileRecTree = " << tileRecTree->Evt);
136*/
137
138
139 int evtFindFlag = tileRecTree->Loop(evtNumber);
140 if(evtFindFlag < 0) {
141 ATH_MSG_DEBUG("There is no event number " << evtNumber << " in tileRecTree");
142 return StatusCode::SUCCESS;
143 }
144
145 ATH_MSG_DEBUG("Get line number " << evtFindFlag << " from the trees");
146 tileRecTree->fChain->GetEntry(evtFindFlag);
147 tbTree->fChain->GetEntry(evtFindFlag);
148
149 ATH_MSG_DEBUG("EventNumber in EventInfo = " << evtNumber);
150 ATH_MSG_DEBUG("EventNumber in tileRecTree = " << tileRecTree->Evt);
151 ATH_MSG_DEBUG("EventNumber in tbTree = " << tbTree->Event);
152
153 TBTrackInfo * trckInfo = new TBTrackInfo();
154
155 // variables from TB_tree
156 trckInfo->tb_Trigger = tbTree->Trigger;
157 trckInfo->tb_trk_nTracks = tbTree->trk_nTracks;
158 trckInfo->tb_trk_nTracksTRT = tbTree->trk_nTracksTRT;
159
160 trckInfo->tb_sADC_S1 = tbTree->sADC_S1;
161 trckInfo->tb_sADC_muHalo = tbTree->sADC_muHalo;
162 trckInfo->tb_sADC_muTag = tbTree->sADC_muTag;
163 trckInfo->tb_sADC_C2 = tbTree->sADC_C2;
164 trckInfo->tb_sADC_TRTSci = tbTree->sADC_TRTSci;
165
166 copyArrToVec_1d( m_max_nPixelHits, tbTree->trk_nPixelHits, &(trckInfo->tb_trk_nPixelHits) );
167 copyArrToVec_1d( m_max_nSctHits, tbTree->trk_nSctHits, &(trckInfo->tb_trk_nSctHits) );
168 copyArrToVec_1d( m_max_nTrtHitsTRT, tbTree->trk_nTrtHitsTRT, &(trckInfo->tb_trk_nTrtHitsTRT) );
169
171
172/*
173 ATH_MSG_DEBUG("trk_nPixelHits:");
174 ATH_MSG_DEBUG("m_max_nPixelHits " << m_max_nPixelHits );
175 for(int i=0; i<60; i++){
176 ATH_MSG_DEBUG("\t- trckInfo->tb_trk_nPixelHits[i] " << i << " = "<< trckInfo->tb_trk_nPixelHits[i] );
177 ATH_MSG_DEBUG("\t- tbTree->trk_nSctHits[i] " << i << " = " << tbTree->trk_nSctHits[i] );
178 }
179
180 ATH_MSG_DEBUG("2- tb_trk_Trt_HLTRT:");
181 ATH_MSG_DEBUG("m_max1_Trt_HLTRT , m_max2_Trt_HLTRT = " << m_max1_Trt_HLTRT << " , " << m_max2_Trt_HLTRT);
182 for(int i=0; i<60; i++){
183 ATH_MSG_DEBUG("\t- " << i << ": ");
184 for(int j=0; j<5; j++){
185 ATH_MSG_DEBUG("\t\t- tbTree->tb_trk_Trt_HLTRT[i][j] : " << j << " = " << tbTree->trk_Trt_HLTRT[i][j] );
186 ATH_MSG_DEBUG("\t\t- trckInfo->tb_trk_Trt_HLTRT[i][j] : " << j << " = " << trckInfo->tb_trk_Trt_HLTRT[i][j] );
187 ATH_MSG_DEBUG("");
188 }
189 }
190
191*/
192
193 // variables from TileRec_h1000
194 trckInfo->tileRec_XchN1 = tileRecTree->XchN1 ;
195 trckInfo->tileRec_XchN2 = tileRecTree->XchN2 ;
196 trckInfo->tileRec_Xcha0 = tileRecTree->Xcha0 ;
197 trckInfo->tileRec_Xcha1 = tileRecTree->Xcha1 ;
198
199 copyArrToVec_1d( m_max_btdc1, tileRecTree->btdc1, &(trckInfo->tileRec_btdc1) );
200
201 copyArrToVec_1d( m_max_GainC, tileRecTree->GainC0, &(trckInfo->tileRec_GainC0) );
202 copyArrToVec_1d( m_max_GainC, tileRecTree->GainC1, &(trckInfo->tileRec_GainC1) );
203 copyArrToVec_1d( m_max_GainC, tileRecTree->GainC2, &(trckInfo->tileRec_GainC2) );
204
205 copyArrToVec_1d( m_max_MuBack, tileRecTree->MuBack, &(trckInfo->tileRec_MuBack) );
206
207 copyArrToVec_1d( m_max_TfitC, tileRecTree->TfitC0, &(trckInfo->tileRec_TfitC0) );
208 copyArrToVec_1d( m_max_TfitC, tileRecTree->TfitC1, &(trckInfo->tileRec_TfitC1) );
209 copyArrToVec_1d( m_max_TfitC, tileRecTree->TfitC2, &(trckInfo->tileRec_TfitC2) );
210
211 copyArrToVec_1d( m_max_EfitC, tileRecTree->EfitC0, &(trckInfo->tileRec_EfitC0) );
212 copyArrToVec_1d( m_max_EfitC, tileRecTree->EfitC1, &(trckInfo->tileRec_EfitC1) );
213 copyArrToVec_1d( m_max_EfitC, tileRecTree->EfitC2, &(trckInfo->tileRec_EfitC2) );
214
215 copyArrToVec_1d( m_max_Chi2C, tileRecTree->Chi2C0, &(trckInfo->tileRec_Chi2C0) );
216 copyArrToVec_1d( m_max_Chi2C, tileRecTree->Chi2C1, &(trckInfo->tileRec_Chi2C1) );
217 copyArrToVec_1d( m_max_Chi2C, tileRecTree->Chi2C2, &(trckInfo->tileRec_Chi2C2) );
218
222
223
224 ATH_CHECK( evtStore()->record(trckInfo,m_SGrecordkey) );
225 ATH_MSG_DEBUG("\t- Recording TBTrackInfo in StorGate with key = " << m_SGrecordkey);
226
227
228 return StatusCode::SUCCESS;
229}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
void copyArrToVec_1d(unsigned int size, type1 arr, type2 *vec)
void copyArrToVec_2d(unsigned int size1, unsigned int size2, type1 arr, type2 *vec)
ServiceHandle< StoreGateSvc > & evtStore()
std::vector< int > tb_trk_nSctHits
Definition TBTrackInfo.h:40
std::vector< int > tb_trk_nTrtHitsTRT
Definition TBTrackInfo.h:41
float tb_sADC_muTag
Definition TBTrackInfo.h:35
float tileRec_XchN1
Definition TBTrackInfo.h:46
float tb_sADC_muHalo
Definition TBTrackInfo.h:34
std::vector< int > tb_trk_nPixelHits
Definition TBTrackInfo.h:39
float tb_sADC_C2
Definition TBTrackInfo.h:36
std::vector< int > tileRec_GainC2
Definition TBTrackInfo.h:54
std::vector< float > tileRec_TfitC0
Definition TBTrackInfo.h:57
std::vector< std::vector< int > > tileRec_SampleC1
Definition TBTrackInfo.h:68
std::vector< float > tileRec_EfitC1
Definition TBTrackInfo.h:61
std::vector< float > tileRec_Chi2C0
Definition TBTrackInfo.h:63
std::vector< float > tileRec_EfitC0
Definition TBTrackInfo.h:60
float tileRec_XchN2
Definition TBTrackInfo.h:47
std::vector< float > tileRec_Chi2C1
Definition TBTrackInfo.h:64
std::vector< float > tileRec_TfitC1
Definition TBTrackInfo.h:58
std::vector< int > tileRec_GainC1
Definition TBTrackInfo.h:53
std::vector< float > tileRec_TfitC2
Definition TBTrackInfo.h:59
float tb_sADC_S1
Definition TBTrackInfo.h:33
std::vector< float > tileRec_MuBack
Definition TBTrackInfo.h:56
float tileRec_Xcha0
Definition TBTrackInfo.h:48
float tileRec_Xcha1
Definition TBTrackInfo.h:49
std::vector< float > tileRec_EfitC2
Definition TBTrackInfo.h:62
std::vector< int > tileRec_btdc1
Definition TBTrackInfo.h:51
int tb_trk_nTracks
Definition TBTrackInfo.h:30
std::vector< std::vector< int > > tileRec_SampleC0
Definition TBTrackInfo.h:67
float tb_sADC_TRTSci
Definition TBTrackInfo.h:37
int tb_trk_nTracksTRT
Definition TBTrackInfo.h:31
std::vector< std::vector< int > > tileRec_SampleC2
Definition TBTrackInfo.h:69
std::vector< float > tileRec_Chi2C2
Definition TBTrackInfo.h:65
std::vector< int > tileRec_GainC0
Definition TBTrackInfo.h:52
std::vector< std::vector< int > > tb_trk_Trt_HLTRT
Definition TBTrackInfo.h:43

◆ 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 TBTrackInfoFromTag::finalize ( )
overridevirtual

Definition at line 233 of file TBTrackInfoFromTag.cxx.

234{
235
237 // Re-Allocating Services //
239
240 delete rootFile1;
241 delete rootFile2;
242 delete tileRecTree;
243 delete tbTree;
244
245 return StatusCode::SUCCESS;
246}

◆ initialize()

StatusCode TBTrackInfoFromTag::initialize ( )
overridevirtual

Definition at line 60 of file TBTrackInfoFromTag.cxx.

61{
63 // Allocate Services //
65
66 // initialize variables which store the max lenghts of the arrays
67 // from the input root file to be read by the TBTrackInfoFromTag package
69
71 m_max2_Trt_HLTRT = 100;
72
73 m_max_btdc1 = 16;
74 m_max_GainC = 48;
75
76 m_max_MuBack = 14;
78
79 m_max1_SampleC = 48;
81
82 // input root trees
83 TTree * tree;
84
85 ATH_MSG_DEBUG("Reading in file " << m_inputRootFileName << " ...");
86
87 ATH_MSG_DEBUG("\t- Getting TileRec_h1000 tree ");
88 rootFile1 = new TFile((TString)m_inputRootFileName);
89 rootFile1->cd((TString)m_inputRootFileName + ":/TileRec");
90 tree = (TTree*)gDirectory->Get("h1000");
91 tileRecTree = new TileRec_h1000(tree);
92
93 ATH_MSG_DEBUG("\t- Getting TB_tree tree ");
94 rootFile2 = new TFile((TString)m_inputRootFileName);
95 rootFile2->cd((TString)m_inputRootFileName + ":/TB");
96 tree = (TTree*)gDirectory->Get("tree");
97 tbTree = new TB_tree(tree);
98
99 return StatusCode::SUCCESS;
100}
TChain * tree

◆ 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}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_WARNING(x)
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_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_inputRootFileName

std::string TBTrackInfoFromTag::m_inputRootFileName
private

Definition at line 71 of file TBTrackInfoFromTag.h.

◆ m_max1_SampleC

unsigned int TBTrackInfoFromTag::m_max1_SampleC
private

Definition at line 77 of file TBTrackInfoFromTag.h.

◆ m_max1_Trt_HLTRT

unsigned int TBTrackInfoFromTag::m_max1_Trt_HLTRT
private

Definition at line 74 of file TBTrackInfoFromTag.h.

◆ m_max2_SampleC

unsigned int TBTrackInfoFromTag::m_max2_SampleC
private

Definition at line 77 of file TBTrackInfoFromTag.h.

◆ m_max2_Trt_HLTRT

unsigned int TBTrackInfoFromTag::m_max2_Trt_HLTRT
private

Definition at line 74 of file TBTrackInfoFromTag.h.

◆ m_max_btdc1

unsigned int TBTrackInfoFromTag::m_max_btdc1
private

Definition at line 75 of file TBTrackInfoFromTag.h.

◆ m_max_Chi2C

unsigned int TBTrackInfoFromTag::m_max_Chi2C
private

Definition at line 76 of file TBTrackInfoFromTag.h.

◆ m_max_EfitC

unsigned int TBTrackInfoFromTag::m_max_EfitC
private

Definition at line 76 of file TBTrackInfoFromTag.h.

◆ m_max_GainC

unsigned int TBTrackInfoFromTag::m_max_GainC
private

Definition at line 75 of file TBTrackInfoFromTag.h.

◆ m_max_MuBack

unsigned int TBTrackInfoFromTag::m_max_MuBack
private

Definition at line 76 of file TBTrackInfoFromTag.h.

◆ m_max_nPixelHits

unsigned int TBTrackInfoFromTag::m_max_nPixelHits
private

Definition at line 73 of file TBTrackInfoFromTag.h.

◆ m_max_nSctHits

unsigned int TBTrackInfoFromTag::m_max_nSctHits
private

Definition at line 73 of file TBTrackInfoFromTag.h.

◆ m_max_nTrtHitsTRT

unsigned int TBTrackInfoFromTag::m_max_nTrtHitsTRT
private

Definition at line 73 of file TBTrackInfoFromTag.h.

◆ m_max_TfitC

unsigned int TBTrackInfoFromTag::m_max_TfitC
private

Definition at line 76 of file TBTrackInfoFromTag.h.

◆ m_SGkey1

std::string TBTrackInfoFromTag::m_SGkey1
private

Definition at line 70 of file TBTrackInfoFromTag.h.

◆ m_SGrecordkey

std::string TBTrackInfoFromTag::m_SGrecordkey
private

Definition at line 70 of file TBTrackInfoFromTag.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.

◆ rootFile1

TFile* TBTrackInfoFromTag::rootFile1
private

Definition at line 79 of file TBTrackInfoFromTag.h.

◆ rootFile2

TFile * TBTrackInfoFromTag::rootFile2
private

Definition at line 79 of file TBTrackInfoFromTag.h.

◆ tbTree

TB_tree* TBTrackInfoFromTag::tbTree
private

Definition at line 81 of file TBTrackInfoFromTag.h.

◆ tileRecTree

TileRec_h1000* TBTrackInfoFromTag::tileRecTree
private

Definition at line 80 of file TBTrackInfoFromTag.h.


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