ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | List of all members
TrigL2Vertex Class Reference

#include <TrigL2Vertex.h>

Collaboration diagram for TrigL2Vertex:

Public Member Functions

 TrigL2Vertex ()
 
 ~TrigL2Vertex ()
 
 TrigL2Vertex (const TrigL2Vertex &)=delete
 
TrigL2Vertexoperator= (const TrigL2Vertex &)=delete
 
bool prepareForFit ()
 resets all internal structures + initialization of the covariance More...
 
void reset ()
 resets all internal structures More...
 
double chi2 ()
 returns accumulated \(\chi^2\) of the fit More...
 
int ndof ()
 returns accumulated number-of-degree-of-freedom of the fit More...
 
double mass ()
 returns calculated mass of the vertex More...
 
double massVariance ()
 returns variance of the calculated mass of the vertex More...
 
void addChi2 (double)
 increments accumulated \(\chi^2\) of the fit More...
 
void addNdof (int)
 increments accumulated number-of-degree-of-freedom of the fit More...
 
void setMass (double)
 sets calculated mass of the vertex More...
 
void setMassVariance (double)
 sets variance of the calculated mass of the vertex More...
 
int getNumberOfTracks ()
 
double * getParametersVector ()
 returns vector of vertex fit parameters: vertex position + refitted track momenta at-perigee (sic !) More...
 
bool isVertexFitted ()
 vertex status More...
 
bool isMassEstimated ()
 vertex status More...
 
bool isReadyForFit ()
 vertex status More...
 
const TrigVertexFitInputTrackcontains (const TrigInDetTrack *)
 checks whether L2 track is in the vertex More...
 
const TrigVertexFitInputTrackcontains (const Trk::Track *)
 checks whether ofline track is in the vertex More...
 
std::list< TrigVertexFitConstraint * > * getConstraints ()
 lists of all constraints imposed on the vertex More...
 
std::list< TrigVertexFitInputTrack * > * getTracks ()
 lists of tracks in the vertex More...
 
void setStatus (int)
 sets vertex status flag More...
 
int getStatus ()
 returns vertex status flag More...
 
void setMotherTrack (TrigInDetTrackFitPar *)
 sets mother particle parameters after kinematical fitting More...
 
const TrigInDetTrackFitPargetMotherTrack ()
 returns mother particle parameters if m_isMassEstimated() is true More...
 
MsgStream & report (MsgStream &) const
 

Public Attributes

double m_Gk [MAX_SIZE_VERT_COVM][MAX_SIZE_VERT_COVM]
 

Private Attributes

int m_nTracks
 
int m_nDOF
 
std::list< TrigVertexFitInputTrack * > * m_pvTracks
 
std::list< TrigVertexFitConstraint * > * m_pvConstraints
 
double m_mass
 
double m_chiSquared
 
double m_massVar
 
int m_nStatus
 
double m_Rk [MAX_SIZE_VERT_COVM]
 
TrigInDetTrackFitParm_P
 
bool m_ready
 

Detailed Description

Definition at line 145 of file TrigL2Vertex.h.

Constructor & Destructor Documentation

◆ TrigL2Vertex() [1/2]

TrigL2Vertex::TrigL2Vertex ( )

Definition at line 544 of file TrigL2Vertex.cxx.

545 {
546  m_pvConstraints=new std::list<TrigVertexFitConstraint*>;
547  m_pvTracks=new std::list<TrigVertexFitInputTrack*>;
548  m_pvConstraints->clear();m_pvTracks->clear();
549  m_nStatus=0;
550  m_nTracks=0;
551  m_P=NULL;
552  m_mass=0.0;
553  m_massVar=0.0;
554  m_chiSquared=0.0;
555  m_nDOF=0;
556  m_ready=false;
557 }

◆ ~TrigL2Vertex()

TrigL2Vertex::~TrigL2Vertex ( )

Definition at line 559 of file TrigL2Vertex.cxx.

