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< StoreGateSvc > StoreGateSvc_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

Gaudi::Property< std::string > m_SGkey {this, "SGkey", "BPCRawCont", "input BPC raw container key"}
Gaudi::Property< std::string > m_SGrecordkey {this, "SGrecordkey", "BPCCont", "output BPC container key"}
Gaudi::Property< std::string > m_calib_filename {this, "CalibFileName", "H6BPCCalib.txt", "BPC calibration constants file"}
unsigned int m_runnumber {0}
Gaudi::Property< std::vector< std::string > > m_bpc_names {this, "BPCnames", {}, "BPC names"}
Gaudi::Property< std::vector< float > > m_bpc_calibX {this, "BPCcalibX", {}, "BPC X calibration"}
Gaudi::Property< std::vector< float > > m_bpc_calibY {this, "BPCcalibY", {}, "BPC Y calibration"}
Gaudi::Property< std::vector< float > > m_bpc_leftright {this, "BPCleftright", {}, "BPC left/right coefficient"}
Gaudi::Property< std::vector< float > > m_bpc_updown {this, "BPCupdown", {}, "BPC up/down coefficient"}
Gaudi::Property< std::vector< float > > m_bpc_udoffset {this, "BPCudoffset", {}, "BPC up/down offset"}
Gaudi::Property< std::vector< float > > m_bpc_lroffset {this, "BPClroffset", {}, "BPC left/right offset"}
Gaudi::Property< std::vector< float > > m_bpc_invX {this, "BPCinvX", {}, "BPC X inversion"}
Gaudi::Property< std::vector< float > > m_bpc_invY {this, "BPCinvY", {}, "BPC Y inversion"}
Gaudi::Property< std::vector< float > > m_tdccutmin {this, "TDCmin", {}, "minimum TDC cut"}
Gaudi::Property< std::vector< float > > m_tdccutmax {this, "TDCmax", {}, "maximum TDC cut"}
Gaudi::Property< std::vector< float > > m_tdccutlr {this, "TDClrcut", {}, "TDC left+right sum cut"}
Gaudi::Property< std::vector< float > > m_tdccutud {this, "TDCudcut", {}, "TDC up+down sum cut"}
Gaudi::Property< std::vector< float > > m_rotation {this, "BPCRotation", {}, "BPC rotation angle"}
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 376 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{}
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.

◆ ~TBBPCRec()

TBBPCRec::~TBBPCRec ( )
virtual

Definition at line 26 of file TBBPCRec.cxx.

27{ }

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

Execute method.

Implements AthAlgorithm.

Definition at line 36 of file TBBPCRec.cxx.

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

186{
187 return StatusCode::SUCCESS;
188}

◆ getnewcalib()

StatusCode TBBPCRec::getnewcalib ( )

Definition at line 190 of file TBBPCRec.cxx.

