Belle II Software  release-06-02-00
CosmicAnalysis Class Reference
Inheritance diagram for CosmicAnalysis:
Collaboration diagram for CosmicAnalysis:

Public Member Functions

def __init__ (self)
 
def beginRun (self)
 
def event (self)
 
def terminate (self)
 

Public Attributes

 rootfile
 Input root file.
 
 tree_track
 Tree with track data.
 
 tree_DEDX
 Tree with dE/dx data.
 
 trackData
 struct with track data
 
 dedxData
 struct with dE/dx data
 
 TotalNumberOfHits
 Histogram with total number of hits on track.
 
 HitsVsLayer
 Histogram with number of hits vs. More...
 
 HitsVsSensor
 Histogram with number of hits vs. More...
 
 LayerVsSensor
 Histogram with hitted layer vs. More...
 
 PXDClusterSize
 Histogram with PXD cluster size.
 
 Chi2
 Histogram with track Chi2.
 
 NDF
 Histogram with track NDF.
 
 Chi2OverNDF
 Histogram with track Chi2/NDF.
 
 Momentum
 Histogram with track momentum.
 
 ADCCountOverNumberOfHitsInCDC
 Histogram with ADC count vs. More...
 
 ADCCountOverNumberOfHitsInCDCVsMomentum
 Profile with ADC count vs. More...
 
 MomentumVsADCCountOverNumberOfHitsInCDC
 Profile with ADC count vs. More...
 

Detailed Description

A module to analyse residuals in overlaps of ladders.

Definition at line 46 of file validatePhase2Cosmics.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 50 of file validatePhase2Cosmics.py.

50  def __init__(self):
51  """Initialize the module"""
52 
53  super(CosmicAnalysis, self).__init__()
54 
55 
56  self.rootfile = ROOT.TFile('cosmicAnalysis.root', 'recreate')
57 
58  self.tree_track = ROOT.TTree('track', '')
59 
60  self.tree_DEDX = ROOT.TTree('dedx', '')
61 
62  ROOT.gStyle.Reset()
63  ROOT.gStyle.SetCanvasColor(0)
64  ROOT.gStyle.SetStatBorderSize(1)
65  ROOT.gStyle.SetStatColor(0)
66  ROOT.gStyle.SetTitleColor(1)
67  ROOT.gStyle.SetCanvasColor(0)
68  ROOT.gStyle.SetPadColor(0)
69  ROOT.gStyle.SetPadBorderMode(0)
70  ROOT.gStyle.SetCanvasBorderMode(0)
71  ROOT.gStyle.SetFrameBorderMode(0)
72  ROOT.gStyle.SetOptStat(0)
73 
74 
75  self.trackData = TrackData()
76  # Declare tree branches
77  for key in TrackData.__dict__:
78  if '__' not in key:
79  formstring = '/F'
80  if isinstance(self.trackData.__getattribute__(key), int):
81  formstring = '/I'
82  self.tree_track.Branch(key, AddressOf(self.trackData, key), key + formstring)
83 
84  self.dedxData = DEDXData()
85  # Declare tree branches
86  for key in DEDXData.__dict__:
87  if '__' not in key:
88  formstring = '/F'
89  if isinstance(self.dedxData.__getattribute__(key), int):
90  formstring = '/I'
91  self.tree_DEDX.Branch(key, AddressOf(self.dedxData, key), key + formstring)
92 
93  self.TotalNumberOfHits = ROOT.TH1F('TotalNumberOfHits', '', 6, 0.5, 6.5)
94 
95  self.HitsVsLayer = ROOT.TH2F('HitsVsLayer', '', 6, 0.5, 6.5, 6, 0.5, 6.5)
96 
97  self.HitsVsSensor = ROOT.TH2F('HitsVsSensor', '', 6, 0.5, 6.5, 5, 0.5, 5.5)
98 
99  self.LayerVsSensor = ROOT.TH2F('LayerVsSensor', '', 6, 0.5, 6.5, 5, 0.5, 5.5)
100 
101  self.PXDClusterSize = ROOT.TH1F('PXDClusterSize', '', 20, 0.5, 20.5)
102 
103  self.Chi2 = ROOT.TH1F('Chi2', '', 300, 0.0, 500)
104 
105  self.NDF = ROOT.TH1F('NDF', '', 200, 0.0, 200)
106 
107  self.Chi2OverNDF = ROOT.TH1F('Chi2OverNDF', '', 300, 0.0, 5)
108 
109  self.Momentum = ROOT.TH1F('Momentum', '', 500, 0.0, 1000)
110 
111  self.ADCCountOverNumberOfHitsInCDC = ROOT.TH1F('ADCCountOverNumberOfHitsInCDC', '', 200, 0.0, 300)
112 
113  self.ADCCountOverNumberOfHitsInCDCVsMomentum = ROOT.TProfile(
114  'ADCCountOverNumberOfHitsInCDCVsMomentum', '', 200, 0.0, 300, 0.0, 1000)
115 
116  self.MomentumVsADCCountOverNumberOfHitsInCDC = ROOT.TProfile(
117  'MomentumVsADCCountOverNumberOfHitsInCDC', '', 100, 0.0, 100, 0.0, 1000)
118 

Member Function Documentation

◆ beginRun()

def beginRun (   self)
Do nothing

Definition at line 119 of file validatePhase2Cosmics.py.

◆ event()

def event (   self)
 Fill histograms 

Definition at line 122 of file validatePhase2Cosmics.py.

◆ terminate()

def terminate (   self)
Close & write output files

Definition at line 248 of file validatePhase2Cosmics.py.

Member Data Documentation

◆ ADCCountOverNumberOfHitsInCDC

ADCCountOverNumberOfHitsInCDC

Histogram with ADC count vs.

number of hits in CDC

Definition at line 111 of file validatePhase2Cosmics.py.

◆ ADCCountOverNumberOfHitsInCDCVsMomentum

ADCCountOverNumberOfHitsInCDCVsMomentum

Profile with ADC count vs.

number of hits vs. momentum

Definition at line 113 of file validatePhase2Cosmics.py.

◆ HitsVsLayer

HitsVsLayer

Histogram with number of hits vs.

layer

Definition at line 95 of file validatePhase2Cosmics.py.

◆ HitsVsSensor

HitsVsSensor

Histogram with number of hits vs.

sensor

Definition at line 97 of file validatePhase2Cosmics.py.

◆ LayerVsSensor

LayerVsSensor

Histogram with hitted layer vs.

sensor

Definition at line 99 of file validatePhase2Cosmics.py.

◆ MomentumVsADCCountOverNumberOfHitsInCDC

MomentumVsADCCountOverNumberOfHitsInCDC

Profile with ADC count vs.

number of hits

Definition at line 116 of file validatePhase2Cosmics.py.


The documentation for this class was generated from the following file: