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 670 of file CscSegmentMaker.cxx.

670  {
671 
672  m_x=0.;
673  m_y=0.;
674  m_z=0.;
675  m_px=0.;
676  m_py=0.;
677  m_pz=0.;
678  m_slopeRZ=0.;
679  m_interceptRZ=0.;
680  m_nhit_eta=0;
681  m_nhit_phi=0;
682  m_chisquare=0.;
683  m_chisquare_phi=0.;
684 }

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 726 of file CscSegmentMaker.cxx.

726  {
727 
728  bool eta_clean=false;
729  bool phi_clean=false;
730 
731  if (m_nhit_eta>1&&m_nhit_eta<5) eta_clean = true;
732  if (m_nhit_phi>1&&m_nhit_phi<5) phi_clean = true;
733 
734  return eta_clean && phi_clean;
735 
736 }

◆ 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 705 of file CscSegmentMaker.cxx.

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

◆ 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 686 of file CscSegmentMaker.cxx.

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

◆ 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