ATLAS Offline Software
Loading...
Searching...
No Matches
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
void reset ()
 resets all internal structures
double chi2 ()
 returns accumulated \(\chi^2\) of the fit
int ndof ()
 returns accumulated number-of-degree-of-freedom of the fit
double mass ()
 returns calculated mass of the vertex
double massVariance ()
 returns variance of the calculated mass of the vertex
void addChi2 (double)
 increments accumulated \(\chi^2\) of the fit
void addNdof (int)
 increments accumulated number-of-degree-of-freedom of the fit
void setMass (double)
 sets calculated mass of the vertex
void setMassVariance (double)
 sets variance of the calculated mass of the vertex
int getNumberOfTracks ()
double * getParametersVector ()
 returns vector of vertex fit parameters: vertex position + refitted track momenta at-perigee (sic !)
bool isVertexFitted ()
 vertex status
bool isMassEstimated ()
 vertex status
bool isReadyForFit ()
 vertex status
const TrigVertexFitInputTrackcontains (const TrigInDetTrack *)
 checks whether L2 track is in the vertex
const TrigVertexFitInputTrackcontains (const Trk::Track *)
 checks whether ofline track is in the vertex
std::list< TrigVertexFitConstraint * > * getConstraints ()
 lists of all constraints imposed on the vertex
std::list< TrigVertexFitInputTrack * > * getTracks ()
 lists of tracks in the vertex
void setStatus (int)
 sets vertex status flag
int getStatus ()
 returns vertex status flag
void setMotherTrack (TrigInDetTrackFitPar *)
 sets mother particle parameters after kinematical fitting
const TrigInDetTrackFitPargetMotherTrack ()
 returns mother particle parameters if m_isMassEstimated() is true
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}
std::list< TrigVertexFitConstraint * > * m_pvConstraints
TrigInDetTrackFitPar * m_P
std::list< TrigVertexFitInputTrack * > * m_pvTracks
double m_chiSquared

◆ ~TrigL2Vertex()

TrigL2Vertex::~TrigL2Vertex ( )

Definition at line 560 of file TrigL2Vertex.cxx.

561{
562 for(std::list<TrigVertexFitInputTrack*>::iterator tIt=m_pvTracks->begin();
563 tIt!=m_pvTracks->end();++tIt)
564 {
565 delete (*tIt);
566 }
567 for(std::list<TrigVertexFitConstraint*>::iterator tIt=m_pvConstraints->begin();
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}
double chi2()
returns accumulated of the fit

◆ 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;
707 for(std::list<TrigVertexFitInputTrack*>::iterator it=m_pvTracks->begin();
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;
723 for(std::list<TrigVertexFitInputTrack*>::iterator it=m_pvTracks->begin();
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}
double m_Rk[MAX_SIZE_VERT_COVM]

◆ 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;}
bool isMassEstimated()
vertex status

◆ 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}
#define endmsg
double m_Gk[MAX_SIZE_VERT_COVM][MAX_SIZE_VERT_COVM]
MsgStream & msg
Definition testRead.cxx:32

◆ 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}
static Double_t P(Double_t *tt, Double_t *par)

◆ 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.

182{};

◆ 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.

192{};

The documentation for this class was generated from the following files: