Classes | |
class | InitAlg |
Variables | |
_ROOT = ROOT | |
tuple | conf = ApplicationMgr() |
tuple | pgisvc = PmtGeomInfoSvc("PmtGeomInfoSvc") |
tuple | app = AppMgr() |
tuple | initalg = InitAlg("InitAlg") |
ROOT = _ROOT | |
tuple | pmtSvc = initalg.svc("IPmtGeomInfoSvc","PmtGeomInfoSvc") |
tuple | output_st = raw_input("Choose to plot as contour (default), exact, exact2d: ") |
tuple | file_st = raw_input("ROOT file to read (default:electron.root): ") |
tuple | tree_st = raw_input("Tree file to read (default:DetSimValiTree): ") |
tuple | f = ROOT.TFile(file_st,'READ') |
tuple | tree = f.Get(tree_st) |
list | hist |
list | gr |
list | gr |
list | c = [] |
tuple | meter = float(units.meter) |
tuple | degree = float(units.degree) |
tuple | entries = tree.GetEntries() |
tuple | i = tree.LoadTree(j) |
tuple | nb = tree.GetEntry(j) |
SimHits = tree.SimHitsEntries | |
pmtID = tree.sensID | |
hitx = tree.hitx | |
hity = tree.hity | |
hitz = tree.hitz | |
list | site = pmtID[k] |
tuple | det = ((site<<24)^pmtID[k]) |
tuple | ring = (((site<<24)|(det<<16))^pmtID[k]) |
tuple | col = (((site<<24)|(det<<16)|(ring<<8))^pmtID[k]) |
tuple | pmtGeom = pmtSvc.get(pmtID[k]) |
tuple | adDetector = pmtGeom.parentDetector() |
tuple | pmtDetector = pmtGeom.detectorElement() |
tuple | pmtHit = gbl.Gaudi.XYZPoint(hitx[k],hity[k],hitz[k]) |
tuple | gpHit = pmtDetector.geometry() |
tuple | lpHit = adDetector.geometry() |
tuple | x = lpHit.x() |
tuple | y = lpHit.y() |
tuple | z = lpHit.z() |
tuple | rho = ROOT.TMath.Sqrt(x*x + y*y) |
int | phi = 2 |
tuple | NPoint = int(hist[idx].GetEntries()) |
pmtHits::_ROOT = ROOT [static] |
Definition at line 17 of file pmtHits.py.
tuple pmtHits::conf = ApplicationMgr() [static] |
Definition at line 28 of file pmtHits.py.
tuple pmtHits::pgisvc = PmtGeomInfoSvc("PmtGeomInfoSvc") [static] |
Definition at line 30 of file pmtHits.py.
tuple pmtHits::app = AppMgr() [static] |
Definition at line 53 of file pmtHits.py.
tuple pmtHits::initalg = InitAlg("InitAlg") [static] |
Definition at line 57 of file pmtHits.py.
pmtHits::ROOT = _ROOT [static] |
Definition at line 64 of file pmtHits.py.
tuple pmtHits::pmtSvc = initalg.svc("IPmtGeomInfoSvc","PmtGeomInfoSvc") [static] |
Definition at line 69 of file pmtHits.py.
tuple pmtHits::output_st = raw_input("Choose to plot as contour (default), exact, exact2d: ") [static] |
Definition at line 78 of file pmtHits.py.
tuple pmtHits::file_st = raw_input("ROOT file to read (default:electron.root): ") [static] |
Definition at line 84 of file pmtHits.py.
tuple pmtHits::tree_st = raw_input("Tree file to read (default:DetSimValiTree): ") [static] |
Definition at line 85 of file pmtHits.py.
tuple pmtHits::f = ROOT.TFile(file_st,'READ') [static] |
Definition at line 88 of file pmtHits.py.
tuple pmtHits::tree = f.Get(tree_st) [static] |
Definition at line 89 of file pmtHits.py.
list pmtHits::hist [static] |
Initial value:
[ROOT.TH2F('hist0','PMT Hits: DB site, AD1',24,1,25,8,1,9), ROOT.TH2F('hist1','PMT Hits: DB site, AD2',24,1,25,8,1,9), ROOT.TH2F('hist2','PMT Hits: LA site, AD1',24,1,25,8,1,9), ROOT.TH2F('hist3','PMT Hits: LA site, AD2',24,1,25,8,1,9), ROOT.TH2F('hist4','PMT Hits: far site, AD1',24,1,25,8,1,9), ROOT.TH2F('hist5','PMT Hits: far site, AD2',24,1,25,8,1,9), ROOT.TH2F('hist6','PMT Hits: far site, AD3',24,1,25,8,1,9), ROOT.TH2F('hist7','PMT Hits: far site, AD4',24,1,25,8,1,9)]
Definition at line 99 of file pmtHits.py.
list pmtHits::gr [static] |
Initial value:
[ROOT.TGraph(),ROOT.TGraph(),ROOT.TGraph(),ROOT.TGraph(), ROOT.TGraph(),ROOT.TGraph(),ROOT.TGraph(),ROOT.TGraph()]
Definition at line 109 of file pmtHits.py.
list pmtHits::gr [static] |
Initial value:
[ROOT.TGraph2D(),ROOT.TGraph2D(),ROOT.TGraph2D(),ROOT.TGraph2D(), ROOT.TGraph2D(),ROOT.TGraph2D(),ROOT.TGraph2D(),ROOT.TGraph2D()]
Definition at line 113 of file pmtHits.py.
list pmtHits::c = [] [static] |
Definition at line 126 of file pmtHits.py.
tuple pmtHits::meter = float(units.meter) [static] |
Definition at line 129 of file pmtHits.py.
tuple pmtHits::degree = float(units.degree) [static] |
Definition at line 130 of file pmtHits.py.
tuple pmtHits::entries = tree.GetEntries() [static] |
Definition at line 133 of file pmtHits.py.
tuple pmtHits::i = tree.LoadTree(j) [static] |
Definition at line 136 of file pmtHits.py.
tuple pmtHits::nb = tree.GetEntry(j) [static] |
Definition at line 140 of file pmtHits.py.
pmtHits::SimHits = tree.SimHitsEntries [static] |
Definition at line 144 of file pmtHits.py.
pmtHits::pmtID = tree.sensID [static] |
Definition at line 145 of file pmtHits.py.
pmtHits::hitx = tree.hitx [static] |
Definition at line 146 of file pmtHits.py.
pmtHits::hity = tree.hity [static] |
Definition at line 147 of file pmtHits.py.
pmtHits::hitz = tree.hitz [static] |
Definition at line 148 of file pmtHits.py.
list pmtHits::site = pmtID[k] [static] |
Definition at line 153 of file pmtHits.py.
tuple pmtHits::det = ((site<<24)^pmtID[k]) [static] |
Definition at line 154 of file pmtHits.py.
tuple pmtHits::ring = (((site<<24)|(det<<16))^pmtID[k]) [static] |
Definition at line 155 of file pmtHits.py.
Definition at line 156 of file pmtHits.py.
tuple pmtHits::pmtGeom = pmtSvc.get(pmtID[k]) [static] |
Definition at line 171 of file pmtHits.py.
tuple pmtHits::adDetector = pmtGeom.parentDetector() [static] |
Definition at line 172 of file pmtHits.py.
tuple pmtHits::pmtDetector = pmtGeom.detectorElement() [static] |
Definition at line 173 of file pmtHits.py.
tuple pmtHits::pmtHit = gbl.Gaudi.XYZPoint(hitx[k],hity[k],hitz[k]) [static] |
Definition at line 176 of file pmtHits.py.
tuple pmtHits::gpHit = pmtDetector.geometry() [static] |
Definition at line 177 of file pmtHits.py.
tuple pmtHits::lpHit = adDetector.geometry() [static] |
Definition at line 178 of file pmtHits.py.
tuple pmtHits::x = lpHit.x() [static] |
Definition at line 182 of file pmtHits.py.
tuple pmtHits::y = lpHit.y() [static] |
Definition at line 183 of file pmtHits.py.
tuple pmtHits::z = lpHit.z() [static] |
Definition at line 184 of file pmtHits.py.
tuple pmtHits::rho = ROOT.TMath.Sqrt(x*x + y*y) [static] |
Definition at line 185 of file pmtHits.py.
int pmtHits::phi = 2 [static] |
Definition at line 186 of file pmtHits.py.
tuple pmtHits::NPoint = int(hist[idx].GetEntries()) [static] |
Definition at line 189 of file pmtHits.py.