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

#include <TileFCSmStepToTileHitVec.h>

Inheritance diagram for TileFCSmStepToTileHitVec:
Collaboration diagram for TileFCSmStepToTileHitVec:

Public Member Functions

 TileFCSmStepToTileHitVec (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~TileFCSmStepToTileHitVec ()
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< StoreGateSvc > StoreGateSvc_t

Private Member Functions

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

Private Attributes

ServiceHandle< IGeoModelSvc > m_geoModSvc {this, "GeoModelSvc", "GeoModelSvc"}
Gaudi::Property< std::string > m_FCS_StepInfo {this, "StepInfoCollection", "MergedEventSteps", "Name of input container (default=TileHitCnt)"}
Gaudi::Property< std::string > m_hitVec {this, "TileHitVector", "TileHitVec_FCS", "Name of output hit vector (default=TileHitVec)"}
Gaudi::Property< std::string > m_infoName {this, "TileInfoName", "TileInfo", "Name of TileInfo store (default=TileInfo"}
const TileID * m_tileID {nullptr}
const TileInfo * m_tileInfo {nullptr}
const TileDetDescrManager * m_tileMgr {nullptr}
ServiceHandle< ITileCalculator > m_calc {this, "TileCalculator", "TileGeoG4SDCalc"}
Gaudi::Property< float > m_deltaT {this, "DeltaT", 0.5 * Gaudi::Units::nanosecond, "Minimal Time granularity in TileHit (default=0.5ns)"}
std::vector< TileHit * > m_allHits
int m_uShape {-1}
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 48 of file TileFCSmStepToTileHitVec.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

◆ TileFCSmStepToTileHitVec()

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

Definition at line 49 of file TileFCSmStepToTileHitVec.cxx.

50 : AthAlgorithm(name, pSvcLocator)
51{
52}
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.

◆ ~TileFCSmStepToTileHitVec()

TileFCSmStepToTileHitVec::~TileFCSmStepToTileHitVec ( )
virtual

Definition at line 58 of file TileFCSmStepToTileHitVec.cxx.

59{}

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

Execute method.

Implements AthAlgorithm.

Definition at line 98 of file TileFCSmStepToTileHitVec.cxx.

99{
100 ATH_MSG_DEBUG( "Execution beginning" );
101
102 m_allHits.clear();
103 m_allHits.resize(m_tileID->pmt_hash_max(),0);
104 int nHit = 0;
105 float Etot = 0.0;
106 int newHits = 0;
107 int sum_size = 0;
108 const double tile_radius[13] = { 2300.,
109 2400., 2500., 2600.,
110 2730., 2860., 2990.,
111 3140., 3290., 3440.,
112 3640., 3820.,
113 3820.01 };
114
115 const double M_PI_32 = M_PI/32.;
116 const double M_PI_64 = M_PI/64.;
117 const double TAN_PI_64 = tan(M_PI/64.);
118
119 // size is amaller than master plate and there is a gap between modules
120 const double size_correction = 2.75 + 1.5/2.;
121
122 const ISF_FCS_Parametrization::FCS_StepInfoCollection* inCollect = nullptr;
123 std::unique_ptr<TileHitVector> FCS_hits = std::make_unique<TileHitVector>();
124
125 // Get FCS_StepInfo from FCS_StepInfoCollection
126 ATH_CHECK(evtStore()->retrieve(inCollect,m_FCS_StepInfo.value())); //FIXME use a ReadHandle
127
128 IdContext pmt_context = m_tileID->pmt_context();
129
130 // Iterating over Steps, creating new TileHits
131 for(const ISF_FCS_Parametrization::FCS_StepInfo* stepInfo : *inCollect) {
132 Identifier hit_id = stepInfo->identify();
133 if (m_tileID->is_tile(hit_id)) {
134 double ene = stepInfo->energy();
135 double time = stepInfo->time();
136
137 IdentifierHash hit_idhash;
138 m_tileID->get_hash(hit_id, hit_idhash, &pmt_context);
139
140 if (m_uShape < 0) { // do not change anything for negative uShape values
141
142 if ( ! m_allHits[hit_idhash] ) {
143 m_allHits[hit_idhash] = new TileHit(hit_id,ene,time);
144 ++newHits;
145 // ATH_MSG_INFO(
147 "Iterating over Steps: new hit with id " << m_tileID->to_string(hit_id,-1)
148 << " nHit=" << nHit << " energy=" << ene << " time=" << time);
149 } else {
150 m_allHits[hit_idhash]->add(ene,time,m_deltaT);
151 // ATH_MSG_INFO(
153 "Iterating over Steps: extra hit with id " << m_tileID->to_string(hit_id,-1)
154 << " nHit=" << nHit << " energy=" << ene << " time=" << time);
155 }
156
157 } else {
158
159 int section = m_tileID->section(hit_id);
160 int side = m_tileID->side(hit_id);
161 int module = m_tileID->module(hit_id);
162 int sample = m_tileID->sample(hit_id);
163
164 bool Ecell = (sample == 3);
165 bool spC10 = (section == 3 && sample == 1 &&
166 ((module >= 38 && module <= 41) || (module >= 54 && module <= 57)));
167
168 if ( Ecell || spC10 ) {
169 if ( ! m_allHits[hit_idhash] ) {
170 m_allHits[hit_idhash] = new TileHit(hit_id,ene,time);
171 // ATH_MSG_INFO(
173 "Iterating over Steps: new E/C10 hit with id " << m_tileID->to_string(hit_id,-1)
174 << " nHit=" << nHit << " energy=" << ene );
175 ++newHits;
176 } else {
177 m_allHits[hit_idhash]->add(ene,time,m_deltaT);
178 // ATH_MSG_INFO(
180 "Iterating over Steps: extra E/C10 hit with id " << m_tileID->to_string(hit_id,-1)
181 << " nHit=" << nHit << " energy=" << ene );
182 }
183
184 } else { //cell have two pmt
185
186 double x = stepInfo->x(); // coordinates of the hit
187 double y = stepInfo->y(); // coordinates of the hit
188 int pmt = m_tileID->pmt(hit_id); // original pmt index
189 double edep[2];
190 Identifier cell_id = m_tileID->cell_id(hit_id);
191
192 double phi_module=(module + 0.5) * M_PI_32;
193 double phi_hit = atan2(y,x);
194 if (phi_hit<0) phi_hit += 2*M_PI;
195 double dphi = phi_hit - phi_module; // should be in the range [-pi/64, pi/64]
196 if (dphi < -M_PI_64 || dphi > M_PI_64) {
197 ATH_MSG_ERROR( "Displaced hit with id " << m_tileID->to_string(hit_id,-1)
198 << " x " << x << " y " << y
199 << " phi_module " << phi_module << " phi_hit " << phi_hit
200 << " dphi " << dphi );
201 // correcting dphi
202 dphi -= trunc(dphi/M_PI_64) * M_PI_64;
203 }
204
205 double radius = sqrt(x*x+y*y);
206 double radius_corrected = radius * cos(dphi);
207 double yLocal = radius * sin(dphi); // if negative, we are closer to pmt with index 0
208 double zLocal = radius * cos(dphi);
209 double halfYLocal = radius_corrected * TAN_PI_64 - size_correction;
210 if (fabs(yLocal) > halfYLocal) {
211 ATH_MSG_ERROR( "Displaced hit with id " << m_tileID->to_string(hit_id,-1)
212 << " x " << x << " y " << y
213 << " radius_corr " << radius_corrected
214 << " yLocal " << yLocal << " halfYlocal_corr " << halfYLocal
215 << " delta " << fabs(yLocal) - halfYLocal );
216 // correcting yLocal
217 yLocal = copysign(halfYLocal,yLocal);
218 }
219
220 // tile row or tile index - number from 0 to 10
221 int tile_ind = std::lower_bound (tile_radius, tile_radius+12,radius_corrected)-tile_radius-1;
222 if (tile_ind < 0 || tile_ind > 10 ) {
223 ATH_MSG_ERROR( "Displaced hit with id " << m_tileID->to_string(hit_id,-1)
224 << " x " << x << " y " << y
225 << " radius " << radius << " corrected " << radius_corrected
226 << " tile_index " << tile_ind );
227 // correcting tile index
228 if (tile_ind<0) tile_ind = 0;
229 if (tile_ind>10) tile_ind = 10;
230 }
231 TileHitData hitData;
232 hitData.tileSize = tile_ind;
233 hitData.nDetector = section;
234 hitData.nSide = side;
235 m_calc->pmtEdepFromFCS_StepInfo(hitData, ene, yLocal, halfYLocal, zLocal, m_uShape);
236 edep[0] = hitData.edep_down;
237 edep[1] = hitData.edep_up;
238
239 for (int pm=0; pm<2; ++pm) {
240 // changing hit_id, - use proper pm index (0 or 1) for down/up pmt
241 hit_id = m_tileID->pmt_id(cell_id,pm);
242 m_tileID->get_hash(hit_id, hit_idhash, &pmt_context);
243
244 double tim=time;
245 if (pm != pmt) { // need to correct time
246 const double ref_ind_tile = 1.59;
247 const double inv_speed = ref_ind_tile / CLHEP::c_light;
248 if (pmt) tim -= 2 * yLocal * inv_speed;
249 else tim += 2 * yLocal * inv_speed;
250 }
251
252 if ( ! m_allHits[hit_idhash] ) {
253 m_allHits[hit_idhash] = new TileHit(hit_id,edep[pm],tim,m_deltaT);
254 ++newHits;
255 // ATH_MSG_INFO(
257 "Iterating over Steps: new hit with id " << m_tileID->to_string(hit_id,-1)
258 << " nHit=" << nHit << " pmt " << pmt << " energy=" << edep[pm] << " time="
259 << time << " + " << tim-time << " = " << tim);
260 } else {
261 m_allHits[hit_idhash]->add(edep[pm],tim,m_deltaT);
262 // ATH_MSG_INFO(
264 "Iterating over Steps: extra hit with id " << m_tileID->to_string(hit_id,-1)
265 << " nHit=" << nHit << " pmt " << pmt << " energy=" << edep[pm] << " time="
266 << time << " + " << tim-time << " = " << tim);
267 }
268 }
269
270 }//cell have two pmt
271
272 }//m_uShape >= 0
273
274 ++nHit;
275 Etot += ene;
276 }//is_tile(hit_id)
277
278 }//Iterating over Steps
279
280 ATH_MSG_DEBUG( "End of Iterating over Steps: nHit=" << nHit << " newHits=" << newHits << " Etot=" << Etot );
281 // ATH_MSG_INFO( "End of Iterating over Steps: nHit=" << nHit << " newHits=" << newHits << " Etot=" << Etot );
282 nHit = 0;
283 Etot = 0.0;
284
285 // Addition of each TileHit to the TileHitVector
286 std::vector<TileHit*>::const_iterator curr = m_allHits.begin();
287 std::vector<TileHit*>::const_iterator iend = m_allHits.end();
288 for ( ; curr != iend; ++curr) {
289 if (*curr) {
290 TileHit *pHit = (*curr);
291
292 // ATH_MSG_INFO(
294 "Iterating over Hits: nHit=" << nHit << " size="
295 << pHit->size() << " energy=" << pHit->energy() );
296 FCS_hits->push_back(*pHit);
297 ++nHit;
298 for (int ii=0; ii<pHit->size(); ++ii ) Etot += pHit->energy(ii);
299 sum_size += pHit->size();
300 }
301 }
302
303 // Register the set of TileHits to the event store
304 CHECK( evtStore()->record(std::move(FCS_hits), m_hitVec.value(), false ) );
305
306 ATH_MSG_DEBUG( "Execution completed, nHit=" << nHit << " sum_size=" << sum_size << " Etot=" << Etot );
307 // ATH_MSG_INFO( "Execution completed, nHit=" << nHit << " sum_size=" << sum_size << " Etot=" << Etot );
308
309 return StatusCode::SUCCESS;
310}
#define M_PI
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_VERBOSE(x,...)
#define CHECK(...)
Evaluate an expression and check for errors.
void section(const std::string &sec)
#define y
#define x
ServiceHandle< StoreGateSvc > & evtStore()
Gaudi::Property< std::string > m_hitVec
Gaudi::Property< float > m_deltaT
Gaudi::Property< std::string > m_FCS_StepInfo
std::vector< TileHit * > m_allHits
ServiceHandle< ITileCalculator > m_calc
float energy(int ind=0) const
Return energy of ind-th sub-hit.
int size(void) const
Return length of energy/time vectors.
time(flags, cells_name, *args, **kw)
G4double edep_up
G4double edep_down

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

