 |
ATLAS Offline Software
|
#include <InDetBeamSpotFinder.h>
|
| InDetBeamSpotFinder (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute () override |
|
virtual StatusCode | finalize () override |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
bool | passEventSelection (const xAOD::EventInfo &) |
|
BeamSpot::Event | readEvent (const xAOD::EventInfo &, const xAOD::VertexContainer &) |
|
void | writeToVertexTree (BeamSpot::Event &, BeamSpot::VrtHolder &) |
|
void | writeToBeamSpotTree (const IInDetBeamSpotTool *bs, std::vector< BeamSpot::Event > &, std::vector< BeamSpot::VrtHolder > &) |
|
void | sortEvents () |
|
StatusCode | setupVertexTree () |
|
StatusCode | setupBeamSpotTree () |
|
StatusCode | performFits () |
|
bool | iequals (const std::string &, const std::string &) |
|
int | min_lb (std::vector< BeamSpot::Event > &) |
|
int | max_lb (std::vector< BeamSpot::Event > &) |
|
int | min_run (std::vector< BeamSpot::Event > &) |
|
int | max_run (std::vector< BeamSpot::Event > &) |
|
void | convertVtxTypeNames () |
|
IInDetBeamSpotTool * | cloneTool (int) |
|
bool | passVertexSelection (const xAOD::Vertex *) |
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
|
ServiceHandle< IToolSvc > | m_toolSvc {this, "ToolSvc", "ToolSvc"} |
|
ServiceHandle< ITHistSvc > | m_thistSvc {this, "THistSvc", "THistSvc"} |
|
ToolHandleArray< IInDetBeamSpotTool > | m_beamSpotToolList |
|
SG::ReadCondHandleKey< BunchCrossingCondData > | m_bcDataKey {this, "BunchCrossingCondDataKey", "BunchCrossingData" ,"SG Key of BunchCrossing CDO"} |
|
SG::ReadHandleKey< xAOD::EventInfo > | m_eventInfo {this, "EvtInfo", "EventInfo", "EventInfo name"} |
|
SG::ReadHandleKey< xAOD::VertexContainer > | m_vertexContainer {this, "VertexContainer", "PrimaryVertices", "Vertex container name"} |
|
unsigned int | m_maxRunsPerFit |
|
unsigned int | m_maxEventsPerFit |
|
unsigned int | m_maxLBsPerFit |
|
std::vector< unsigned int > | m_BCIDsToAccept |
|
bool | m_writeVertexNtuple |
|
std::string | m_beamSpotNtupleName |
|
TTree * | m_root_bs =0 |
|
TTree * | m_root_vrt =0 |
|
beamSpotNtuple_struct | m_beamSpotNtuple |
|
vertexNtuple_struct | m_root_vtx |
|
BeamSpotStatusCode | m_BeamStatusCode |
|
std::string | m_vertexTreeName |
|
std::vector< BeamSpot::Event > | m_eventList |
|
std::map< BeamSpot::ID, std::vector< BeamSpot::Event > > | m_eventMap |
|
std::vector< std::vector< BeamSpot::Event > > | m_sortedEventList |
|
std::vector< std::vector< BeamSpot::VrtHolder > > | m_sortedVertices |
|
int | m_minTrackNum {} |
|
int | m_maxTrackNum {} |
|
double | m_maxChi2Vertex {} |
|
double | m_maxTransverseError {} |
|
double | m_maxAbsCorrelXY {} |
|
double | m_minVtxProb {} |
|
unsigned int | m_minVertexNum {} |
|
std::vector< std::string > | m_vertexTypeNames {} |
|
std::vector< xAOD::VxType::VertexType > | m_vertexTypes {} |
|
bool | m_useFilledBCIDsOnly {} |
|
std::string | m_fitSortingKey {} |
|
bool | m_writeAllVertices {} |
|
unsigned long | m_secondsPerFit {} |
|
DataObjIDColl | m_extendedExtraObjects |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Definition at line 35 of file InDetBeamSpotFinder.h.
◆ StoreGateSvc_t
◆ InDetBeamSpotFinder()
InDet::InDetBeamSpotFinder::InDetBeamSpotFinder |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ cloneTool()
◆ convertVtxTypeNames()
void InDet::InDetBeamSpotFinder::convertVtxTypeNames |
( |
| ) |
|
|
private |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode InDet::InDetBeamSpotFinder::execute |
( |
| ) |
|
|
overridevirtual |
◆ extraDeps_update_handler()
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 & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode InDet::InDetBeamSpotFinder::finalize |
( |
| ) |
|
|
overridevirtual |
◆ iequals()
bool InDet::InDetBeamSpotFinder::iequals |
( |
const std::string & |
a, |
|
|
const std::string & |
b |
|
) |
| |
|
private |
◆ initialize()
StatusCode InDet::InDetBeamSpotFinder::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 54 of file InDetBeamSpotFinder.cxx.
57 ATH_MSG_FATAL(
"FATAL ERROR: must provide at least one beamspot tool in beamSpotToolList");
58 return StatusCode::FAILURE;
73 return StatusCode::SUCCESS;
◆ inputHandles()
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.
◆ max_lb()
int InDet::InDetBeamSpotFinder::max_lb |
( |
std::vector< BeamSpot::Event > & |
eventList | ) |
|
|
private |
◆ max_run()
int InDet::InDetBeamSpotFinder::max_run |
( |
std::vector< BeamSpot::Event > & |
eventList | ) |
|
|
private |
◆ min_lb()
int InDet::InDetBeamSpotFinder::min_lb |
( |
std::vector< BeamSpot::Event > & |
eventList | ) |
|
|
private |
◆ min_run()
int InDet::InDetBeamSpotFinder::min_run |
( |
std::vector< BeamSpot::Event > & |
eventList | ) |
|
|
private |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
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.
◆ passEventSelection()
◆ passVertexSelection()
Definition at line 239 of file InDetBeamSpotFinder.cxx.
240 if(!vtx) {
return false; }
246 if(vtx->covariancePosition()(0,0) <= 0 || vtx->covariancePosition()(1,1) <= 0 || vtx->covariancePosition()(2,2) <= 0 ) {
return false; }
248 if(vtx->covariancePosition()(0,0) > maxTransverseError2 || vtx->covariancePosition()(1,1) > maxTransverseError2) {
return false;}
◆ performFits()
StatusCode InDet::InDetBeamSpotFinder::performFits |
( |
| ) |
|
|
private |
Definition at line 260 of file InDetBeamSpotFinder.cxx.
262 std::vector<BeamSpot::VrtHolder> verticesToFit;
265 verticesToFit.clear();
271 for(
const auto & thisVertex: thisEvent.vertices){
272 if( thisVertex.passed ) {
273 verticesToFit.push_back( thisVertex );
279 IInDetBeamSpotTool * bs(
nullptr);
281 if(!bs){
return StatusCode::FAILURE; }
282 if(not verticesToFit.empty()) { bsFitStatus = bs->fit(verticesToFit); }
304 return StatusCode::SUCCESS;
◆ readEvent()
Definition at line 100 of file InDetBeamSpotFinder.cxx.
106 event.bcid = eventInfo.
bcid();
113 if(!eventInfo.
eventType(xAOD::EventInfo::EventType::IS_SIMULATION))
121 event.lumiBlock = BSeventInfo->
event_ID()->lumi_block();
129 vertex.vxx = vtx->covariancePosition()(0,0);
130 vertex.vxy = vtx->covariancePosition()(0,1);
131 vertex.vyy = vtx->covariancePosition()(1,1);
132 vertex.vzz = vtx->covariancePosition()(2,2);
133 vertex.vertexType = vtx->vertexType();
134 vertex.nTracks = vtx->nTrackParticles();
150 vertex.vxx < 0.)
continue;
151 event.vertices.push_back(
vertex );
◆ renounce()
◆ renounceArray()
◆ setupBeamSpotTree()
StatusCode InDet::InDetBeamSpotFinder::setupBeamSpotTree |
( |
| ) |
|
|
private |
Definition at line 307 of file InDetBeamSpotFinder.cxx.
308 const std::string inRootID =
"/INDETBEAMSPOTFINDER/";
309 const std::string sbs =
"BeamSpotNt";
310 m_root_bs =
new TTree(sbs.data(),
"Beamspot Solutions");
329 std::map<std::string,double> paramMap =
tool->getParamMap();
330 std::map<std::string,double> covMap =
tool->getCovMap();
332 std::string slashD =
"/D";
333 std::string keySlashD;
341 keySlashD =
key + slashD;
347 const std::string &
key =
iter->first;
351 keySlashD =
key + slashD;
◆ setupVertexTree()
StatusCode InDet::InDetBeamSpotFinder::setupVertexTree |
( |
| ) |
|
|
private |
Definition at line 252 of file InDetBeamSpotFinder.cxx.
253 const std::string inRootID =
"/INDETBEAMSPOTFINDER/";
255 m_root_vrt =
new TTree(svrts.data(),
"Vertices");
256 m_root_vrt->Branch(
"vrt",&
m_root_vtx,
"x/D:y:z:vxx:vxy:vyy:vzz:vType/i:run:lb:bcid:pileup:nTracks:eventNumber/l:eventTime:eventTime_NS:passed/O:valid");
◆ sortEvents()
void InDet::InDetBeamSpotFinder::sortEvents |
( |
| ) |
|
|
private |
Definition at line 156 of file InDetBeamSpotFinder.cxx.
169 unsigned int nRuns = 0;
170 unsigned int nLBs = 0;
171 unsigned int nFits = 1;
175 currentID =
iter->first;
180 || currentID.
bcid() != lastID.
bcid()
184 << currentID.
pileup() <<
" <-- " << lastID.
pileup() <<
"\n\t"
185 << currentID.
bcid() <<
" <-- " << lastID.
bcid() <<
"\n\t"
193 for(
unsigned int i = 0;
i <
iter->second.size();
i++){
202 lastID =
iter->first;
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ writeToBeamSpotTree()
leave these here; illustrates coverity defect 29456 for( std::map<std::string,double>::iterator iter = m_beamSpotNtuple.paramMap.begin(); iter != m_beamSpotNtuple.paramMap.end(); ++iter){
std::string key = iter->first; iter->second = ( bs->getParamMap().find(key) == bs->getParamMap().end() ) ? 0 : bs->getParamMap()[key]; }
leave these here; illustrates coverity defect 29456 for( std::map<std::string,double>::iterator iter = m_beamSpotNtuple.covMap.begin(); iter != m_beamSpotNtuple.covMap.end(); ++iter){
std::string key = iter->first; iter->second = ( bs->getCovMap().find(key) == bs->getCovMap().end() ) ? 0 : bs->getCovMap()[key]; }
Definition at line 392 of file InDetBeamSpotFinder.cxx.
401 unsigned int nVtxAll = 0;
402 unsigned int nVtxPrim = 0;
404 for(
const auto & thisEvent :
eventList){
405 const auto & theseVertices=thisEvent.vertices;
406 nVtxAll += theseVertices.size();
407 nVtxPrim+= std::count_if(theseVertices.begin(), theseVertices.end(), isPrimaryVertex);
417 const auto & bsToolParamMap = bs->getParamMap();
418 const auto & bsToolCovMap= bs->getCovMap();
420 const std::string &
key = param.first;
421 const auto & bsToolEquivalent =bsToolParamMap.find(
key);
422 param.second = ( bsToolEquivalent == bsToolParamMap.end() ) ? 0 : bsToolEquivalent->second;
432 const std::string &
key = covariance.first;
433 const auto & bsToolEquivalent = bsToolCovMap.find(
key);
434 covariance.second = ( bsToolEquivalent == bsToolCovMap.end() ) ? 0 : bsToolEquivalent->second;
◆ writeToVertexTree()
◆ m_bcDataKey
◆ m_BCIDsToAccept
std::vector<unsigned int> InDet::InDetBeamSpotFinder::m_BCIDsToAccept |
|
private |
◆ m_beamSpotNtuple
◆ m_beamSpotNtupleName
std::string InDet::InDetBeamSpotFinder::m_beamSpotNtupleName |
|
private |
◆ m_beamSpotToolList
◆ m_BeamStatusCode
◆ m_detStore
◆ m_eventInfo
◆ m_eventList
◆ m_eventMap
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_fitSortingKey
std::string InDet::InDetBeamSpotFinder::m_fitSortingKey {} |
|
private |
◆ m_maxAbsCorrelXY
double InDet::InDetBeamSpotFinder::m_maxAbsCorrelXY {} |
|
private |
◆ m_maxChi2Vertex
double InDet::InDetBeamSpotFinder::m_maxChi2Vertex {} |
|
private |
◆ m_maxEventsPerFit
unsigned int InDet::InDetBeamSpotFinder::m_maxEventsPerFit |
|
private |
◆ m_maxLBsPerFit
unsigned int InDet::InDetBeamSpotFinder::m_maxLBsPerFit |
|
private |
◆ m_maxRunsPerFit
unsigned int InDet::InDetBeamSpotFinder::m_maxRunsPerFit |
|
private |
◆ m_maxTrackNum
int InDet::InDetBeamSpotFinder::m_maxTrackNum {} |
|
private |
◆ m_maxTransverseError
double InDet::InDetBeamSpotFinder::m_maxTransverseError {} |
|
private |
◆ m_minTrackNum
int InDet::InDetBeamSpotFinder::m_minTrackNum {} |
|
private |
◆ m_minVertexNum
unsigned int InDet::InDetBeamSpotFinder::m_minVertexNum {} |
|
private |
◆ m_minVtxProb
double InDet::InDetBeamSpotFinder::m_minVtxProb {} |
|
private |
◆ m_root_bs
TTree* InDet::InDetBeamSpotFinder::m_root_bs =0 |
|
private |
◆ m_root_vrt
TTree* InDet::InDetBeamSpotFinder::m_root_vrt =0 |
|
private |
◆ m_root_vtx
◆ m_secondsPerFit
unsigned long InDet::InDetBeamSpotFinder::m_secondsPerFit {} |
|
private |
◆ m_sortedEventList
std::vector<std::vector<BeamSpot::Event> > InDet::InDetBeamSpotFinder::m_sortedEventList |
|
private |
◆ m_sortedVertices
◆ m_thistSvc
ServiceHandle<ITHistSvc> InDet::InDetBeamSpotFinder::m_thistSvc {this, "THistSvc", "THistSvc"} |
|
private |
◆ m_toolSvc
ServiceHandle<IToolSvc> InDet::InDetBeamSpotFinder::m_toolSvc {this, "ToolSvc", "ToolSvc"} |
|
private |
◆ m_useFilledBCIDsOnly
bool InDet::InDetBeamSpotFinder::m_useFilledBCIDsOnly {} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vertexContainer
◆ m_vertexTreeName
std::string InDet::InDetBeamSpotFinder::m_vertexTreeName |
|
private |
◆ m_vertexTypeNames
std::vector<std::string> InDet::InDetBeamSpotFinder::m_vertexTypeNames {} |
|
private |
◆ m_vertexTypes
◆ m_vhka
◆ m_writeAllVertices
bool InDet::InDetBeamSpotFinder::m_writeAllVertices {} |
|
private |
◆ m_writeVertexNtuple
bool InDet::InDetBeamSpotFinder::m_writeVertexNtuple |
|
private |
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
std::vector< xAOD::VxType::VertexType > m_vertexTypes
void convertVtxTypeNames()
IInDetBeamSpotTool * cloneTool(int)
unsigned long long eventNumber
size_t nTrackParticles() const
Get the number of tracks associated with this vertex.
std::vector< unsigned int > m_BCIDsToAccept
int min_run(std::vector< BeamSpot::Event > &)
int max_lb(std::vector< BeamSpot::Event > &)
bool m_useFilledBCIDsOnly
std::string find(const std::string &s)
return a remapped string
uint64_t eventNumber() const
The current event's event number.
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainer
void setAlgType(int type)
@ V0Vtx
Vertex from V0 decay.
unsigned int m_maxLBsPerFit
bool passEventSelection(const xAOD::EventInfo &)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< BeamSpot::VrtHolder > vertices
SG::ReadCondHandleKey< BunchCrossingCondData > m_bcDataKey
uint32_t timeStampNSOffset() const
Nanosecond time offset wrt. the time stamp.
unsigned int m_maxEventsPerFit
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
VxType::VertexType vertexType() const
The type of the vertex.
@ NoVtx
Dummy vertex. TrackParticle was not used in vertex fit.
uint32_t runNumber() const
The current event's run number.
virtual void setOwner(IDataHandleHolder *o)=0
ServiceHandle< ITHistSvc > m_thistSvc
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize() override
Override sysInitialize.
void setFitStatus(int status)
POOL::TEvent event(POOL::TEvent::kClassAccess)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
std::map< std::string, double > covMap
::StatusCode StatusCode
StatusCode definition for legacy code.
@ SecVtx
Secondary vertex.
std::map< std::string, double > paramMap
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
unsigned int lumiBlock() const
unsigned long timeStamp() const
EventID * event_ID()
the unique identification of the event.
void tolower(std::string &s)
int min_lb(std::vector< BeamSpot::Event > &)
StatusCode setupBeamSpotTree()
std::vector< BeamSpot::Event > m_eventList
unsigned int bcid() const
vertexNtuple_struct m_root_vtx
xAOD::VxType::VertexType vertexType
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
std::string m_vertexTreeName
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
bool passVertexSelection(const xAOD::Vertex *)
void writeToVertexTree(BeamSpot::Event &, BeamSpot::VrtHolder &)
std::vector< std::vector< BeamSpot::Event > > m_sortedEventList
uint32_t lumiBlock() const
The current event's luminosity block number.
beamSpotNtuple_struct m_beamSpotNtuple
unsigned int m_maxRunsPerFit
unsigned int runNumber() const
BeamSpot::Event readEvent(const xAOD::EventInfo &, const xAOD::VertexContainer &)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
void writeToBeamSpotTree(const IInDetBeamSpotTool *bs, std::vector< BeamSpot::Event > &, std::vector< BeamSpot::VrtHolder > &)
std::string m_fitSortingKey
std::map< BeamSpot::ID, std::vector< BeamSpot::Event > > m_eventMap
void setFitWidth(bool fitWidth)
This class provides general information about an event. Event information is provided by the accessor...
StatusCode initialize(bool used=true)
setEventNumber setTimeStamp bcid
float numberDoF() const
Returns the number of degrees of freedom of the vertex fit as float.
DataObjIDColl m_extendedExtraObjects
float chiSquared() const
Returns the of the vertex fit as float.
Class describing a Vertex.
#define ATH_MSG_WARNING(x)
ToolHandleArray< IInDetBeamSpotTool > m_beamSpotToolList
void setOnlineStatus(bool isOnline)
unsigned int m_minVertexNum
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
uint32_t timeStamp() const
POSIX time in seconds from 1970. January 1st.
int max_run(std::vector< BeamSpot::Event > &)
unsigned long long eventTime
StatusCode setupVertexTree()
AthAlgorithm()
Default constructor:
unsigned long long eventTime_NS
@ ConvVtx
Conversion vertex.
ServiceHandle< IToolSvc > m_toolSvc
xAOD::VxType::VertexType vType
uint32_t bcid() const
The bunch crossing ID of the event.
unsigned int pileup() const
@ NotSpecified
Default value, no explicit type set.
BeamSpotStatusCode m_BeamStatusCode
unsigned long m_secondsPerFit
std::vector< std::string > m_vertexTypeNames
bool eventType(EventType type) const
Check for one particular bitmask value.
double m_maxTransverseError
float actualInteractionsPerCrossing() const
Average interactions per crossing for the current BCID - for in-time pile-up.
bool iequals(const std::string &, const std::string &)