SND@LHC Software
Loading...
Searching...
No Matches
testbeam_unpack Namespace Reference

Functions

 main ()
 

Variables

 IgnoreCommandLineOptions
 
 parser = argparse.ArgumentParser()
 
 required
 
 True
 
 help
 
 default
 
 type
 
 int
 
 action
 
 args = parser.parse_args()
 

Function Documentation

◆ main()

testbeam_unpack.main ( )

Definition at line 9 of file testbeam_unpack.py.

9def main():
10 source = ROOT.ShipTdcSource(args.input)
11
12 source.AddUnpacker(0xc00, ROOT.DriftTubeUnpack(args.charm))
13 source.AddUnpacker(0xb00, ROOT.RPCUnpack())
14 source.AddUnpacker(0x8100, ROOT.ScalerUnpack())
15
16 if args.charm:
17 pixelUnpack = ROOT.PixelUnpack(0x800)
18 source.AddUnpacker(0x800, pixelUnpack)
19 source.AddUnpacker(0x801, pixelUnpack)
20 source.AddUnpacker(0x802, pixelUnpack)
21 source.AddUnpacker(0x900, ROOT.SciFiUnpack(0x900))
22
23 run = ROOT.FairRunOnline(source)
24 run.SetOutputFile(args.output)
25 run.SetAutoFinish(True)
26 run.SetRunId(args.run)
27
28 run.Init()
29
30 run.Run(-1, 0)
31
32
int main()
Definition main.cc:133

Variable Documentation

◆ action

testbeam_unpack.action

Definition at line 41 of file testbeam_unpack.py.

◆ args

testbeam_unpack.args = parser.parse_args()

Definition at line 43 of file testbeam_unpack.py.

◆ default

testbeam_unpack.default

Definition at line 39 of file testbeam_unpack.py.

◆ help

testbeam_unpack.help

Definition at line 36 of file testbeam_unpack.py.

◆ IgnoreCommandLineOptions

testbeam_unpack.IgnoreCommandLineOptions

Definition at line 6 of file testbeam_unpack.py.

◆ int

testbeam_unpack.int

Definition at line 39 of file testbeam_unpack.py.

◆ parser

testbeam_unpack.parser = argparse.ArgumentParser()

Definition at line 34 of file testbeam_unpack.py.

◆ required

testbeam_unpack.required

Definition at line 36 of file testbeam_unpack.py.

◆ True

testbeam_unpack.True

Definition at line 36 of file testbeam_unpack.py.

◆ type

testbeam_unpack.type

Definition at line 39 of file testbeam_unpack.py.