Definition at line 315 of file TileFCSmStepToTileHitVec.cxx.

316{
317 ATH_MSG_INFO( "Finalized successfully" );
318
319 return StatusCode::SUCCESS;
320}
#define ATH_MSG_INFO(x,...)

◆ getUshapeFromGM()

int TileFCSmStepToTileHitVec::getUshapeFromGM ( ) const
private

Definition at line 88 of file TileFCSmStepToTileHitVec.cxx.

88 {
89 const TileDetectorTool* tileDetectorTool =
90 dynamic_cast<const TileDetectorTool *>(m_geoModSvc->getTool("TileDetectorTool"));
91 return (tileDetectorTool) ? tileDetectorTool->uShape() : 0;
92}
ServiceHandle< IGeoModelSvc > m_geoModSvc

◆ initialize()

StatusCode TileFCSmStepToTileHitVec::initialize ( )

Definition at line 65 of file TileFCSmStepToTileHitVec.cxx.

66{
67 ATH_CHECK( m_calc.retrieve() );
68 // retrieve Tile detector manager, TileID helper and TileIfno from det store
69 ATH_CHECK( detStore()->retrieve(m_tileMgr) );
70 ATH_CHECK( detStore()->retrieve(m_tileID) );
71 ATH_CHECK( detStore()->retrieve(m_tileInfo, m_infoName.value()) );
72 ATH_CHECK(m_geoModSvc.retrieve());
73 ATH_MSG_VERBOSE("GeoModelSvc initialized.");
74
75 m_uShape = this->getUshapeFromGM();
76 if (m_uShape < -2) {
77 ATH_MSG_WARNING("Changing U-shape from " << m_uShape << " to -2");
78 m_uShape = -2;
79 }
80 if (m_uShape > 1 && m_uShape < 10) {
81 ATH_MSG_WARNING("Changing U-shape from " << m_uShape << " to 1");
82 m_uShape = 1;
83 }
84
85 return StatusCode::SUCCESS;
86}
#define ATH_MSG_WARNING(x,...)
const ServiceHandle< StoreGateSvc > & detStore() const
Gaudi::Property< std::string > m_infoName
const TileDetDescrManager * m_tileMgr

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