560 {
562  tIt!=m_pvTracks->end();++tIt)
563  {
564  delete (*tIt);
565  }
567  tIt!=m_pvConstraints->end();++tIt)
568  {
569  delete (*tIt);
570  }
571  m_pvConstraints->clear();m_pvTracks->clear();
572  delete m_pvTracks;delete m_pvConstraints;
573  if(m_P!=NULL) delete m_P;
574 }

◆ TrigL2Vertex() [2/2]

TrigL2Vertex::TrigL2Vertex ( const TrigL2Vertex )
delete

Member Function Documentation

◆ addChi2()

void TrigL2Vertex::addChi2 ( double  chi2)

increments accumulated \(\chi^2\) of the fit

Definition at line 628 of file TrigL2Vertex.cxx.

629 {
631 }

◆ addNdof()

void TrigL2Vertex::addNdof ( int  n)

increments accumulated number-of-degree-of-freedom of the fit

Definition at line 633 of file TrigL2Vertex.cxx.

634 {
635  m_nDOF+=n;
636 }

◆ chi2()

double TrigL2Vertex::chi2 ( )

returns accumulated \(\chi^2\) of the fit

Definition at line 618 of file TrigL2Vertex.cxx.

619 {
620  return m_chiSquared;
621 }

◆ contains() [1/2]

const TrigVertexFitInputTrack * TrigL2Vertex::contains ( const TrigInDetTrack pT)

checks whether L2 track is in the vertex

Definition at line 703 of file TrigL2Vertex.cxx.

704 {
705  TrigVertexFitInputTrack* pI=NULL;
707  it!=m_pvTracks->end();++it)
708  {
709  if((*it)->getTrackType()!=1) continue;
710  if(pT==(*it)->getTrigTrack())
711  {
712  pI=(*it);break;
713  }
714  }
715  return pI;
716 }

◆ contains() [2/2]

const TrigVertexFitInputTrack * TrigL2Vertex::contains ( const Trk::Track pT)

checks whether ofline track is in the vertex

Definition at line 719 of file TrigL2Vertex.cxx.

720 {
721  TrigVertexFitInputTrack* pI=NULL;
723  it!=m_pvTracks->end();++it)
724  {
725  if((*it)->getTrackType()!=2) continue;
726  if(pT==(*it)->getTrkTrack())
727  {
728  pI=(*it);break;
729  }
730  }
731  return pI;
732 }

◆ getConstraints()

std::list< TrigVertexFitConstraint * > * TrigL2Vertex::getConstraints ( )

lists of all constraints imposed on the vertex

Definition at line 660 of file TrigL2Vertex.cxx.

661 {
662  return m_pvConstraints;
663 }

◆ getMotherTrack()

const TrigInDetTrackFitPar * TrigL2Vertex::getMotherTrack ( )

returns mother particle parameters if m_isMassEstimated() is true

Definition at line 608 of file TrigL2Vertex.cxx.

609 {
610  return m_P;
611 }

◆ getNumberOfTracks()

int TrigL2Vertex::getNumberOfTracks ( )

Definition at line 576 of file TrigL2Vertex.cxx.

577 {
578  m_nTracks=m_pvTracks->size();
579  return m_nTracks;
580 }

◆ getParametersVector()

double * TrigL2Vertex::getParametersVector ( )

returns vector of vertex fit parameters: vertex position + refitted track momenta at-perigee (sic !)

Definition at line 650 of file TrigL2Vertex.cxx.

651 {
652  return &m_Rk[0];
653 }

◆ getStatus()

int TrigL2Vertex::getStatus ( )

returns vertex status flag

Definition at line 680 of file TrigL2Vertex.cxx.

681 {
682  return m_nStatus;
683 }

◆ getTracks()

std::list< TrigVertexFitInputTrack * > * TrigL2Vertex::getTracks ( )

lists of tracks in the vertex

Definition at line 655 of file TrigL2Vertex.cxx.