191{
192 // Get calib constant from an ASCII file with the following structure :
193 //
194 // runnumber
195 // bpcnumber1 coeff1 coeff2 ... coeff8
196 // bpcnumber2 coeff1 coeff2 ... coeff8
197 // ...
198 // bpcnumber6 coeff1 coeff2 ... coeff8
199 // runnumber
200 // ...
201 //
202 // coeff must have the following order :
203 // bpcnumber calibX calibY leftright updown lroffset udoffset invX invY
204
205 ATH_MSG_DEBUG ( "Get new calibs for run " << m_runnumber);
206
207 int bpcnumber= m_bpc_names.value().size();
208
209 m_bpc_calibX.value().clear(); m_bpc_calibX.value().resize(bpcnumber);
210 m_bpc_calibY.value().clear(); m_bpc_calibY.value().resize(bpcnumber);
211 m_bpc_leftright.value().clear(); m_bpc_leftright.value().resize(bpcnumber);
212 m_bpc_updown.value().clear(); m_bpc_updown.value().resize(bpcnumber);
213 m_bpc_udoffset.value().clear(); m_bpc_udoffset.value().resize(bpcnumber);
214 m_bpc_lroffset.value().clear(); m_bpc_lroffset.value().resize(bpcnumber);
215 m_bpc_invX.value().clear(); m_bpc_invX.value().resize(bpcnumber);
216 m_bpc_invY.value().clear(); m_bpc_invY.value().resize(bpcnumber);
217
218 int pos;
219
220 std::ifstream calibfile;
221 std::string filename = PathResolver::find_file (m_calib_filename, "DATAPATH");
222 calibfile.open(filename.c_str());
223 if(!calibfile.good()){
224 ATH_MSG_WARNING ( " Problem with file named "<< m_calib_filename.value() << " in $DATAPATH" );
225 return StatusCode::FAILURE;
226 } else {
227 ATH_MSG_DEBUG ( " file " << filename << " opened" );
228 }
229 unsigned int runnumber;
230 calibfile >> runnumber;
231 pos = calibfile.tellg();
232 ATH_MSG_DEBUG ( " Run number "<< runnumber );
233 while((runnumber<m_runnumber)&&(!calibfile.eof()))
234 {
235 runnumber=0;
236 pos = calibfile.tellg();
237 // discard next lines
238 for(int j=0;j<bpcnumber+1;j++) calibfile.ignore(5000,'\n');
239 // check next runnumber
240 calibfile >> runnumber;
241 if(runnumber==0) {
242 ATH_MSG_DEBUG ( "empty line");
243 calibfile.clear();
244 break;
245 } // reached an empty line : exit.
246 ATH_MSG_DEBUG ( " Run number "<< runnumber );
247 }
248
249 // Now we found the good set of constant (the ones following pos)
250 if(runnumber==m_runnumber) pos = calibfile.tellg();
251 ATH_MSG_DEBUG ( " Pos = "<< pos );
252 calibfile.seekg(pos);
253 ATH_MSG_DEBUG ( " Will use the following constants :" );
254 for(int j=0;j<bpcnumber;j++)
255 {
256 int bpcn;
257 calibfile >> bpcn;
258 calibfile >> m_bpc_calibX[j];
259 calibfile >> m_bpc_calibY[j];
260 calibfile >> m_bpc_leftright[j];
261 calibfile >> m_bpc_updown[j];
262 calibfile >> m_bpc_lroffset[j];
263 calibfile >> m_bpc_udoffset[j];
264 calibfile >> m_bpc_invX[j];
265 calibfile >> m_bpc_invY[j];
266 ATH_MSG_DEBUG ( bpcn << " "<<m_bpc_calibX[j]
267 << " "<< m_bpc_calibY[j]
268 << " "<< m_bpc_leftright[j]
269 << " "<< m_bpc_updown[j]
270 << " "<< m_bpc_lroffset[j]
271 << " "<< m_bpc_udoffset[j]
272 << " "<< m_bpc_invX[j]
273 << " "<< m_bpc_invY[j] );
274
275 }
276
277 calibfile.close();
278
279 return StatusCode::SUCCESS;
280
281}
#define ATH_MSG_WARNING(x,...)
static std::string find_file(const std::string &logical_file_name, const std::string &search_path)
Gaudi::Property< std::vector< float > > m_bpc_invX
Definition TBBPCRec.h:64
Gaudi::Property< std::string > m_calib_filename
Definition TBBPCRec.h:47
Gaudi::Property< std::vector< float > > m_bpc_invY
Definition TBBPCRec.h:65
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 30 of file TBBPCRec.cxx.

31{
32 return StatusCode::SUCCESS;
33}

◆ 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 368 of file AthCommonDataStore.h.

369 {
370 h.renounce();
372 }
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 352 of file AthCommonDataStore.h.

352 {
354 }

◆ setFilterPassed()

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

Set filter decision:

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, 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 298 of file AthCommonDataStore.h.

298 {
299 for (auto &a : m_vhka) {
301 for (auto k : keys) {
302 k->setOwner(this);
303 }
304 }
305 }

Member Data Documentation

◆ m_bpc_calibX

Gaudi::Property<std::vector<float> > TBBPCRec::m_bpc_calibX {this, "BPCcalibX", {}, "BPC X calibration"}
private

Definition at line 57 of file TBBPCRec.h.

57{this, "BPCcalibX", {}, "BPC X calibration"};

◆ m_bpc_calibY

Gaudi::Property<std::vector<float> > TBBPCRec::m_bpc_calibY {this, "BPCcalibY", {}, "BPC Y calibration"}
private

Definition at line 58 of file TBBPCRec.h.

58{this, "BPCcalibY", {}, "BPC Y calibration"};

◆ m_bpc_invX

Gaudi::Property<std::vector<float> > TBBPCRec::m_bpc_invX {this, "BPCinvX", {}, "BPC X inversion"}
private

Definition at line 64 of file TBBPCRec.h.

64{this, "BPCinvX", {}, "BPC X inversion"};

◆ m_bpc_invY

Gaudi::Property<std::vector<float> > TBBPCRec::m_bpc_invY {this, "BPCinvY", {}, "BPC Y inversion"}
private