std::vector<TileHit*> TileFCSmStepToTileHitVec::m_allHits
private

Definition at line 75 of file TileFCSmStepToTileHitVec.h.

◆ m_calc

ServiceHandle<ITileCalculator> TileFCSmStepToTileHitVec::m_calc {this, "TileCalculator", "TileGeoG4SDCalc"}
private

Definition at line 72 of file TileFCSmStepToTileHitVec.h.

72{this, "TileCalculator", "TileGeoG4SDCalc"};

◆ m_deltaT

Gaudi::Property<float> TileFCSmStepToTileHitVec::m_deltaT {this, "DeltaT", 0.5 * Gaudi::Units::nanosecond, "Minimal Time granularity in TileHit (default=0.5ns)"}
private

Definition at line 74 of file TileFCSmStepToTileHitVec.h.

74{this, "DeltaT", 0.5 * Gaudi::Units::nanosecond, "Minimal Time granularity in TileHit (default=0.5ns)"};

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

Gaudi::Property<std::string> TileFCSmStepToTileHitVec::m_FCS_StepInfo {this, "StepInfoCollection", "MergedEventSteps", "Name of input container (default=TileHitCnt)"}
private

Definition at line 65 of file TileFCSmStepToTileHitVec.h.

65{this, "StepInfoCollection", "MergedEventSteps", "Name of input container (default=TileHitCnt)"};

