RootStreamBuilder package

Submodules

RootStreamBuilder.RootStreamAODMaker module

class RootStreamBuilder.RootStreamAODMaker.RootStreamAODMaker(name, InputEventKey, InputSeedsKey, InputTruthKey, InputCellsKey, InputClusterKey, InputRingerKeys, InputRingerL0Key, InputElectronKey, InputTruthCellsKey, InputTruthClusterKey, InputTruthRingerKeys, InputTruthElectronKey, OutputEventKey=None, OutputTruthKey=None, OutputCellsKey=None, OutputClusterKey=None, OutputRingerKeys=None, OutputRingerL0Key=None, OutputSeedsKey=None, OutputElectronKey=None, OutputTruthCellsKey=None, OutputTruthClusterKey=None, OutputTruthRingerKeys=None, OutputTruthElectronKey=None, OutputLevel=0, NtupleName='CollectionTree', DumpCells=True)[source]

Bases: Cpp

Parameters:
  • InputEventKey (str)

  • InputSeedsKey (str)

  • InputTruthKey (str)

  • InputCellsKey (str)

  • InputClusterKey (str)

  • InputRingerKeys (list)

  • InputRingerL0Key (str)

  • InputElectronKey (str)

  • InputTruthCellsKey (str)

  • InputTruthClusterKey (str)

  • InputTruthRingerKeys (list)

  • InputTruthElectronKey (str)

  • OutputEventKey (str)

  • OutputTruthKey (str)

  • OutputCellsKey (str)

  • OutputClusterKey (str)

  • OutputRingerKeys (list)

  • OutputRingerL0Key (str)

  • OutputSeedsKey (str)

  • OutputElectronKey (str)

  • OutputTruthCellsKey (str)

  • OutputTruthClusterKey (str)

  • OutputTruthRingerKeys (list)

  • OutputTruthElectronKey (str)

  • OutputLevel (int)

  • NtupleName (str)

  • DumpCells (bool)

RootStreamBuilder.RootStreamAODReader module

class RootStreamBuilder.RootStreamAODReader.RootStreamAODReader(name, InputFile, OutputEventKey, OutputTruthKey, OutputClusterKey, OutputRingerKeys, OutputRingerL0Key, OutputSeedsKey, OutputElectronKey, OutputTruthClusterKey, OutputTruthRingerKeys, OutputTruthElectronKey, OutputLevel=0, NtupleName='CollectionTree')[source]

Bases: Cpp

Parameters:
  • InputFile (str)

  • OutputEventKey (str)

  • OutputTruthKey (str)

  • OutputClusterKey (str)

  • OutputRingerKeys (list)

  • OutputRingerL0Key (str)

  • OutputSeedsKey (str)

  • OutputElectronKey (str)

  • OutputTruthClusterKey (str)

  • OutputTruthRingerKeys (list)

  • OutputTruthElectronKey (str)

  • OutputLevel (int)

  • NtupleName (str)

GetEntries()[source]
merge(acc)[source]

RootStreamBuilder.RootStreamESDMaker module

class RootStreamBuilder.RootStreamESDMaker.RootStreamESDMaker(name, InputEventKey, InputTruthKey, InputCellsKey, InputSeedsKey, InputCellsTruthKey, OutputEventKey=None, OutputTruthKey=None, OutputCellsKey=None, OutputSeedsKey=None, OutputCellsTruthKey=None, OutputLevel=0, NtupleName='CollectionTree', EtaWindow=0.4, PhiWindow=0.4)[source]

Bases: Cpp

Parameters:
  • InputEventKey (str)

  • InputTruthKey (str)

  • InputCellsKey (str)

  • InputSeedsKey (str)

  • InputCellsTruthKey (str)

  • OutputEventKey (str)

  • OutputTruthKey (str)

  • OutputCellsKey (str)

  • OutputSeedsKey (str)

  • OutputCellsTruthKey (str)

  • OutputLevel (int)

  • NtupleName (str)

  • EtaWindow (float)

  • PhiWindow (float)

