ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
TrigL2MuonSA::CscSegment Class Reference

#include <CscSegmentMaker.h>

Collaboration diagram for TrigL2MuonSA::CscSegment:

Public Member Functions

 CscSegment ()
 
double x ()
 
double y ()
 
double z ()
 
double px ()
 
double py ()
 
double pz ()
 
double slopeRZ ()
 
double interceptRZ ()
 
double chiSquare ()
 
double chiSquarePhi ()
 
int nHitEta ()
 
void setNHitEta (int nhite)
 
int nHitPhi ()
 
void setNHitPhi (int nhitp)
 
bool isClean ()
 
ReturnCode set (double x, double y, double z, double px, double py, double pz, double chisquare, double chisquare_phi)
 
ReturnCode set (Amg::Vector3D &seg_pos, Amg::Vector3D &seg_dir, double chisquare, double chisquare_phi)
 

Private Attributes

double m_x
 
double m_y
 
double m_z
 
double m_px
 
double m_py
 
double m_pz
 
double m_slopeRZ
 
double m_interceptRZ
 
int m_nhit_eta
 
int m_nhit_phi
 
double m_chisquare
 
double m_chisquare_phi
 

Detailed Description

Definition at line 116 of file CscSegmentMaker.h.

Constructor & Destructor Documentation

◆ CscSegment()

TrigL2MuonSA::CscSegment::CscSegment ( )

Definition at line 666 of file CscSegmentMaker.cxx.

666  {
667 
668  m_x=0.;
669  m_y=0.;
670  m_z=0.;
671  m_px=0.;
672  m_py=0.;
673  m_pz=0.;
674  m_slopeRZ=0.;
675  m_interceptRZ=0.;
676  m_nhit_eta=0;
677  m_nhit_phi=0;
678  m_chisquare=0.;
679  m_chisquare_phi=0.;
680 }

Member Function Documentation

◆ chiSquare()

double TrigL2MuonSA::CscSegment::chiSquare ( )
inline

Definition at line 130 of file CscSegmentMaker.h.

130 { return m_chisquare; }

◆ chiSquarePhi()

double TrigL2MuonSA::CscSegment::chiSquarePhi ( )
inline

Definition at line 131 of file CscSegmentMaker.h.

131 { return m_chisquare_phi; }

◆ interceptRZ()

double TrigL2MuonSA::CscSegment::interceptRZ ( )
inline

Definition at line 129 of file CscSegmentMaker.h.

129 { return m_interceptRZ; }

◆ isClean()

bool TrigL2MuonSA::CscSegment::isClean ( )

Definition at line 722 of file CscSegmentMaker.cxx.

722  {
723 
724  bool eta_clean=false;
725  bool phi_clean=false;
726 
727  if (m_nhit_eta>1&&m_nhit_eta<5) eta_clean = true;
728  if (m_nhit_phi>1&&m_nhit_phi<5) phi_clean = true;
729 
730  return eta_clean && phi_clean;
731 
732 }

◆ nHitEta()

int TrigL2MuonSA::CscSegment::nHitEta ( )
inline

Definition at line 133 of file CscSegmentMaker.h.

133 { return m_nhit_eta; }

◆ nHitPhi()

int TrigL2MuonSA::CscSegment::nHitPhi ( )
inline

Definition at line 135 of file CscSegmentMaker.h.

135 { return m_nhit_phi; }

◆ px()

double TrigL2MuonSA::CscSegment::px ( )
inline

Definition at line 125 of file CscSegmentMaker.h.

125 { return m_px; }

◆ py()

double TrigL2MuonSA::CscSegment::py ( )
inline

Definition at line 126 of file CscSegmentMaker.h.

126 { return m_py; }

◆ pz()

double TrigL2MuonSA::CscSegment::pz ( )
inline

Definition at line 127 of file CscSegmentMaker.h.

127 { return m_pz; }

◆ set() [1/2]

ReturnCode TrigL2MuonSA::CscSegment::set ( Amg::Vector3D seg_pos,
Amg::Vector3D seg_dir,
double  chisquare,
double  chisquare_phi 
)

Definition at line 701 of file CscSegmentMaker.cxx.

702 {
703 
704  m_x = seg_pos(Amg::x);
705  m_y = seg_pos(Amg::y);
706  m_z = seg_pos(Amg::z);
707  m_px = seg_dir(Amg::px);
708  m_py = seg_dir(Amg::py);
709  m_pz = seg_dir(Amg::pz);
710  double r = std::sqrt( x()*x() + y()*y() );
711  m_slopeRZ = ( px()*x()+py()*y() )/( r*pz() );
712  m_interceptRZ = r - slopeRZ()*z();
713  m_chisquare = chisquare;
714  m_chisquare_phi = chisquare_phi;
715 
716  return ReturnCode::SUCCESS;
717 
718 }

◆ set() [2/2]

ReturnCode TrigL2MuonSA::CscSegment::set ( double  x,
double  y,
double  z,
double  px,
double  py,
double  pz,
double  chisquare,
double  chisquare_phi 
)

Definition at line 682 of file CscSegmentMaker.cxx.

683 {
684 
685  m_x=x;
686  m_y=y;
687  m_z=z;
688  m_px=px;
689  m_py=py;
690  m_pz=pz;
691  double r = std::sqrt( x*x + y*y );
692  m_slopeRZ = ( px*x+py*y )/( r*pz );
693  m_interceptRZ = r - slopeRZ()*z;
694  m_chisquare = chisquare;
695  m_chisquare_phi = chisquare_phi;
696 
697  return ReturnCode::SUCCESS;
698 
699 }

◆ setNHitEta()

void TrigL2MuonSA::CscSegment::setNHitEta ( int  nhite)
inline

