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

#include <TBBPCRec.h>

Inheritance diagram for TBBPCRec:
Collaboration diagram for TBBPCRec:

Public Member Functions

 TBBPCRec (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~TBBPCRec ()
virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &ctx) override
 Execute method.
virtual StatusCode finalize () override
StatusCode getnewcalib ()
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_SGkey
std::string m_SGrecordkey
std::string m_calib_filename
unsigned int m_runnumber
std::vector< std::string > m_bpc_names
std::vector< float > m_bpc_calibX
std::vector< float > m_bpc_calibY
std::vector< float > m_bpc_leftright
std::vector< float > m_bpc_updown
std::vector< float > m_bpc_udoffset
std::vector< float > m_bpc_lroffset
std::vector< float > m_bpc_invX
std::vector< float > m_bpc_invY
std::vector< float > m_tdccutmin
std::vector< float > m_tdccutmax
std::vector< float > m_tdccutlr
std::vector< float > m_tdccutud
std::vector< float > m_rotation
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 22 of file TBBPCRec.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

◆ TBBPCRec()

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

Definition at line 21 of file TBBPCRec.cxx.

22 :
23 AthAlgorithm(name,pSvcLocator)
24 {
25 // job options
26
27 declareProperty("SGkey", m_SGkey="BPCRawCont");
28 declareProperty("SGrecordkey", m_SGrecordkey="BPCCont");
29 declareProperty("CalibFileName", m_calib_filename="H6BPCCalib.txt");
30
31 declareProperty("BPCnames", m_bpc_names);
32 declareProperty("BPCcalibX", m_bpc_calibX);
33 declareProperty("BPCcalibY", m_bpc_calibY);
34 declareProperty("BPCleftright", m_bpc_leftright);
35 declareProperty("BPCupdown", m_bpc_updown);
36 declareProperty("BPCudoffset", m_bpc_udoffset);
37 declareProperty("BPClroffset", m_bpc_lroffset);
38
39 declareProperty("BPCinvX", m_bpc_invX);
40 declareProperty("BPCinvY", m_bpc_invY);
41 m_runnumber = 0;
42
45 declareProperty("TDClrcut", m_tdccutlr);
46 declareProperty("TDCudcut", m_tdccutud);
47 declareProperty("BPCRotation", m_rotation);
48 }
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
std::vector< float > m_tdccutmin
Definition TBBPCRec.h:66
std::vector< float > m_bpc_invY
Definition TBBPCRec.h:64
std::string m_SGkey
Definition TBBPCRec.h:45
std::vector< float > m_tdccutmax
Definition TBBPCRec.h:67
std::vector< float > m_bpc_updown
Definition TBBPCRec.h:59
std::vector< float > m_bpc_leftright
Definition TBBPCRec.h:58
std::vector< float > m_bpc_invX
Definition TBBPCRec.h:63
std::vector< float > m_bpc_lroffset
Definition TBBPCRec.h:61
std::vector< float > m_tdccutlr
Definition TBBPCRec.h:68
std::vector< float > m_bpc_udoffset
Definition TBBPCRec.h:60
std::vector< float > m_rotation
Definition TBBPCRec.h:71
std::vector< float > m_bpc_calibY
Definition TBBPCRec.h:57
unsigned int m_runnumber
Definition TBBPCRec.h:48
std::vector< float > m_bpc_calibX
Definition TBBPCRec.h:56
std::vector< float > m_tdccutud
Definition TBBPCRec.h:69
std::vector< std::string > m_bpc_names
Definition TBBPCRec.h:54
std::string m_SGrecordkey
Definition TBBPCRec.h:45
std::string m_calib_filename
Definition TBBPCRec.h:46

◆ ~TBBPCRec()

TBBPCRec::~TBBPCRec ( )
virtual

Definition at line 50 of file TBBPCRec.cxx.

51{ }

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

Execute method.

Implements AthAlgorithm.

Definition at line 60 of file TBBPCRec.cxx.

