|
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 > &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 |
|
|
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 |
Definition at line 451 of file InDetBeamSpotFinder.cxx.
452 const auto largestLbEvent=std::max_element(eventList.begin(),eventList.end(), lesserLumiBlock);
453 return largestLbEvent->lumiBlock;
◆ max_run()
int InDet::InDetBeamSpotFinder::max_run |
( |
std::vector< BeamSpot::Event > & |
eventList | ) |
|
|
private |
Definition at line 461 of file InDetBeamSpotFinder.cxx.
462 const auto largestRunEvent=std::max_element(eventList.begin(),eventList.end(), lesserRunNumber);
463 return largestRunEvent->runNumber;
◆ min_lb()
int InDet::InDetBeamSpotFinder::min_lb |
( |
std::vector< BeamSpot::Event > & |
eventList | ) |
|
|
private |
Definition at line 446 of file InDetBeamSpotFinder.cxx.
447 const auto smallestLbEvent=std::min_element(eventList.begin(),eventList.end(), lesserLumiBlock);
448 return smallestLbEvent->lumiBlock;
◆ min_run()
int InDet::InDetBeamSpotFinder::min_run |
( |
std::vector< BeamSpot::Event > & |
eventList | ) |
|
|
private |
Definition at line 456 of file InDetBeamSpotFinder.cxx.
457 const auto smallestRunEvent=std::min_element(eventList.begin(),eventList.end(), lesserRunNumber);
458 return smallestRunEvent->runNumber;
◆ 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 237 of file InDetBeamSpotFinder.cxx.
238 if(!vtx) {
return false; }
244 if(vtx->covariancePosition()(0,0) <= 0 || vtx->covariancePosition()(1,1) <= 0 || vtx->covariancePosition()(2,2) <= 0 ) {
return false; }
246 if(vtx->covariancePosition()(0,0) > maxTransverseError2 || vtx->covariancePosition()(1,1) > maxTransverseError2) {
return false;}
◆ performFits()
StatusCode InDet::InDetBeamSpotFinder::performFits |
( |
| ) |
|
|
private |
Definition at line 258 of file InDetBeamSpotFinder.cxx.
260 std::vector<BeamSpot::VrtHolder> verticesToFit;
263 verticesToFit.clear();
264 for(
const auto & thisEvent: eventList){
265 for(
const auto & thisVertex: thisEvent.vertices){
266 if( thisVertex.passed ) {
267 verticesToFit.push_back( thisVertex );
273 IInDetBeamSpotTool * bs(
nullptr);
275 if(!bs){
return StatusCode::FAILURE; }
276 if(not verticesToFit.empty()) { bsFitStatus = bs->fit(verticesToFit); }
298 return StatusCode::SUCCESS;
◆ readEvent()
Definition at line 100 of file InDetBeamSpotFinder.cxx.
106 event.bcid = eventInfo.
bcid();
117 if (
event.lumiBlock != BSeventInfo->
event_ID()->lumi_block())
119 event.lumiBlock = BSeventInfo->
event_ID()->lumi_block();
127 vertex.vxx = vtx->covariancePosition()(0,0);
128 vertex.vxy = vtx->covariancePosition()(0,1);
129 vertex.vyy = vtx->covariancePosition()(1,1);
130 vertex.vzz = vtx->covariancePosition()(2,2);
131 vertex.vertexType = vtx->vertexType();
132 vertex.nTracks = vtx->nTrackParticles();
148 vertex.vxx < 0.)
continue;
149 event.vertices.push_back(
vertex );
◆ renounce()
◆ renounceArray()
◆ setupBeamSpotTree()
StatusCode InDet::InDetBeamSpotFinder::setupBeamSpotTree |
( |
| ) |
|
|
private |
Definition at line 301 of file InDetBeamSpotFinder.cxx.
302 const std::string inRootID =
"/INDETBEAMSPOTFINDER/";
303 const std::string sbs =
"BeamSpotNt";
304 m_root_bs =
new TTree(sbs.data(),
"Beamspot Solutions");
323 std::map<std::string,double> paramMap =
tool->getParamMap();
324 std::map<std::string,double> covMap =
tool->getCovMap();
326 std::string slashD =
"/D";
327 std::string keySlashD;
331 std::string
key = iter->first;
335 keySlashD =
key + slashD;
341 const std::string &
key = iter->first;
345 keySlashD =
key + slashD;
◆ setupVertexTree()
StatusCode InDet::InDetBeamSpotFinder::setupVertexTree |
( |
| ) |
|
|
private |
Definition at line 250 of file InDetBeamSpotFinder.cxx.
251 const std::string inRootID =
"/INDETBEAMSPOTFINDER/";
253 m_root_vrt =
new TTree(svrts.data(),
"Vertices");
254 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 154 of file InDetBeamSpotFinder.cxx.
167 unsigned int nRuns = 0;
168 unsigned int nLBs = 0;
169 unsigned int nFits = 1;
173 currentID = iter->first;
178 || currentID.
bcid() != lastID.
bcid()
182 << currentID.
pileup() <<
" <-- " << lastID.
pileup() <<
"\n\t"
183 << currentID.
bcid() <<
" <-- " << lastID.
bcid() <<
"\n\t"
191 for(
unsigned int i = 0;
i < iter->second.size();
i++){
200 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 386 of file InDetBeamSpotFinder.cxx.
395 unsigned int nVtxAll = 0;
396 unsigned int nVtxPrim = 0;
398 for(
const auto & thisEvent : eventList){
399 const auto & theseVertices=thisEvent.vertices;
400 nVtxAll += theseVertices.size();
401 nVtxPrim+= std::count_if(theseVertices.begin(), theseVertices.end(), isPrimaryVertex);
411 const auto & bsToolParamMap = bs->getParamMap();
412 const auto & bsToolCovMap= bs->getCovMap();
414 const std::string &
key = param.first;
415 const auto & bsToolEquivalent =bsToolParamMap.find(
key);
416 param.second = ( bsToolEquivalent == bsToolParamMap.end() ) ? 0 : bsToolEquivalent->second;
426 const std::string &
key = covariance.first;
427 const auto & bsToolEquivalent = bsToolCovMap.find(
key);
428 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
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
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
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
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.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
BeamSpotStatusCode m_BeamStatusCode
unsigned long m_secondsPerFit
std::vector< std::string > m_vertexTypeNames
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 &)