CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 ( int  maxHitsRcd_ = -1)
inline

Definition at line 104 of file HIPMonitorConfig.h.

References resetPerHit().

Member Function Documentation

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, m_sinTheta, and HIPMonitorVariables::tree.

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
void HIPHitMonitorVariables::fill ( )
overridevirtual

Implements HIPMonitorVariables.

Definition at line 117 of file HIPMonitorConfig.cc.

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

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
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

float HIPHitMonitorVariables::m_angle

Definition at line 87 of file HIPMonitorConfig.h.

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

align::ID HIPHitMonitorVariables::m_detId

Definition at line 89 of file HIPMonitorConfig.h.

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

bool HIPHitMonitorVariables::m_hasHitProb

Definition at line 86 of file HIPMonitorConfig.h.

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

float HIPHitMonitorVariables::m_hitwt

Definition at line 87 of file HIPMonitorConfig.h.

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

float HIPHitMonitorVariables::m_probQ

Definition at line 87 of file HIPMonitorConfig.h.

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

float HIPHitMonitorVariables::m_probXY

Definition at line 87 of file HIPMonitorConfig.h.

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

unsigned int HIPHitMonitorVariables::m_rawQualityWord

Definition at line 88 of file HIPMonitorConfig.h.

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

float HIPHitMonitorVariables::m_sinTheta

Definition at line 87 of file HIPMonitorConfig.h.

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

const int HIPHitMonitorVariables::maxHitsRcd

Definition at line 83 of file HIPMonitorConfig.h.

Referenced by fill().

int HIPHitMonitorVariables::nHits

Definition at line 84 of file HIPMonitorConfig.h.

Referenced by fill().