61{
62 ATH_MSG_DEBUG ( "In execute()" );
63
64 // Get run number and get new calib constants -----------------------------
65 unsigned int thisrun=ctx.eventID().run_number();
66
67 if(thisrun != m_runnumber)
68 {
69 m_runnumber= thisrun;
71 }
72 // ------------------------------------------------------------------------
73
74 // Reconstruct BPC :
75 TBBPCRawCont * bpcrawCont;
76 StatusCode sc = evtStore()->retrieve(bpcrawCont, m_SGkey);
77 if (sc.isFailure()){
78 ATH_MSG_DEBUG ( "TBObjectReco: Retrieval of "<<m_SGkey<<" failed" );
79 }else {
80 ATH_MSG_DEBUG ( "TBBPCRec : Retrieval of "<<m_SGkey<<" succeed : cont size=" << bpcrawCont->size());
81
82 TBBPCCont * bpcCont = new TBBPCCont();
83
84 // Loop over BPC
85 for (const TBBPCRaw * bpcraw : *bpcrawCont) {
86 std::string name = bpcraw->getDetectorName();
87 unsigned int ind=0;
88 // Find calibration index for this BPC
89 while(ind<m_bpc_names.size())
90 {
91 if(name==m_bpc_names[ind]) break;
92 else ind++;
93 }
94 if(ind==m_bpc_names.size()){
95 ATH_MSG_ERROR( "No calibrations for BPC" <<name);
96 continue;
97 }
98
99 // build new BPC
100 TBBPC * bpc = new TBBPC(name);
101 // hit position
102 float xpos = m_bpc_calibX[ind]*(bpcraw->getTDCLeft()-m_bpc_leftright[ind]*bpcraw->getTDCRight()+m_bpc_lroffset[ind]);
103 // PL at least true for BPC5 y = -y!
104 float ypos = -(m_bpc_calibY[ind]*(bpcraw->getTDCUp()-m_bpc_updown[ind]*bpcraw->getTDCDown()+m_bpc_udoffset[ind]));
105
106
107 // perform rotation
108 // PWK 29/06/05 only if m_rotation is set
109
110 float xposR;
111 float yposR;
112
113 if (m_rotation.size()>0) {
114 xposR = xpos*cos(m_rotation[ind]) - ypos*sin(m_rotation[ind]);
115 yposR = xpos*sin(m_rotation[ind]) + ypos*cos(m_rotation[ind]);
116 } else {
117 xposR = xpos;
118 yposR = ypos;
119 }
120
121 ATH_MSG_DEBUG ( "BPC " << name << " PosX = " << xpos << " PosY = " <<ypos );
122 ATH_MSG_DEBUG ( "BPC " << name << " PosXR = " << xposR << " PosYR = " << yposR );
123
124 bpc->setXPos(xposR);
125 bpc->setYPos(yposR);
126
127
128 // pulse
129 bpc->setXPulse(1.*bpcraw->getADCHorizontal());
130 bpc->setYPulse(1.*bpcraw->getADCVertical());
131
132
133 // addition September 27 2004
134 // let, in addition to the existing conditions, XPosOverflow and YPosOverflow
135 // be 'true' if either of the left/right or up/down TDC counts falls outside
136 // the range 5 -> 2047
137
138 // this way, overflows indicate undesirable conditions in general
139
140 // must find out what causes a real overflow
141
142 bool xcut = false;
143 bool ycut = false;
144
145
146 //PWK 29/06/05 set xcut, ycut true only if TDCmin, TDCmax properties set
147
148 if (m_tdccutmin.size()>0 && m_tdccutmax.size()>0) {
149
150 if (bpcraw->getTDCLeft()>m_tdccutmax[ind] || bpcraw->getTDCLeft()<m_tdccutmin[ind]) {xcut = true;}
151 if (bpcraw->getTDCRight()>m_tdccutmax[ind] || bpcraw->getTDCRight()<m_tdccutmin[ind]) {xcut = true;}
152
153 if (bpcraw->getTDCUp()>m_tdccutmax[ind] || bpcraw->getTDCUp()<m_tdccutmin[ind]) {ycut = true;}
154 if (bpcraw->getTDCDown()>m_tdccutmax[ind] || bpcraw->getTDCDown()<m_tdccutmin[ind]) {ycut = true;}
155
156 }
157
158 if (xcut == true)
159 ATH_MSG_INFO ( "TDC left/right out of range " );
160
161 if (ycut == true)
162 ATH_MSG_INFO ( "TDC up/down out of range " );
163
164 //PWK 29/06/05 set xcut, ycut true only if TDClrcut, TDCudcut properties set
165
166 if (m_tdccutlr.size()>0) {
167 if (bpcraw->getTDCLeft()+bpcraw->getTDCRight() < m_tdccutlr[ind])
168 {
169 xcut = true;
170 ATH_MSG_INFO ( "TDC left+right sum below cutoff for BPC " << ind );
171 }
172 }
173 if (m_tdccutud.size()>0) {
174 if (bpcraw->getTDCUp()+bpcraw->getTDCDown() < m_tdccutud[ind])
175 {
176 ycut = true;
177 ATH_MSG_INFO ( "TDC up+down sum below cutoff for BPC " << ind );
178 }
179 }
180
181 // Overflows
182 bpc->setXPosOverflow(bpcraw->isOverflow(TBBPCRaw::tdcLeft)||bpcraw->isOverflow(TBBPCRaw::tdcRight)||xcut);
183 bpc->setYPosOverflow(bpcraw->isOverflow(TBBPCRaw::tdcUp)||bpcraw->isOverflow(TBBPCRaw::tdcDown)||ycut);
184 bpc->setXPulseOverflow(bpcraw->isOverflow(TBBPCRaw::adcHorizontal));
185 bpc->setYPulseOverflow(bpcraw->isOverflow(TBBPCRaw::adcVertical));
186
187
188 bpcCont->push_back(bpc);
189 }
190
191 sc = evtStore()->record(bpcCont,m_SGrecordkey);
192 if ( sc.isFailure( ) ) {
193 ATH_MSG_FATAL ( "Cannot record BPCCont" );
194 }
195 }
196
197 if ( sc.isFailure( ) ) {
198 setFilterPassed(false, ctx);
199 } else {
200 setFilterPassed(true, ctx);
201 }
202
203 return StatusCode::SUCCESS;
204
205}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_FATAL(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
static Double_t sc
virtual void setFilterPassed(bool state, const EventContext &ctx) const
ServiceHandle< StoreGateSvc > & evtStore()
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
@ tdcLeft
Definition TBBPCRaw.h:45
@ tdcDown
Definition TBBPCRaw.h:48
@ adcVertical
Definition TBBPCRaw.h:50
@ tdcRight
Definition TBBPCRaw.h:46
@ adcHorizontal
Definition TBBPCRaw.h:49
StatusCode getnewcalib()
Definition TBBPCRec.cxx:214
void setYPos(signal_type theSignal)
Definition TBBPC.cxx:54
void setXPos(signal_type theSignal)
Definition TBBPC.cxx:49
void setXPulseOverflow(bool overflow=true)
Definition TBBPC.cxx:94
void setYPulseOverflow(bool overflow=true)
Definition TBBPC.cxx:99
void setYPosOverflow(bool overflow=true)
Definition TBBPC.cxx:89
void setYPulse(signal_type theSignal)
Definition TBBPC.cxx:74
void setXPosOverflow(bool overflow=true)
Definition TBBPC.cxx:84
void setXPulse(signal_type theSignal)
Definition TBBPC.cxx:69
::StatusCode StatusCode
StatusCode definition for legacy code.

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

Definition at line 209 of file TBBPCRec.cxx.

210{
211 return StatusCode::SUCCESS;
212}

◆ getnewcalib()

StatusCode TBBPCRec::getnewcalib ( )

Definition at line 214 of file TBBPCRec.cxx.

215{
216 // Get calib constant from an ASCII file with the following structure :
217 //
218 // runnumber
219 // bpcnumber1 coeff1 coeff2 ... coeff8
220 // bpcnumber2 coeff1 coeff2 ... coeff8
221 // ...
222 // bpcnumber6 coeff1 coeff2 ... coeff8
223 // runnumber
224 // ...
225 //
226 // coeff must have the following order :
227 // bpcnumber calibX calibY leftright updown lroffset udoffset invX invY
228
229 ATH_MSG_DEBUG ( "Get new calibs for run " << m_runnumber);
230
231 int bpcnumber= m_bpc_names.size();
232
233 m_bpc_calibX.clear(); m_bpc_calibX.resize(bpcnumber);
234 m_bpc_calibY.clear(); m_bpc_calibY.resize(bpcnumber);
235 m_bpc_leftright.clear(); m_bpc_leftright.resize(bpcnumber);
236 m_bpc_updown.clear(); m_bpc_updown.resize(bpcnumber);
237 m_bpc_udoffset.clear(); m_bpc_udoffset.resize(bpcnumber);
238 m_bpc_lroffset.clear(); m_bpc_lroffset.resize(bpcnumber);
239 m_bpc_invX.clear(); m_bpc_invX.resize(bpcnumber);
240 m_bpc_invY.clear(); m_bpc_invY.resize(bpcnumber);
241
242 int pos;
243
244 std::ifstream calibfile;
245 std::string filename = PathResolver::find_file (m_calib_filename, "DATAPATH");
246 calibfile.open(filename.c_str());
247 if(!calibfile.good()){
248 ATH_MSG_WARNING ( " Problem with file named "<< m_calib_filename << " in $DATAPATH" );
249 return StatusCode::FAILURE;
250 } else {
251 ATH_MSG_DEBUG ( " file " << filename << " opened" );
252 }
253 unsigned int runnumber;
254 calibfile >> runnumber;
255 pos = calibfile.tellg();
256 ATH_MSG_DEBUG ( " Run number "<< runnumber );
257 while((runnumber<m_runnumber)&&(!calibfile.eof()))
258 {
259 runnumber=0;
260 pos = calibfile.tellg();
261 // discard next lines
262 for(int j=0;j<bpcnumber+1;j++) calibfile.ignore(5000,'\n');
263 // check next runnumber
264 calibfile >> runnumber;
265 if(runnumber==0) {
266 ATH_MSG_DEBUG ( "empty line");
267 calibfile.clear();
268 break;
269 } // reached an empty line : exit.
270 ATH_MSG_DEBUG ( " Run number "<< runnumber );
271 }
272
273 // Now we found the good set of constant (the ones following pos)
274 if(runnumber==m_runnumber) pos = calibfile.tellg();
275 ATH_MSG_DEBUG ( " Pos = "<< pos );
276 calibfile.seekg(pos);
277 ATH_MSG_DEBUG ( " Will use the following constants :" );
278 for(int j=0;j<bpcnumber;j++)
279 {
280 int bpcn;
281 calibfile >> bpcn;
282 calibfile >> m_bpc_calibX[j];
283 calibfile >> m_bpc_calibY[j];
284 calibfile >> m_bpc_leftright[j];
285 calibfile >> m_bpc_updown[j];
286 calibfile >> m_bpc_lroffset[j];
287 calibfile >> m_bpc_udoffset[j];
288 calibfile >> m_bpc_invX[j];
289 calibfile >> m_bpc_invY[j];
290 ATH_MSG_DEBUG ( bpcn << " "<<m_bpc_calibX[j]
291 << " "<< m_bpc_calibY[j]
292 << " "<< m_bpc_leftright[j]
293 << " "<< m_bpc_updown[j]
294 << " "<< m_bpc_lroffset[j]
295 << " "<< m_bpc_udoffset[j]
296 << " "<< m_bpc_invX[j]
297 << " "<< m_bpc_invY[j] );
298
299 }
300
301 calibfile.close();
302
303 return StatusCode::SUCCESS;
304
305}
#define ATH_MSG_WARNING(x)
static std::string find_file(const std::string &logical_file_name, const std::string &search_path)
static std::vector< uint32_t > runnumber
Definition iLumiCalc.h:37
float j(const xAOD::IParticle &, const xAOD::TrackMeasurementValidation &hit, const Eigen::Matrix3d &jab_inv)

◆ initialize()

StatusCode TBBPCRec::initialize ( )
overridevirtual

Definition at line 54 of file TBBPCRec.cxx.

55{
56 return StatusCode::SUCCESS;
57}

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

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

std::vector<float> TBBPCRec::m_bpc_calibX
private

Definition at line 56 of file TBBPCRec.h.

◆ m_bpc_calibY

std::vector<float> TBBPCRec::m_bpc_calibY
private

Definition at line 57 of file TBBPCRec.h.

◆ m_bpc_invX

std::vector<float> TBBPCRec::m_bpc_invX
private

Definition at line 63 of file TBBPCRec.h.

◆ m_bpc_invY

std::vector<float> TBBPCRec::m_bpc_invY
private

Definition at line 64 of file TBBPCRec.h.

◆ m_bpc_leftright

std::vector<float> TBBPCRec::m_bpc_leftright
private

Definition at line 58 of file TBBPCRec.h.

◆ m_bpc_lroffset

std::vector<float> TBBPCRec::m_bpc_lroffset
private

Definition at line 61 of file TBBPCRec.h.

◆ m_bpc_names

std::vector<std::string> TBBPCRec::m_bpc_names
private

Definition at line 54 of file TBBPCRec.h.

◆ m_bpc_udoffset

std::vector<float> TBBPCRec::m_bpc_udoffset
private

Definition at line 60 of file TBBPCRec.h.

◆ m_bpc_updown

std::vector<float> TBBPCRec::m_bpc_updown
private

Definition at line 59 of file TBBPCRec.h.

◆ m_calib_filename

std::string TBBPCRec::m_calib_filename
private

Definition at line 46 of file TBBPCRec.h.

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

std::vector<float> TBBPCRec::m_rotation
private

Definition at line 71 of file TBBPCRec.h.

◆ m_runnumber

unsigned int TBBPCRec::m_runnumber
private

Definition at line 48 of file TBBPCRec.h.

◆ m_SGkey

std::string TBBPCRec::m_SGkey
private

Definition at line 45 of file TBBPCRec.h.

◆ m_SGrecordkey

std::string TBBPCRec::m_SGrecordkey
private

Definition at line 45 of file TBBPCRec.h.

◆ m_tdccutlr

std::vector<float> TBBPCRec::m_tdccutlr
private

Definition at line 68 of file TBBPCRec.h.

◆ m_tdccutmax

std::vector<float> TBBPCRec::m_tdccutmax
private

Definition at line 67 of file TBBPCRec.h.

◆ m_tdccutmin

std::vector<float> TBBPCRec::m_tdccutmin
private

Definition at line 66 of file TBBPCRec.h.

◆ m_tdccutud

std::vector<float> TBBPCRec::m_tdccutud
private

Definition at line 69 of file TBBPCRec.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: