CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
CandInfo Struct Reference

#include <RntStructs.h>

Public Member Functions

bool assignIdxChi2List (const mkfit::IdxChi2List &ic2l)
 
 CandInfo (const SimSeedInfo &s, const State &c)
 
 CandInfo ()=default
 
void nan_check ()
 
CandInfooperator= (const CandInfo &)=default
 
void reset_hits_match ()
 

Public Attributes

BinSearch bsn
 
BinSearch bso
 
float dphi_first_match = -9999.0f
 
float dq_first_match = -9999.0f
 
bool has_nans = false
 
std::vector< HitMatchInfohmi
 
int n_all_hits = 0
 
int n_hits_match = 0
 
int n_hits_pass = 0
 
int n_hits_pass_match = 0
 
int ord_first_match = -1
 
PropState ps_max
 
PropState ps_min
 
State s_ctr
 
SimSeedInfo ssi
 

Detailed Description

Definition at line 99 of file RntStructs.h.

Constructor & Destructor Documentation

◆ CandInfo() [1/2]

CandInfo::CandInfo ( const SimSeedInfo s,
const State c 
)
inline

Definition at line 111 of file RntStructs.h.

111 : ssi(s), s_ctr(c) {}
SimSeedInfo ssi
Definition: RntStructs.h:100
State s_ctr
Definition: RntStructs.h:101

◆ CandInfo() [2/2]

CandInfo::CandInfo ( )
default

Member Function Documentation

◆ assignIdxChi2List()

bool CandInfo::assignIdxChi2List ( const mkfit::IdxChi2List ic2l)
inline

Definition at line 120 of file RntStructs.h.

References mkfit::IdxChi2List::hitIdx, and hmi.

Referenced by mkfit::MkFinder::findCandidatesCloneEngine().

120  {
121  for (auto& hm : hmi) {
122  if (hm.hit_index == ic2l.hitIdx) {
123  hm.has_ic2list = true;
124  hm.ic2list = ic2l;
125  return true;
126  }
127  }
128  return false;
129  }
std::vector< HitMatchInfo > hmi
Definition: RntStructs.h:105

◆ nan_check()

void CandInfo::nan_check ( )

Definition at line 43 of file RntStructs.cc.

References bsn, bso, has_nans, BinSearch::nan_check(), ps_max, and ps_min.

43  {
44  has_nans = ngr(ps_min);
45  has_nans |= ngr(ps_max);
46  has_nans |= bso.nan_check();
47  has_nans |= bsn.nan_check();
48 }
PropState ps_min
Definition: RntStructs.h:102
bool has_nans
Definition: RntStructs.h:109
bool nan_check()
Definition: RntStructs.cc:35
PropState ps_max
Definition: RntStructs.h:102
BinSearch bso
Definition: RntStructs.h:103
BinSearch bsn
Definition: RntStructs.h:104

◆ operator=()

CandInfo& CandInfo::operator= ( const CandInfo )
default

◆ reset_hits_match()

void CandInfo::reset_hits_match ( )
inline

Definition at line 114 of file RntStructs.h.

References dphi_first_match, dq_first_match, n_all_hits, n_hits_match, n_hits_pass, n_hits_pass_match, and ord_first_match.

114  {
116  ord_first_match = -1;
117  dphi_first_match = dq_first_match = -9999.0f;
118  }
int n_hits_match
Definition: RntStructs.h:106
float dq_first_match
Definition: RntStructs.h:108
int n_hits_pass_match
Definition: RntStructs.h:106
int n_hits_pass
Definition: RntStructs.h:106
int ord_first_match
Definition: RntStructs.h:107
int n_all_hits
Definition: RntStructs.h:106
float dphi_first_match
Definition: RntStructs.h:108

Member Data Documentation

◆ bsn

BinSearch CandInfo::bsn

Definition at line 104 of file RntStructs.h.

Referenced by nan_check(), and mkfit::MkFinder::selectHitIndicesV2().

◆ bso

BinSearch CandInfo::bso

Definition at line 103 of file RntStructs.h.

Referenced by nan_check(), and mkfit::MkFinder::selectHitIndices().

◆ dphi_first_match

float CandInfo::dphi_first_match = -9999.0f

Definition at line 108 of file RntStructs.h.

Referenced by reset_hits_match(), and mkfit::MkFinder::selectHitIndicesV2().

◆ dq_first_match

float CandInfo::dq_first_match = -9999.0f

Definition at line 108 of file RntStructs.h.

Referenced by reset_hits_match(), and mkfit::MkFinder::selectHitIndicesV2().

◆ has_nans

bool CandInfo::has_nans = false

Definition at line 109 of file RntStructs.h.

Referenced by nan_check().

◆ hmi

std::vector<HitMatchInfo> CandInfo::hmi

Definition at line 105 of file RntStructs.h.

Referenced by assignIdxChi2List(), and mkfit::MkFinder::selectHitIndicesV2().

◆ n_all_hits

int CandInfo::n_all_hits = 0

Definition at line 106 of file RntStructs.h.

Referenced by reset_hits_match(), and mkfit::MkFinder::selectHitIndicesV2().

◆ n_hits_match

int CandInfo::n_hits_match = 0

Definition at line 106 of file RntStructs.h.

Referenced by reset_hits_match(), and mkfit::MkFinder::selectHitIndicesV2().

◆ n_hits_pass

int CandInfo::n_hits_pass = 0

Definition at line 106 of file RntStructs.h.

Referenced by reset_hits_match(), and mkfit::MkFinder::selectHitIndicesV2().

◆ n_hits_pass_match

int CandInfo::n_hits_pass_match = 0

Definition at line 106 of file RntStructs.h.

Referenced by reset_hits_match(), and mkfit::MkFinder::selectHitIndicesV2().

◆ ord_first_match

int CandInfo::ord_first_match = -1

Definition at line 107 of file RntStructs.h.

Referenced by reset_hits_match(), and mkfit::MkFinder::selectHitIndicesV2().

◆ ps_max

PropState CandInfo::ps_max

Definition at line 102 of file RntStructs.h.

Referenced by nan_check(), and mkfit::MkFinder::selectHitIndicesV2().

◆ ps_min

PropState CandInfo::ps_min

Definition at line 102 of file RntStructs.h.

Referenced by nan_check(), and mkfit::MkFinder::selectHitIndicesV2().

◆ s_ctr

State CandInfo::s_ctr

Definition at line 101 of file RntStructs.h.

◆ ssi

SimSeedInfo CandInfo::ssi

Definition at line 100 of file RntStructs.h.