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.

References resetPerHit().

Member Function Documentation

◆ bookBranches()

void HIPHitMonitorVariables::bookBranches ( )
overridevirtual

Implements HIPMonitorVariables.

Definition at line 62 of file HIPMonitorConfig.cc.

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

Referenced by HIPAlignmentAlgorithm::bookRoot().

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 }
unsigned int m_rawQualityWord
Definition: tree.py:1

◆ fill()

void HIPHitMonitorVariables::fill ( )
overridevirtual

Implements HIPMonitorVariables.

Definition at line 117 of file HIPMonitorConfig.cc.

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

Referenced by HIPAlignmentAlgorithm::run().

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 }
doFill
Definition: cuy.py:575
Definition: tree.py:1

◆ resetPerHit()

void HIPHitMonitorVariables::resetPerHit ( )
inlineprotected

Definition at line 92 of file HIPMonitorConfig.h.

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

Referenced by fill(), and HIPHitMonitorVariables().

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  }
unsigned int m_rawQualityWord

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().