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 545 of file TrigL2Vertex.cxx.

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

◆ ~TrigL2Vertex()

TrigL2Vertex::~TrigL2Vertex ( )

Definition at line 560 of file TrigL2Vertex.cxx.

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

◆ 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 629 of file TrigL2Vertex.cxx.

630 {
632 }

◆ addNdof()

void TrigL2Vertex::addNdof ( int  n)

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

Definition at line 634 of file TrigL2Vertex.cxx.

635 {
636  m_nDOF+=n;
637 }

◆ chi2()

double TrigL2Vertex::chi2 ( )

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

Definition at line 619 of file TrigL2Vertex.cxx.

620 {
621  return m_chiSquared;
622 }

◆ contains() [1/2]

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

checks whether L2 track is in the vertex

Definition at line 704 of file TrigL2Vertex.cxx.

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

◆ contains() [2/2]

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

checks whether ofline track is in the vertex

Definition at line 720 of file TrigL2Vertex.cxx.

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

◆ getConstraints()

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

lists of all constraints imposed on the vertex

Definition at line 661 of file TrigL2Vertex.cxx.

662 {
663  return m_pvConstraints;
664 }

◆ getMotherTrack()

const TrigInDetTrackFitPar * TrigL2Vertex::getMotherTrack ( )

returns mother particle parameters if m_isMassEstimated() is true

Definition at line 609 of file TrigL2Vertex.cxx.

610 {
611  return m_P;
612 }

◆ getNumberOfTracks()

int TrigL2Vertex::getNumberOfTracks ( )

Definition at line 577 of file TrigL2Vertex.cxx.

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

◆ getParametersVector()

double * TrigL2Vertex::getParametersVector ( )

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

Definition at line 651 of file TrigL2Vertex.cxx.

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

◆ getStatus()

int TrigL2Vertex::getStatus ( )

returns vertex status flag

Definition at line 681 of file TrigL2Vertex.cxx.

682 {
683  return m_nStatus;
684 }

◆ getTracks()

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

lists of tracks in the vertex

Definition at line 656 of file TrigL2Vertex.cxx.

657 {
658  return m_pvTracks;
659 }

◆ isMassEstimated()

bool TrigL2Vertex::isMassEstimated ( )

vertex status

Definition at line 604 of file TrigL2Vertex.cxx.

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

◆ isReadyForFit()

bool TrigL2Vertex::isReadyForFit ( )

vertex status

Definition at line 686 of file TrigL2Vertex.cxx.

687 {
688  return m_ready;
689 }

◆ isVertexFitted()

bool TrigL2Vertex::isVertexFitted ( )

vertex status

Definition at line 599 of file TrigL2Vertex.cxx.

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

◆ mass()

double TrigL2Vertex::mass ( )

returns calculated mass of the vertex

Definition at line 639 of file TrigL2Vertex.cxx.

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

◆ massVariance()

double TrigL2Vertex::massVariance ( )

returns variance of the calculated mass of the vertex

Definition at line 645 of file TrigL2Vertex.cxx.

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

◆ ndof()

int TrigL2Vertex::ndof ( )

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

Definition at line 624 of file TrigL2Vertex.cxx.

625 {
626  return m_nDOF;
627 }

◆ operator=()

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

◆ prepareForFit()

bool TrigL2Vertex::prepareForFit ( )

resets all internal structures + initialization of the covariance

Definition at line 583 of file TrigL2Vertex.cxx.

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

◆ report()

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

Definition at line 691 of file TrigL2Vertex.cxx.

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

◆ reset()

void TrigL2Vertex::reset ( )

resets all internal structures

Definition at line 592 of file TrigL2Vertex.cxx.

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

◆ setMass()

void TrigL2Vertex::setMass ( double  m)

sets calculated mass of the vertex

Definition at line 671 of file TrigL2Vertex.cxx.

672 {
673  m_mass=m;
674 }

◆ setMassVariance()

void TrigL2Vertex::setMassVariance ( double  v)

sets variance of the calculated mass of the vertex

Definition at line 676 of file TrigL2Vertex.cxx.

677 {
678  m_massVar=v;
679 }

◆ setMotherTrack()

void TrigL2Vertex::setMotherTrack ( TrigInDetTrackFitPar P)

sets mother particle parameters after kinematical fitting

Definition at line 614 of file TrigL2Vertex.cxx.

615 {
616  m_P=P;
617 }

◆ setStatus()

void TrigL2Vertex::setStatus ( int  s)

sets vertex status flag

Definition at line 666 of file TrigL2Vertex.cxx.

667 {
668  m_nStatus=s;
669 }

Member Data Documentation

◆ m_chiSquared

double TrigL2Vertex::m_chiSquared
private

Definition at line 189 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 189 of file TrigL2Vertex.h.

◆ m_massVar

double TrigL2Vertex::m_massVar
private

Definition at line 190 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 191 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 193 of file TrigL2Vertex.h.

◆ m_pvConstraints

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

Definition at line 188 of file TrigL2Vertex.h.

◆ m_pvTracks

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

Definition at line 187 of file TrigL2Vertex.h.

◆ m_ready

bool TrigL2Vertex::m_ready
private

Definition at line 194 of file TrigL2Vertex.h.

◆ m_Rk

double TrigL2Vertex::m_Rk[MAX_SIZE_VERT_COVM] {}
private

Definition at line 192 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:193
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:190
DMTest::P
P_v1 P
Definition: P.h:23
skel.it
it
Definition: skel.GENtoEVGEN.py:396
TrigL2Vertex::m_ready
bool m_ready
Definition: TrigL2Vertex.h:194
TrigL2Vertex::m_chiSquared
double m_chiSquared
Definition: TrigL2Vertex.h:189
lumiFormat.i
int i
Definition: lumiFormat.py:85
TrigL2Vertex::m_pvTracks
std::list< TrigVertexFitInputTrack * > * m_pvTracks
Definition: TrigL2Vertex.h:187
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:619
TrigL2Vertex::m_nStatus
int m_nStatus
Definition: TrigL2Vertex.h:191
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:188
TrigL2Vertex::m_Rk
double m_Rk[MAX_SIZE_VERT_COVM]
Definition: TrigL2Vertex.h:192
python.PyAthena.v
v
Definition: PyAthena.py:154
TrigVertexFitInputTrack
Definition: TrigL2Vertex.h:62
TrigL2Vertex::isMassEstimated
bool isMassEstimated()
vertex status
Definition: TrigL2Vertex.cxx:604
TrigL2Vertex::m_mass
double m_mass
Definition: TrigL2Vertex.h:189
TrigL2Vertex::m_nDOF
int m_nDOF
Definition: TrigL2Vertex.h:185
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7