CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Protected Member Functions
HIPHitMonitorVariables Class Reference

#include <HIPMonitorConfig.h>

Inheritance diagram for HIPHitMonitorVariables:
HIPMonitorVariables

Public Member Functions

void bookBranches () override
 
void fill () override
 
 HIPHitMonitorVariables (int maxHitsRcd_=-1)
 
- Public Member Functions inherited from HIPMonitorVariables
 HIPMonitorVariables ()
 
void setTree (TTree *tree_)
 
virtual ~HIPMonitorVariables ()
 

Public Attributes

float m_angle
 
align::ID m_detId
 
bool m_hasHitProb
 
float m_hitwt
 
float m_probQ
 
float m_probXY
 
unsigned int m_rawQualityWord
 
float m_sinTheta
 
const int maxHitsRcd
 
int nHits
 

Protected Member Functions

void resetPerHit ()
 

Additional Inherited Members

- Protected Attributes inherited from HIPMonitorVariables
TTree * tree
 

Detailed Description

Definition at line 81 of file HIPMonitorConfig.h.

Constructor & Destructor Documentation

◆ HIPHitMonitorVariables()

HIPHitMonitorVariables::HIPHitMonitorVariables ( int  maxHitsRcd_ = -1)
inline

Definition at line 104 of file HIPMonitorConfig.h.

104  : HIPMonitorVariables(), maxHitsRcd(maxHitsRcd_), nHits(0) {
105  resetPerHit();
106  }

References resetPerHit().

Member Function Documentation

◆ bookBranches()

void HIPHitMonitorVariables::bookBranches ( )
overridevirtual

Implements HIPMonitorVariables.

Definition at line 62 of file HIPMonitorConfig.cc.

62  {
63  if (tree != nullptr) {
64  tree->Branch("Id", &m_detId, "Id/i");
65  tree->Branch("sinTheta", &m_sinTheta);
66  tree->Branch("impactAngle", &m_angle);
67  tree->Branch("wt", &m_hitwt);
68  tree->Branch("probPresent", &m_hasHitProb);
69  tree->Branch("probXY", &m_probXY);
70  tree->Branch("probQ", &m_probQ);
71  tree->Branch("qualityWord", &m_rawQualityWord);
72  }
73 }

References m_angle, m_detId, m_hasHitProb, m_hitwt, m_probQ, m_probXY, m_rawQualityWord, and m_sinTheta.

Referenced by HIPAlignmentAlgorithm::bookRoot().

◆ fill()

void HIPHitMonitorVariables::fill ( )
overridevirtual

Implements HIPMonitorVariables.

Definition at line 117 of file HIPMonitorConfig.cc.

117  {
118  if (tree == nullptr)
119  return;
120 
121  bool doFill = (maxHitsRcd < 0 || nHits < maxHitsRcd);
122 
123  if (doFill) {
124  tree->Fill();
125  nHits++;
126  }
127 
128  resetPerHit();
129 }

References cuy::doFill, maxHitsRcd, nHits, and resetPerHit().

Referenced by HIPAlignmentAlgorithm::run().

◆ resetPerHit()

void HIPHitMonitorVariables::resetPerHit ( )
inlineprotected

Definition at line 92 of file HIPMonitorConfig.h.

92  {
93  m_hasHitProb = false;
94  m_sinTheta = 0;
95  m_hitwt = 1;
96  m_angle = 0;
97  m_probXY = -1;
98  m_probQ = -1;
99  m_rawQualityWord = 9999;
100  m_detId = 0;
101  }

References m_angle, m_detId, m_hasHitProb, m_hitwt, m_probQ, m_probXY, m_rawQualityWord, and m_sinTheta.

Referenced by fill(), and HIPHitMonitorVariables().

Member Data Documentation

◆ m_angle

float HIPHitMonitorVariables::m_angle

Definition at line 87 of file HIPMonitorConfig.h.

Referenced by bookBranches(), resetPerHit(), and HIPAlignmentAlgorithm::run().

◆ m_detId

align::ID HIPHitMonitorVariables::m_detId

Definition at line 89 of file HIPMonitorConfig.h.

Referenced by bookBranches(), resetPerHit(), and HIPAlignmentAlgorithm::run().

◆ m_hasHitProb

bool HIPHitMonitorVariables::m_hasHitProb

Definition at line 86 of file HIPMonitorConfig.h.

Referenced by bookBranches(), resetPerHit(), and HIPAlignmentAlgorithm::run().

◆ m_hitwt

float HIPHitMonitorVariables::m_hitwt

Definition at line 87 of file HIPMonitorConfig.h.

Referenced by bookBranches(), resetPerHit(), and HIPAlignmentAlgorithm::run().

◆ m_probQ

float HIPHitMonitorVariables::m_probQ

Definition at line 87 of file HIPMonitorConfig.h.

Referenced by bookBranches(), resetPerHit(), and HIPAlignmentAlgorithm::run().

◆ m_probXY

float HIPHitMonitorVariables::m_probXY

Definition at line 87 of file HIPMonitorConfig.h.

Referenced by bookBranches(), resetPerHit(), and HIPAlignmentAlgorithm::run().

◆ m_rawQualityWord

unsigned int HIPHitMonitorVariables::m_rawQualityWord

Definition at line 88 of file HIPMonitorConfig.h.

Referenced by bookBranches(), resetPerHit(), and HIPAlignmentAlgorithm::run().

◆ m_sinTheta

float HIPHitMonitorVariables::m_sinTheta

Definition at line 87 of file HIPMonitorConfig.h.

Referenced by bookBranches(), resetPerHit(), and HIPAlignmentAlgorithm::run().

◆ maxHitsRcd

const int HIPHitMonitorVariables::maxHitsRcd

Definition at line 83 of file HIPMonitorConfig.h.

Referenced by fill().

◆ nHits

int HIPHitMonitorVariables::nHits

Definition at line 84 of file HIPMonitorConfig.h.

Referenced by fill().

HIPHitMonitorVariables::m_probQ
float m_probQ
Definition: HIPMonitorConfig.h:87
HIPHitMonitorVariables::maxHitsRcd
const int maxHitsRcd
Definition: HIPMonitorConfig.h:83
tree
Definition: tree.py:1
HIPHitMonitorVariables::m_hitwt
float m_hitwt
Definition: HIPMonitorConfig.h:87
HIPHitMonitorVariables::m_detId
align::ID m_detId
Definition: HIPMonitorConfig.h:89
HIPHitMonitorVariables::m_hasHitProb
bool m_hasHitProb
Definition: HIPMonitorConfig.h:86
HIPHitMonitorVariables::resetPerHit
void resetPerHit()
Definition: HIPMonitorConfig.h:92
HIPHitMonitorVariables::m_angle
float m_angle
Definition: HIPMonitorConfig.h:87
HIPHitMonitorVariables::nHits
int nHits
Definition: HIPMonitorConfig.h:84
HIPHitMonitorVariables::m_sinTheta
float m_sinTheta
Definition: HIPMonitorConfig.h:87
HIPMonitorVariables::HIPMonitorVariables
HIPMonitorVariables()
Definition: HIPMonitorConfig.h:15
cuy.doFill
doFill
Definition: cuy.py:576
HIPHitMonitorVariables::m_rawQualityWord
unsigned int m_rawQualityWord
Definition: HIPMonitorConfig.h:88
HIPHitMonitorVariables::m_probXY
float m_probXY
Definition: HIPMonitorConfig.h:87