Definition at line 65 of file TBBPCRec.h.

65{this, "BPCinvY", {}, "BPC Y inversion"};

◆ m_bpc_leftright

Gaudi::Property<std::vector<float> > TBBPCRec::m_bpc_leftright {this, "BPCleftright", {}, "BPC left/right coefficient"}
private

Definition at line 59 of file TBBPCRec.h.

59{this, "BPCleftright", {}, "BPC left/right coefficient"};

◆ m_bpc_lroffset

Gaudi::Property<std::vector<float> > TBBPCRec::m_bpc_lroffset {this, "BPClroffset", {}, "BPC left/right offset"}
private

Definition at line 62 of file TBBPCRec.h.

62{this, "BPClroffset", {}, "BPC left/right offset"};

◆ m_bpc_names

Gaudi::Property<std::vector<std::string> > TBBPCRec::m_bpc_names {this, "BPCnames", {}, "BPC names"}
private

Definition at line 55 of file TBBPCRec.h.

55{this, "BPCnames", {}, "BPC names"};

◆ m_bpc_udoffset

Gaudi::Property<std::vector<float> > TBBPCRec::m_bpc_udoffset {this, "BPCudoffset", {}, "BPC up/down offset"}
private

Definition at line 61 of file TBBPCRec.h.

61{this, "BPCudoffset", {}, "BPC up/down offset"};

◆ m_bpc_updown

Gaudi::Property<std::vector<float> > TBBPCRec::m_bpc_updown {this, "BPCupdown", {}, "BPC up/down coefficient"}
private

Definition at line 60 of file TBBPCRec.h.

60{this, "BPCupdown", {}, "BPC up/down coefficient"};

◆ m_calib_filename

Gaudi::Property<std::string> TBBPCRec::m_calib_filename {this, "CalibFileName", "H6BPCCalib.txt", "BPC calibration constants file"}
private

Definition at line 47 of file TBBPCRec.h.

47{this, "CalibFileName", "H6BPCCalib.txt", "BPC calibration constants file"};

◆ m_detStore

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

Pointer to StoreGate (detector store by default).

Definition at line 381 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 378 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

Gaudi::Property<std::vector<float> > TBBPCRec::m_rotation {this, "BPCRotation", {}, "BPC rotation angle"}
private

Definition at line 72 of file TBBPCRec.h.

72{this, "BPCRotation", {}, "BPC rotation angle"};

◆ m_runnumber

unsigned int TBBPCRec::m_runnumber {0}
private

Definition at line 49 of file TBBPCRec.h.

49{0};

◆ m_SGkey

Gaudi::Property<std::string> TBBPCRec::m_SGkey {this, "SGkey", "BPCRawCont", "input BPC raw container key"}
private

Definition at line 45 of file TBBPCRec.h.

45{this, "SGkey", "BPCRawCont", "input BPC raw container key"};

◆ m_SGrecordkey

Gaudi::Property<std::string> TBBPCRec::m_SGrecordkey {this, "SGrecordkey", "BPCCont", "output BPC container key"}
private

Definition at line 46 of file TBBPCRec.h.

46{this, "SGrecordkey", "BPCCont", "output BPC container key"};

◆ m_tdccutlr

Gaudi::Property<std::vector<float> > TBBPCRec::m_tdccutlr {this, "TDClrcut", {}, "TDC left+right sum cut"}
private

Definition at line 69 of file TBBPCRec.h.

69{this, "TDClrcut", {}, "TDC left+right sum cut"};

◆ m_tdccutmax

Gaudi::Property<std::vector<float> > TBBPCRec::m_tdccutmax {this, "TDCmax", {}, "maximum TDC cut"}
private

Definition at line 68 of file TBBPCRec.h.

68{this, "TDCmax", {}, "maximum TDC cut"};

◆ m_tdccutmin

Gaudi::Property<std::vector<float> > TBBPCRec::m_tdccutmin {this, "TDCmin", {}, "minimum TDC cut"}
private

Definition at line 67 of file TBBPCRec.h.

67{this, "TDCmin", {}, "minimum TDC cut"};

◆ m_tdccutud

Gaudi::Property<std::vector<float> > TBBPCRec::m_tdccutud {this, "TDCudcut", {}, "TDC up+down sum cut"}
private

Definition at line 70 of file TBBPCRec.h.

70{this, "TDCudcut", {}, "TDC up+down sum cut"};

◆ m_varHandleArraysDeclared

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

Definition at line 387 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 386 of file AthCommonDataStore.h.


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