SND@LHC Software
Loading...
Searching...
No Matches
ShipAna.py File Reference

Go to the source code of this file.

Namespaces

namespace  ShipAna
 

Functions

 ShipAna.VertexError (t1, t2, PosDir, CovMat, scalFac)
 
 ShipAna.dist2InnerWall (X, Y, Z)
 
 ShipAna.isInFiducial (X, Y, Z)
 
 ShipAna.ImpactParameter (point, tPos, tMom)
 
 ShipAna.checkHNLorigin (sTree)
 
 ShipAna.checkFiducialVolume (sTree, tkey, dy)
 
 ShipAna.getPtruthFirst (sTree, mcPartKey)
 
 ShipAna.access2SmearedHits ()
 
 ShipAna.myVertex (t1, t2, PosDir)
 
 ShipAna.RedoVertexing (t1, t2)
 
 ShipAna.fitSingleGauss (x, ba=None, be=None)
 
 ShipAna.match2HNL (p)
 
 ShipAna.ecalCluster2MC (aClus)
 
 ShipAna.makePlots ()
 
 ShipAna.myEventLoop (n)
 
 ShipAna.HNLKinematics ()
 

Variables

 ShipAna.PDG = ROOT.TDatabasePDG.Instance()
 
int ShipAna.chi2CutOff = 4.
 
bool ShipAna.fiducialCut = False
 
int ShipAna.measCutFK = 25
 
int ShipAna.measCutPR = 22
 
int ShipAna.docaCut = 2.
 
 ShipAna.parser = ArgumentParser()
 
 ShipAna.dest
 
 ShipAna.help
 
 ShipAna.required
 
 ShipAna.False
 
 ShipAna.default
 
 ShipAna.type
 
 ShipAna.action
 
 ShipAna.options = parser.parse_args()
 
 ShipAna.eosship = ROOT.gSystem.Getenv("EOSSHIP")
 
 ShipAna.sTree = ROOT.TChain("cbmsim")
 
 ShipAna.eospath = eosship+options.inputFile
 
 ShipAna.f = ROOT.TFile.Open(eospath)
 
 ShipAna.geoFile
 
 ShipAna.fgeo = ROOT.TFile.Open(eospath)
 
 ShipAna.upkl = Unpickler(fgeo)
 
 ShipAna.ShipGeo = upkl.load('ShipGeo')
 
 ShipAna.ecalGeoFile = ShipGeo.ecal.File
 
 ShipAna.dy = ShipGeo.Yheight/u.m
 
 ShipAna.run = ROOT.FairRunSim()
 
 ShipAna.rtdb = run.GetRuntimeDb()
 
 ShipAna.modules = shipDet_conf.configure(run,ShipGeo)
 
 ShipAna.fieldMaker = geomGeant4.addVMCFields(ShipGeo, '', True, withVirtualMC = False)
 
 ShipAna.sGeo = fgeo.FAIRGeom
 
 ShipAna.geoMat = ROOT.genfit.TGeoMaterialInterface()
 
 ShipAna.bfield = ROOT.genfit.FairShipFields()
 
 ShipAna.fM = ROOT.genfit.FieldManager.getInstance()
 
dict ShipAna.volDict = {}
 
int ShipAna.i = 0
 
 ShipAna.veto = shipVeto.Task(sTree)
 
dict ShipAna.vetoDets = {}
 
dict ShipAna.log = {}
 
dict ShipAna.h = {}
 
 ShipAna.top = ROOT.gGeoManager.GetTopVolume()
 
 ShipAna.ecal = None
 
 ShipAna.z_ecal = ecal.GetMatrix().GetTranslation()[2]
 
list ShipAna.caloTasks = []
 
bool ShipAna.calReco = False
 
str ShipAna.ecalGeo = ecalGeoFile+'z'+str(ShipGeo.ecal.z)+".geo"
 
 ShipAna.ecalFiller = ROOT.ecalStructureFiller("ecalFiller", 0,ecalGeo)
 
 ShipAna.ecalStructure = ecalFiller.InitPython(sTree.EcalPointLite)
 
 ShipAna.ecalReconstructed = sTree.EcalReconstructed
 
 ShipAna.ecalDigi = ROOT.ecalDigi("ecalDigi",0)
 
 ShipAna.ecalPrepare = ROOT.ecalPrepare("ecalPrepare",0)
 
 ShipAna.ecalClusterCalib = ROOT.ecalClusterCalibration("ecalClusterCalibration", 0)
 
 ShipAna.ecalCl3PhS = ROOT.TFormula("ecalCl3PhS", "[0]+x*([1]+x*([2]+x*[3]))")
 
 ShipAna.ecalCl3Ph = ROOT.TFormula("ecalCl3Ph", "[0]+x*([1]+x*([2]+x*[3]))+[4]*x*y+[5]*x*y*y")
 
 ShipAna.ecalCl2PhS = ROOT.TFormula("ecalCl2PhS", "[0]+x*([1]+x*([2]+x*[3]))")
 
 ShipAna.ecalCl2Ph = ROOT.TFormula("ecalCl2Ph", "[0]+x*([1]+x*([2]+x*[3]))+[4]*x*y+[5]*x*y*y")
 
 ShipAna.ecalReco = ROOT.ecalReco('ecalReco',0)
 
 ShipAna.ecalMatch = ROOT.ecalMatch('ecalMatch',0)
 
 ShipAna.ecalCalib = ecalClusterCalib.InitPython()
 
 ShipAna.nEvents
 
 ShipAna.hfile = options.inputFile.split(',')[0].replace('_rec','_ana')
 
 ShipAna.tmp = hfile.split('/')