RootStreamBuilder.RootStreamESDReader module

class RootStreamBuilder.RootStreamESDReader.RootStreamESDReader(name, OutputEventKey, OutputTruthKey, OutputCellsKey, OutputCellsTruthKey, OutputSeedsKey, InputFile, OutputLevel=0, NtupleName='CollectionTree')[source]

Bases: Cpp

Parameters:
  • OutputEventKey (str)

  • OutputTruthKey (str)

  • OutputCellsKey (str)

  • OutputCellsTruthKey (str)

  • OutputSeedsKey (str)

  • InputFile (str)

  • OutputLevel (int)

  • NtupleName (str)

GetEntries()[source]
merge(acc)[source]

RootStreamBuilder.RootStreamFlags module

class RootStreamBuilder.RootStreamFlags.RootStreamAODFlags[source]

Bases: EnumStringification

CornerShift = 3
CrossShift = 3
CustomRingsShiftEta: list = [0]
CustomRingsShiftPhi: list = [0]
DoSigmaCut = False
DumpCells = True
SigmaCut = 2.0
StripsAxis = 0
doAsymRings = False
doCornerRings = False
doCrossRings = False
doCustomRings = False
doStdRings = True
doStripsRings = False
class RootStreamBuilder.RootStreamFlags.RootStreamESDFlags[source]

Bases: EnumStringification

EtaWindow = 0.4
PhiWindow = 0.4
class RootStreamBuilder.RootStreamFlags.RootStreamHITFlags[source]

Bases: EnumStringification

EtaWindow = 0.4
OnlyRoI = True
PhiWindow = 0.4

RootStreamBuilder.RootStreamHITMaker module

class RootStreamBuilder.RootStreamHITMaker.RootStreamHITMaker(name, InputEventKey, InputTruthKey, InputHitsKey, InputSeedsKey, OutputEventKey=None, OutputTruthKey=None, OutputHitsKey=None, OutputSeedsKey=None, OutputLevel=0, NtupleName='CollectionTree', OnlyRoI=True, EtaWindow=0.4, PhiWindow=0.4, KeepCells=None)[source]

Bases: Cpp

Parameters:
  • InputEventKey (str)

  • InputTruthKey (str)

  • InputHitsKey (str)

  • InputSeedsKey (str)

  • OutputEventKey (str)

  • OutputTruthKey (str)

  • OutputHitsKey (str)

  • OutputSeedsKey (str)

  • OutputLevel (int)

  • NtupleName (str)

  • OnlyRoI (bool)

  • EtaWindow (float)

  • PhiWindow (float)

  • KeepCells (List[int])

RootStreamBuilder.RootStreamHITReader module

class RootStreamBuilder.RootStreamHITReader.RootStreamHITReader(name, OutputEventKey, OutputTruthKey, OutputHitsKey, OutputSeedsKey, InputFile, OutputLevel=0, NtupleName='CollectionTree')[source]

Bases: Cpp

Parameters:
  • OutputEventKey (str)

  • OutputTruthKey (str)

  • OutputHitsKey (str)

  • OutputSeedsKey (str)

  • InputFile (str)

  • OutputLevel (int)

  • NtupleName (str)

GetEntries()[source]
merge(acc)[source]

RootStreamBuilder.RootStreamKeys module

RootStreamBuilder.RootStreamKeys.recordable(key)[source]

RootStreamBuilder.RootStreamNtupleMaker module

class RootStreamBuilder.RootStreamNtupleMaker.RootStreamNtupleMaker(name, InputEventKey, InputTruthKey, InputSeedsKey, InputClusterKey, InputRingerKeys, InputRingerL0Key, InputTruthClusterKey, InputTruthRingerKeys, InputTruthElectronKey, InputElectronKey, OutputLevel=0, OutputNtupleName='events')[source]

Bases: Cpp