656 {
657  return m_pvTracks;
658 }

◆ isMassEstimated()

bool TrigL2Vertex::isMassEstimated ( )

vertex status

Definition at line 603 of file TrigL2Vertex.cxx.

604 {
605  return (m_nStatus>1);
606 }

◆ isReadyForFit()

bool TrigL2Vertex::isReadyForFit ( )

vertex status

Definition at line 685 of file TrigL2Vertex.cxx.

686 {
687  return m_ready;
688 }

◆ isVertexFitted()

bool TrigL2Vertex::isVertexFitted ( )

vertex status

Definition at line 598 of file TrigL2Vertex.cxx.

599 {
600  return (m_nStatus>0);
601 }

◆ mass()

double TrigL2Vertex::mass ( )

returns calculated mass of the vertex

Definition at line 638 of file TrigL2Vertex.cxx.

639 {
640  if(isMassEstimated()) return m_mass;
641  else return 0.0;}

◆ massVariance()

double TrigL2Vertex::massVariance ( )

returns variance of the calculated mass of the vertex

Definition at line 644 of file TrigL2Vertex.cxx.

645 {
646  if(isMassEstimated()) return m_massVar;
647  else return 0.0;
648 }

◆ ndof()

int TrigL2Vertex::ndof ( )

returns accumulated number-of-degree-of-freedom of the fit

Definition at line 623 of file TrigL2Vertex.cxx.

624 {
625  return m_nDOF;
626 }

◆ operator=()

TrigL2Vertex& TrigL2Vertex::operator= ( const TrigL2Vertex )
delete

◆ prepareForFit()

bool TrigL2Vertex::prepareForFit ( )

resets all internal structures + initialization of the covariance

Definition at line 582 of file TrigL2Vertex.cxx.

583 {
584  m_nTracks=m_pvTracks->size();
585  m_nDOF=-3;
586  m_chiSquared=0.0;
587  m_ready=true;
588  return true;
589 }

◆ report()

MsgStream & TrigL2Vertex::report ( MsgStream &  msg) const

Definition at line 690 of file TrigL2Vertex.cxx.

691 {
692  const int nSize=3+3*m_pvTracks->size();
693 
694  for(int i=0;i<nSize;i++)
695  {
696  msg<<m_Rk[i]<<" ";
697  for(int j=0;j<nSize;j++) msg<<m_Gk[i][j]<<" ";
698  msg<<endmsg;
699  }
700  return msg;
701 }

◆ reset()

void TrigL2Vertex::reset ( )

resets all internal structures

Definition at line 591 of file TrigL2Vertex.cxx.

592 {
593  memset(&m_Gk[0][0],0,sizeof(m_Gk));
594  m_nDOF=-3;
595  m_chiSquared=0.0;
596 }

◆ setMass()

void TrigL2Vertex::setMass ( double  m)

sets calculated mass of the vertex

Definition at line 670 of file TrigL2Vertex.cxx.

671 {
672  m_mass=m;
673 }

◆ setMassVariance()

void TrigL2Vertex::setMassVariance ( double  v)

sets variance of the calculated mass of the vertex

Definition at line 675 of file TrigL2Vertex.cxx.

676 {
677  m_massVar=v;
678 }

◆ setMotherTrack()

void TrigL2Vertex::setMotherTrack ( TrigInDetTrackFitPar P)

sets mother particle parameters after kinematical fitting

Definition at line 613 of file TrigL2Vertex.cxx.

614 {
615  m_P=P;
616 }

◆ setStatus()

void TrigL2Vertex::setStatus ( int  s)

sets vertex status flag

Definition at line 665 of file TrigL2Vertex.cxx.

666 {
667  m_nStatus=s;
668 }

Member Data Documentation

◆ m_chiSquared

double TrigL2Vertex::m_chiSquared
private

Definition at line 191 of file TrigL2Vertex.h.

◆ m_Gk

