ATLAS Offline Software
Loading...
Searching...
No Matches
ConstraintFitInput.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef CONSTRAINTFITINPUT_H
6#define CONSTRAINTFITINPUT_H
8#include "TLorentzVector.h"
9
10namespace ZMassConstraint
11{
13
14
15 public:
16
20
22 unsigned int getNConstituents() const { return m_particles.size(); }
23
25 const TLorentzVector& getConstituentFourVector(int i) const { return m_particles[i]; }
26
28 const AmgMatrix(5,5)& getConstituentCovariance(int i) const { return m_covariances[i]; }
29
31 void getConstituentCovariancePhiThetaP(int i, AmgMatrix(3,3)& outMatrix) const
32 { outMatrix = m_covariances[i].block(2, 2, 3, 3); }
33
35 const AmgMatrix(5,5)& getCovarianceCartesian(int ipart) const { return m_cartCovariances[ipart]; }
36
39 const AmgMatrix(5,5)& covard0z0PhiThetaP,
40 const AmgMatrix(5,5)& covarXYZ,
41 bool isOK)
42 { m_particles.push_back(vector); m_covariances.push_back(covard0z0PhiThetaP);
43 m_cartCovariances.push_back(covarXYZ); if (m_isOK) m_isOK = isOK; }
44
46 inline bool isOK() { return m_isOK; }
47
48 protected:
49 std::vector<TLorentzVector> m_particles;
50 std::vector<AmgMatrix(5,5)> m_covariances;
51 std::vector<AmgMatrix(5,5)> m_cartCovariances;
52 bool m_isOK;
53
54 };
55}
56
57
58#endif
#define AmgMatrix(rows, cols)
std::vector< AmgMatrix(5, 5)> m_covariances
std::vector< TLorentzVector > m_particles
const AmgMatrix(5, 5) &getCovarianceCartesian(int ipart) const
Access to individual to full cartesian covariance (5,5)
const TLorentzVector & getConstituentFourVector(int i) const
Access to individual particle 4-vec.
bool isOK()
Check that covariance matrix is OK.
const AmgMatrix(5, 5) &getConstituentCovariance(int i) const
Access to individual covariance d0z0PhiThetaP (5,5)
std::vector< AmgMatrix(5, 5)> m_cartCovariances
d0z0PhiThetaQoverP
void addConstituent_FourVector_d0z0PhiThetaP(const TLorentzVector &vector, const AmgMatrix(5, 5)&covard0z0PhiThetaP, const AmgMatrix(5, 5)&covarXYZ, bool isOK)
Set the inputs.
void getConstituentCovariancePhiThetaP(int i, AmgMatrix(3, 3)&outMatrix) const
Access to individual covariance PhiThetaP (3,3)
unsigned int getNConstituents() const
Number of particles.
ConstraintFitInput()
Constructor/destructor.