Parameters:
  • InputEventKey (str)

  • InputTruthKey (str)

  • InputSeedsKey (str)

  • InputClusterKey (str)

  • InputRingerKeys (str)

  • InputRingerL0Key (str)

  • InputTruthClusterKey (str)

  • InputTruthRingerKeys (str)

  • InputTruthElectronKey (str)

  • InputElectronKey (str)

  • OutputLevel (int)

  • OutputNtupleName (str)

Module contents

class RootStreamBuilder.RootStreamAODFlags[source]

Bases: EnumStringification

CornerShift = 3
CrossShift = 3
CustomRingsShiftEta: list = [0]
CustomRingsShiftPhi: list = [0]
DoSigmaCut = False
DumpCells = True
SigmaCut = 2.0
StripsAxis = 0
doAsymRings = False
doCornerRings = False
doCrossRings = False
doCustomRings = False
doStdRings = True
doStripsRings = False
class RootStreamBuilder.RootStreamAODMaker(name, InputEventKey, InputSeedsKey, InputTruthKey, InputCellsKey, InputClusterKey, InputRingerKeys, InputRingerL0Key, InputElectronKey, InputTruthCellsKey, InputTruthClusterKey, InputTruthRingerKeys, InputTruthElectronKey, OutputEventKey=None, OutputTruthKey=None, OutputCellsKey=None, OutputClusterKey=None, OutputRingerKeys=None, OutputRingerL0Key=None, OutputSeedsKey=None, OutputElectronKey=None, OutputTruthCellsKey=None, OutputTruthClusterKey=None, OutputTruthRingerKeys=None, OutputTruthElectronKey=None, OutputLevel=0, NtupleName='CollectionTree', DumpCells=True)[source]

Bases: Cpp

Parameters:
  • InputEventKey (str)

  • InputSeedsKey (str)

  • InputTruthKey (str)

  • InputCellsKey (str)

  • InputClusterKey (str)

  • InputRingerKeys (list)

  • InputRingerL0Key (str)

  • InputElectronKey (str)

  • InputTruthCellsKey (str)

  • InputTruthClusterKey (str)

  • InputTruthRingerKeys (list)

  • InputTruthElectronKey (str)

  • OutputEventKey (str)

  • OutputTruthKey (str)

  • OutputCellsKey (str)

  • OutputClusterKey (str)

  • OutputRingerKeys (list)

  • OutputRingerL0Key (str)

  • OutputSeedsKey (str)

  • OutputElectronKey (str)

  • OutputTruthCellsKey (str)

  • OutputTruthClusterKey (str)

  • OutputTruthRingerKeys (list)

  • OutputTruthElectronKey (str)

  • OutputLevel (int)

  • NtupleName (str)

  • DumpCells (bool)

class RootStreamBuilder.RootStreamAODReader(name, InputFile, OutputEventKey, OutputTruthKey, OutputClusterKey, OutputRingerKeys, OutputRingerL0Key, OutputSeedsKey, OutputElectronKey, OutputTruthClusterKey, OutputTruthRingerKeys, OutputTruthElectronKey, OutputLevel=0, NtupleName='CollectionTree')[source]

Bases: Cpp

Parameters:
  • InputFile (str)

  • OutputEventKey (str)

  • OutputTruthKey (str)

  • OutputClusterKey (str)

  • OutputRingerKeys (list)

  • OutputRingerL0Key (str)

  • OutputSeedsKey (str)

  • OutputElectronKey (str)

  • OutputTruthClusterKey (str)

  • OutputTruthRingerKeys (list)

  • OutputTruthElectronKey (str)

  • OutputLevel (int)

  • NtupleName (str)

GetEntries()[source]
merge(acc)[source]
class RootStreamBuilder.RootStreamESDFlags[source]

Bases: EnumStringification