double TrigL2Vertex::m_Gk[MAX_SIZE_VERT_COVM][MAX_SIZE_VERT_COVM]

Definition at line 182 of file TrigL2Vertex.h.

◆ m_mass

double TrigL2Vertex::m_mass
private

Definition at line 191 of file TrigL2Vertex.h.

◆ m_massVar

double TrigL2Vertex::m_massVar
private

Definition at line 192 of file TrigL2Vertex.h.

◆ m_nDOF

int TrigL2Vertex::m_nDOF
private

Definition at line 185 of file TrigL2Vertex.h.

◆ m_nStatus

int TrigL2Vertex::m_nStatus
private

Definition at line 193 of file TrigL2Vertex.h.

◆ m_nTracks

int TrigL2Vertex::m_nTracks
private

Definition at line 185 of file TrigL2Vertex.h.

◆ m_P

TrigInDetTrackFitPar* TrigL2Vertex::m_P
private

Definition at line 196 of file TrigL2Vertex.h.

◆ m_pvConstraints

std::list<TrigVertexFitConstraint*>* TrigL2Vertex::m_pvConstraints
private

Definition at line 190 of file TrigL2Vertex.h.

◆ m_pvTracks

std::list<TrigVertexFitInputTrack*>* TrigL2Vertex::m_pvTracks
private

Definition at line 189 of file TrigL2Vertex.h.

◆ m_ready

bool TrigL2Vertex::m_ready
private

Definition at line 197 of file TrigL2Vertex.h.

◆ m_Rk

double TrigL2Vertex::m_Rk[MAX_SIZE_VERT_COVM]
private

Definition at line 195 of file TrigL2Vertex.h.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
TrigL2Vertex::m_P
TrigInDetTrackFitPar * m_P
Definition: TrigL2Vertex.h:196
CalculateHighPtTerm.pT
pT
Definition: ICHEP2016/CalculateHighPtTerm.py:57
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
TrigL2Vertex::m_massVar
double m_massVar
Definition: TrigL2Vertex.h:192
skel.it
it
Definition: skel.GENtoEVGEN.py:423
TrigL2Vertex::m_ready
bool m_ready
Definition: TrigL2Vertex.h:197
TrigL2Vertex::m_chiSquared
double m_chiSquared
Definition: TrigL2Vertex.h:191
lumiFormat.i
int i
Definition: lumiFormat.py:92
TrigL2Vertex::m_pvTracks
std::list< TrigVertexFitInputTrack * > * m_pvTracks
Definition: TrigL2Vertex.h:189
beamspotman.n
n
Definition: beamspotman.py:731
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigL2Vertex::chi2
double chi2()
returns accumulated of the fit
Definition: TrigL2Vertex.cxx:618
TrigL2Vertex::m_nStatus
int m_nStatus
Definition: TrigL2Vertex.h:193
TrigL2Vertex::m_Gk
double m_Gk[MAX_SIZE_VERT_COVM][MAX_SIZE_VERT_COVM]
Definition: TrigL2Vertex.h:182
TrigL2Vertex::m_nTracks
int m_nTracks
Definition: TrigL2Vertex.h:185
TrigL2Vertex::m_pvConstraints
std::list< TrigVertexFitConstraint * > * m_pvConstraints
Definition: TrigL2Vertex.h:190
TrigL2Vertex::m_Rk
double m_Rk[MAX_SIZE_VERT_COVM]
Definition: TrigL2Vertex.h:195
python.PyAthena.v
v
Definition: PyAthena.py:157
TrigVertexFitInputTrack
Definition: TrigL2Vertex.h:62
TrigL2Vertex::isMassEstimated
bool isMassEstimated()
vertex status
Definition: TrigL2Vertex.cxx:603
TrigL2Vertex::m_mass
double m_mass
Definition: TrigL2Vertex.h:191
TrigL2Vertex::m_nDOF
int m_nDOF
Definition: TrigL2Vertex.h:185
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7