|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #include "GaudiKernel/MsgStream.h"
12 #include "GaudiKernel/ITHistSvc.h"
33 ISvcLocator* pSvcLocator) :
35 m_thistSvc(
"THistSvc",
name),
57 m_ntuple =
new TTree(
"splitVertex",
"Split Vertices");
59 m_ntuple->Branch(
"odd",&
m_oddBranch,
"tracks_odd/I:x_odd/F:y_odd:z_odd:c00_odd:c01_odd:c11_odd:c22_odd");
60 m_ntuple->Branch(
"even",&
m_evenBranch,
"tracks_even/I:x_even/F:y_even:z_even:c00_even:c01_even:c11_even:c22_even");
64 return StatusCode::SUCCESS;
73 return StatusCode::SUCCESS;
108 return StatusCode::FAILURE;
111 int vcsize = ((
int)vxCont->
size() - 1)/2;
113 while ( vxi < vcsize){
117 {
ATH_MSG_DEBUG(
"Found a vertex with no tracks, skipping it");}
120 float xeo = vxContO->
recVertex().covariancePosition()(0,0);
122 float yeo = vxContO->
recVertex().covariancePosition()(1,1);
124 float zeo =vxContO->
recVertex().covariancePosition()(2,2);
125 float cxyo = vxContO->
recVertex().covariancePosition()(0,1);
129 float xee = vxContE->
recVertex().covariancePosition()(0,0);
131 float yee = vxContE->
recVertex().covariancePosition()(1,1);
133 float zee =vxContE->
recVertex().covariancePosition()(2,2);
134 float cxye = vxContE->
recVertex().covariancePosition()(0,1);
155 const EventContext& ctx = Gaudi::Hive::currentContext();
163 return StatusCode::SUCCESS;
StatusCode initialize()
Initialize.
const Trk::RecVertex & recVertex(void) const
Returns a reference to reconstructed vertex.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StatusCode execute()
Execute - on event by event.
ServiceHandle< ITHistSvc > m_thistSvc
get a handle on the Hist/TTree registration service
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
std::vector< Trk::VxTrackAtVertex * > * vxTrackAtVertex(void)
Unconst pointer to the vector of tracks Required by some of the vertex fitters.
StatusCode finalize()
Finalize - delete any memory allocation from the heap.
std::string m_splitVxName
::StatusCode StatusCode
StatusCode definition for legacy code.
const Amg::Vector3D & position() const
return position of vertex
StatusCode makeSplitHist()
vertexBranch m_evenBranch
#define ATH_MSG_WARNING(x)
~InDetVertexSplitterHist()
Destructor - check up memory allocation delete any memory allocation on the heap.
const T * at(size_type n) const
Access an element, as an rvalue.
size_type size() const noexcept
Returns the number of elements in the collection.
InDetVertexSplitterHist(const std::string &name, ISvcLocator *pSvcLocator)
Author: Peter V.