5#ifndef INDET_INDETBEAMSPOTFINDER_H
6#define INDET_INDETBEAMSPOTFINDER_H
14#include "GaudiKernel/ServiceHandle.h"
15#include "GaudiKernel/ToolHandle.h"
16#include "GaudiKernel/ITHistSvc.h"
31class IInDetBeamSpotTool;
41 virtual StatusCode
execute()
override;
42 virtual StatusCode
finalize()
override;
51 {
this,
"BunchCrossingCondDataKey",
"BunchCrossingData" ,
"SG Key of BunchCrossing CDO"};
54 {
this,
"EvtInfo",
"EventInfo",
"EventInfo name"};
56 {
this,
"VertexContainer",
"PrimaryVertices",
"Vertex container name"};
76 std::map<std::string,double>
covMap{};
93 std::map< BeamSpot::ID, std::vector<BeamSpot::Event> >
m_eventMap;
105 bool iequals(
const std::string &,
const std::string &);
106 int min_lb( std::vector<BeamSpot::Event> & );
107 int max_lb( std::vector<BeamSpot::Event> & );
108 int min_run( std::vector<BeamSpot::Event> & );
109 int max_run( std::vector<BeamSpot::Event> & );
Replaces the BunchCrossing AlgTool used in run1/2.
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Class to hold the definition and accessor methods for the beamspot status-word.
std::vector< BeamSpot::Event > m_eventList
virtual StatusCode finalize() override
std::map< BeamSpot::ID, std::vector< BeamSpot::Event > > m_eventMap
ServiceHandle< IToolSvc > m_toolSvc
void writeToBeamSpotTree(const IInDetBeamSpotTool *bs, std::vector< BeamSpot::Event > &, std::vector< BeamSpot::VrtHolder > &)
virtual StatusCode initialize() override
bool iequals(const std::string &, const std::string &)
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainer
bool passVertexSelection(const xAOD::Vertex *)
std::vector< std::string > m_vertexTypeNames
double m_maxTransverseError
int min_run(std::vector< BeamSpot::Event > &)
void convertVtxTypeNames()
void writeToVertexTree(BeamSpot::Event &, BeamSpot::VrtHolder &)
StatusCode setupVertexTree()
std::vector< xAOD::VxType::VertexType > m_vertexTypes
bool m_useFilledBCIDsOnly
std::string m_beamSpotNtupleName
ToolHandleArray< IInDetBeamSpotTool > m_beamSpotToolList
SG::ReadCondHandleKey< BunchCrossingCondData > m_bcDataKey
unsigned long m_secondsPerFit
std::vector< std::vector< BeamSpot::Event > > m_sortedEventList
int max_run(std::vector< BeamSpot::Event > &)
BeamSpot::Event readEvent(const xAOD::EventInfo &, const xAOD::VertexContainer &)
virtual StatusCode execute() override
InDetBeamSpotFinder(const std::string &name, ISvcLocator *pSvcLocator)
ServiceHandle< ITHistSvc > m_thistSvc
int min_lb(std::vector< BeamSpot::Event > &)
std::vector< unsigned int > m_BCIDsToAccept
IInDetBeamSpotTool * cloneTool(int)
std::string m_vertexTreeName
unsigned int m_maxRunsPerFit
int max_lb(std::vector< BeamSpot::Event > &)
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
BeamSpotStatusCode m_BeamStatusCode
unsigned int m_minVertexNum
std::vector< std::vector< BeamSpot::VrtHolder > > m_sortedVertices
bool passEventSelection(const xAOD::EventInfo &)
unsigned int m_maxEventsPerFit
vertexNtuple_struct m_root_vtx
beamSpotNtuple_struct m_beamSpotNtuple
std::string m_fitSortingKey
unsigned int m_maxLBsPerFit
StatusCode setupBeamSpotTree()
Property holding a SG store/key/clid from which a ReadHandle is made.
EventInfo_v1 EventInfo
Definition of the latest event info version.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Vertex_v1 Vertex
Define the latest version of the vertex class.
std::map< std::string, double > paramMap
std::map< std::string, double > covMap
unsigned long long eventTime_NS
unsigned long long eventNumber
xAOD::VxType::VertexType vType
unsigned long long eventTime
void fill(H5::Group &out_file, size_t iterations)