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 ()
 
void fill ()
 
 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 56 of file HIPMonitorConfig.h.

Constructor & Destructor Documentation

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

Member Function Documentation

void HIPHitMonitorVariables::bookBranches ( )
virtual

Implements HIPMonitorVariables.

Definition at line 58 of file HIPMonitorConfig.cc.

Referenced by HIPAlignmentAlgorithm::bookRoot().

58  {
59  if (tree!=nullptr){
60  tree->Branch("Id", &m_detId, "Id/i");
61  tree->Branch("sinTheta", &m_sinTheta);
62  tree->Branch("impactAngle", &m_angle);
63  tree->Branch("wt", &m_hitwt);
64  tree->Branch("probPresent", &m_hasHitProb);
65  tree->Branch("probXY", &m_probXY);
66  tree->Branch("probQ", &m_probQ);
67  tree->Branch("qualityWord", &m_rawQualityWord);
68  }
69 }
unsigned int m_rawQualityWord
Definition: tree.py:1
void HIPHitMonitorVariables::fill ( )
virtual

Implements HIPMonitorVariables.

Definition at line 108 of file HIPMonitorConfig.cc.

References cuy::doFill.

Referenced by HIPAlignmentAlgorithm::run().

108  {
109  if (tree==nullptr) return;
110 
111  bool doFill=(maxHitsRcd<0 || nHits<maxHitsRcd);
112 
113  if (doFill){
114  tree->Fill();
115  nHits++;
116  }
117 
118  resetPerHit();
119 }
doFill
Definition: cuy.py:576
Definition: tree.py:1
void HIPHitMonitorVariables::resetPerHit ( )
inlineprotected

Definition at line 69 of file HIPMonitorConfig.h.

Member Data Documentation

float HIPHitMonitorVariables::m_angle

Definition at line 63 of file HIPMonitorConfig.h.

Referenced by HIPAlignmentAlgorithm::run().

align::ID HIPHitMonitorVariables::m_detId

Definition at line 65 of file HIPMonitorConfig.h.

Referenced by HIPAlignmentAlgorithm::run().

bool HIPHitMonitorVariables::m_hasHitProb

Definition at line 62 of file HIPMonitorConfig.h.

Referenced by HIPAlignmentAlgorithm::run().

float HIPHitMonitorVariables::m_hitwt

Definition at line 63 of file HIPMonitorConfig.h.

Referenced by HIPAlignmentAlgorithm::run().

float HIPHitMonitorVariables::m_probQ

Definition at line 63 of file HIPMonitorConfig.h.

Referenced by HIPAlignmentAlgorithm::run().

float HIPHitMonitorVariables::m_probXY

Definition at line 63 of file HIPMonitorConfig.h.

Referenced by HIPAlignmentAlgorithm::run().

unsigned int HIPHitMonitorVariables::m_rawQualityWord

Definition at line 64 of file HIPMonitorConfig.h.

Referenced by HIPAlignmentAlgorithm::run().

float HIPHitMonitorVariables::m_sinTheta

Definition at line 63 of file HIPMonitorConfig.h.

Referenced by HIPAlignmentAlgorithm::run().

const int HIPHitMonitorVariables::maxHitsRcd

Definition at line 59 of file HIPMonitorConfig.h.

int HIPHitMonitorVariables::nHits

Definition at line 60 of file HIPMonitorConfig.h.