6 #include "boost/shared_ptr.hpp"
8 namespace GaussianStateConversions {
12 typedef boost::shared_ptr< SingleGaussianState<3> > SingleStatePtr;
13 const std::vector<VertexState> components = aState.
components();
15 singleStates.reserve(components.size());
16 for ( std::vector<VertexState>::const_iterator ic=components.begin();
17 ic!=components.end(); ic ++ ) {
18 if ( ic->isValid() ) {
23 ic->error().matrix_new(),
24 ic->weightInMixture()));
25 singleStates.push_back(sgs);
37 std::vector<VertexState> components;
38 components.reserve(singleStates.size());
40 ic!=singleStates.end(); ic++ ) {
44 GlobalError error(cov(0,0),cov(1,0),cov(2,0),cov(1,1),cov(2,1),cov(2,2));
45 components.push_back(
VertexState(position,error,(**ic).weight()));
MultiGaussianState< 3 > multiGaussianStateFromVertex(const VertexState aState)
const SingleStateContainer & components() const
access to components (single Gaussian states)
static int position[TOTALCHAMBERS][3]
VertexState vertexFromMultiGaussianState(const MultiGaussianState< 3 > &multiState)
Mixture of multi-variate gaussian states.
std::vector< SingleStatePtr > SingleStateContainer
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
ROOT::Math::SVector< double, 3 > AlgebraicVector3
std::vector< VertexState > components() const
const double par[8 *NPar][4]