EtaWindow = 0.4
PhiWindow = 0.4
class RootStreamBuilder.RootStreamESDMaker(name, InputEventKey, InputTruthKey, InputCellsKey, InputSeedsKey, InputCellsTruthKey, OutputEventKey=None, OutputTruthKey=None, OutputCellsKey=None, OutputSeedsKey=None, OutputCellsTruthKey=None, OutputLevel=0, NtupleName='CollectionTree', EtaWindow=0.4, PhiWindow=0.4)[source]

Bases: Cpp

Parameters:
  • InputEventKey (str)

  • InputTruthKey (str)

  • InputCellsKey (str)

  • InputSeedsKey (str)

  • InputCellsTruthKey (str)

  • OutputEventKey (str)

  • OutputTruthKey (str)

  • OutputCellsKey (str)

  • OutputSeedsKey (str)

  • OutputCellsTruthKey (str)

  • OutputLevel (int)

  • NtupleName (str)

  • EtaWindow (float)

  • PhiWindow (float)

class RootStreamBuilder.RootStreamESDReader(name, OutputEventKey, OutputTruthKey, OutputCellsKey, OutputCellsTruthKey, OutputSeedsKey, InputFile, OutputLevel=0, NtupleName='CollectionTree')[source]

Bases: Cpp

Parameters:
  • OutputEventKey (str)

  • OutputTruthKey (str)

  • OutputCellsKey (str)

  • OutputCellsTruthKey (str)

  • OutputSeedsKey (str)

  • InputFile (str)

  • OutputLevel (int)

  • NtupleName (str)

GetEntries()[source]
merge(acc)[source]
class RootStreamBuilder.RootStreamHITFlags[source]

Bases: EnumStringification

EtaWindow = 0.4
OnlyRoI = True
PhiWindow = 0.4
class RootStreamBuilder.RootStreamHITMaker(name, InputEventKey, InputTruthKey, InputHitsKey, InputSeedsKey, OutputEventKey=None, OutputTruthKey=None, OutputHitsKey=None, OutputSeedsKey=None, OutputLevel=0, NtupleName='CollectionTree', OnlyRoI=True, EtaWindow=0.4, PhiWindow=0.4, KeepCells=None)[source]

Bases: Cpp

Parameters:
  • InputEventKey (str)

  • InputTruthKey (str)

  • InputHitsKey (str)

  • InputSeedsKey (str)

  • OutputEventKey (str)

  • OutputTruthKey (str)

  • OutputHitsKey (str)

  • OutputSeedsKey (str)

  • OutputLevel (int)

  • NtupleName (str)

  • OnlyRoI (bool)

  • EtaWindow (float)

  • PhiWindow (float)

  • KeepCells (List[int])

class RootStreamBuilder.RootStreamHITReader(name, OutputEventKey, OutputTruthKey, OutputHitsKey, OutputSeedsKey, InputFile, OutputLevel=0, NtupleName='CollectionTree')[source]

Bases: Cpp

Parameters:
  • OutputEventKey (str)

  • OutputTruthKey (str)

  • OutputHitsKey (str)

  • OutputSeedsKey (str)

  • InputFile (str)

  • OutputLevel (int)

  • NtupleName (str)

GetEntries()[source]
merge(acc)[source]
class RootStreamBuilder.RootStreamNtupleMaker(name, InputEventKey, InputTruthKey, InputSeedsKey, InputClusterKey, InputRingerKeys, InputRingerL0Key, InputTruthClusterKey, InputTruthRingerKeys, InputTruthElectronKey, InputElectronKey, OutputLevel=0, OutputNtupleName='events')[source]

Bases: Cpp

Parameters:
  • InputEventKey (str)

  • InputTruthKey (str)

  • InputSeedsKey (str)

  • InputClusterKey (str)

  • InputRingerKeys (str)

  • InputRingerL0Key (str)

  • InputTruthClusterKey (str)

  • InputTruthRingerKeys (str)

  • InputTruthElectronKey (str)

  • InputElectronKey (str)

  • OutputLevel (int)

  • OutputNtupleName (str)

RootStreamBuilder.recordable(key)[source]