Definition at line 134 of file CscSegmentMaker.h.

134 { m_nhit_eta = nhite; }

◆ setNHitPhi()

void TrigL2MuonSA::CscSegment::setNHitPhi ( int  nhitp)
inline

Definition at line 136 of file CscSegmentMaker.h.

136 { m_nhit_phi = nhitp; }

◆ slopeRZ()

double TrigL2MuonSA::CscSegment::slopeRZ ( )
inline

Definition at line 128 of file CscSegmentMaker.h.

128 { return m_slopeRZ; }

◆ x()

double TrigL2MuonSA::CscSegment::x ( )
inline

Definition at line 122 of file CscSegmentMaker.h.

122 { return m_x; }

◆ y()

double TrigL2MuonSA::CscSegment::y ( )
inline

Definition at line 123 of file CscSegmentMaker.h.

123 { return m_y; }

◆ z()

double TrigL2MuonSA::CscSegment::z ( )
inline

Definition at line 124 of file CscSegmentMaker.h.

124 { return m_z; }

Member Data Documentation

◆ m_chisquare

double TrigL2MuonSA::CscSegment::m_chisquare
private

Definition at line 146 of file CscSegmentMaker.h.

◆ m_chisquare_phi

double TrigL2MuonSA::CscSegment::m_chisquare_phi
private

Definition at line 147 of file CscSegmentMaker.h.

◆ m_interceptRZ

double TrigL2MuonSA::CscSegment::m_interceptRZ
private

Definition at line 144 of file CscSegmentMaker.h.

◆ m_nhit_eta

int TrigL2MuonSA::CscSegment::m_nhit_eta
private

Definition at line 145 of file CscSegmentMaker.h.

◆ m_nhit_phi

int TrigL2MuonSA::CscSegment::m_nhit_phi
private

Definition at line 145 of file CscSegmentMaker.h.

◆ m_px

double TrigL2MuonSA::CscSegment::m_px
private

Definition at line 143 of file CscSegmentMaker.h.

◆ m_py

double TrigL2MuonSA::CscSegment::m_py
private

Definition at line 143 of file CscSegmentMaker.h.

◆ m_pz

double TrigL2MuonSA::CscSegment::m_pz
private

Definition at line 143 of file CscSegmentMaker.h.

◆ m_slopeRZ

double TrigL2MuonSA::CscSegment::m_slopeRZ
private

Definition at line 144 of file CscSegmentMaker.h.

◆ m_x

double TrigL2MuonSA::CscSegment::m_x
private

Definition at line 143 of file CscSegmentMaker.h.

◆ m_y

double TrigL2MuonSA::CscSegment::m_y
private

Definition at line 143 of file CscSegmentMaker.h.

◆ m_z

double TrigL2MuonSA::CscSegment::m_z
private

Definition at line 143 of file CscSegmentMaker.h.


The documentation for this class was generated from the following files:
beamspotman.r
def r
Definition: beamspotman.py:676
TrigL2MuonSA::ReturnCode::SUCCESS
@ SUCCESS
Definition: CscRegUtils.h:134
TrigL2MuonSA::CscSegment::py
double py()
Definition: CscSegmentMaker.h:126
Amg::y
@ y
Definition: GeoPrimitives.h:35
TrigL2MuonSA::CscSegment::m_slopeRZ
double m_slopeRZ
Definition: CscSegmentMaker.h:144
TrigL2MuonSA::CscSegment::y
double y()
Definition: CscSegmentMaker.h:123
TrigL2MuonSA::CscSegment::m_chisquare
double m_chisquare
Definition: CscSegmentMaker.h:146
TrigL2MuonSA::CscSegment::m_px
double m_px
Definition: CscSegmentMaker.h:143
TrigL2MuonSA::CscSegment::m_nhit_eta
int m_nhit_eta
Definition: CscSegmentMaker.h:145
Amg::z
@ z
Definition: GeoPrimitives.h:36
TrigL2MuonSA::CscSegment::m_interceptRZ
double m_interceptRZ
Definition: CscSegmentMaker.h:144
TrigL2MuonSA::CscSegment::z
double z()
Definition: CscSegmentMaker.h:124
TrigL2MuonSA::CscSegment::m_pz
double m_pz
Definition: CscSegmentMaker.h:143
Amg::x
@ x
Definition: GeoPrimitives.h:34
Amg::px
@ px
Definition: GeoPrimitives.h:38
Amg::pz
@ pz
Definition: GeoPrimitives.h:40
TrigL2MuonSA::CscSegment::m_nhit_phi
int m_nhit_phi
Definition: CscSegmentMaker.h:145
TrigL2MuonSA::CscSegment::pz
double pz()
Definition: CscSegmentMaker.h:127
TrigL2MuonSA::CscSegment::m_y
double m_y
Definition: CscSegmentMaker.h:143
Amg::py
@ py
Definition: GeoPrimitives.h:39
TrigL2MuonSA::CscSegment::m_z
double m_z
Definition: CscSegmentMaker.h:143
TrigL2MuonSA::CscSegment::px
double px()
Definition: CscSegmentMaker.h:125
TrigL2MuonSA::CscSegment::m_x
double m_x
Definition: CscSegmentMaker.h:143
TrigL2MuonSA::CscSegment::m_py
double m_py
Definition: CscSegmentMaker.h:143
TrigL2MuonSA::CscSegment::slopeRZ
double slopeRZ()
Definition: CscSegmentMaker.h:128
TrigL2MuonSA::CscSegment::x
double x()
Definition: CscSegmentMaker.h:122
TrigL2MuonSA::CscSegment::m_chisquare_phi
double m_chisquare_phi
Definition: CscSegmentMaker.h:147