◆ m_geoModSvc

ServiceHandle<IGeoModelSvc> TileFCSmStepToTileHitVec::m_geoModSvc {this, "GeoModelSvc", "GeoModelSvc"}
private

Definition at line 64 of file TileFCSmStepToTileHitVec.h.

64{this, "GeoModelSvc", "GeoModelSvc"};

◆ m_hitVec

Gaudi::Property<std::string> TileFCSmStepToTileHitVec::m_hitVec {this, "TileHitVector", "TileHitVec_FCS", "Name of output hit vector (default=TileHitVec)"}
private

Definition at line 66 of file TileFCSmStepToTileHitVec.h.

66{this, "TileHitVector", "TileHitVec_FCS", "Name of output hit vector (default=TileHitVec)"};

◆ m_infoName

Gaudi::Property<std::string> TileFCSmStepToTileHitVec::m_infoName {this, "TileInfoName", "TileInfo", "Name of TileInfo store (default=TileInfo"}
private

Definition at line 67 of file TileFCSmStepToTileHitVec.h.

67{this, "TileInfoName", "TileInfo", "Name of TileInfo store (default=TileInfo"};

◆ m_tileID

const TileID* TileFCSmStepToTileHitVec::m_tileID {nullptr}
private

Definition at line 69 of file TileFCSmStepToTileHitVec.h.

69{nullptr};

◆ m_tileInfo

const TileInfo* TileFCSmStepToTileHitVec::m_tileInfo {nullptr}
private

Definition at line 70 of file TileFCSmStepToTileHitVec.h.

70{nullptr};

◆ m_tileMgr

const TileDetDescrManager* TileFCSmStepToTileHitVec::m_tileMgr {nullptr}
private

Definition at line 71 of file TileFCSmStepToTileHitVec.h.

71{nullptr};

◆ m_uShape

int TileFCSmStepToTileHitVec::m_uShape {-1}
private

Definition at line 77 of file TileFCSmStepToTileHitVec.h.

77{-1};

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