Exemplo n.º 1
0
 def __init__(self, ctx):
     I3Module.__init__(self, ctx)
     self.AddParameter("ShowerCOG", "Input ShowerCOG name", "ShowerCOG")
     self.AddParameter("ShowerPlane", "Input ShowerPlane name",
                       "ShowerPlane")
     self.AddParameter("OutputName", "Output I3Particle name")
     self.AddOutBox("OutBox")
Exemplo n.º 2
0
 def __init__(self, context):
     I3Module.__init__(self, context)
     self.AddParameter("OMKeys", "", [])
     self.AddParameter("OMPositions", "", [])
     self.AddParameter("XCoord", "", 0.)
     self.AddParameter("YCoord", "", 0.)
     self.AddParameter("ZCoord", "", 0.)
     self.AddOutBox("OutBox")
Exemplo n.º 3
0
 def __init__(self, context):
     I3Module.__init__(self, context)
     self.AddParameter('I3RandomService', 'the service', None)
     self.AddParameter('Type', '', I3Particle.ParticleType.EMinus)
     self.AddParameter('Energy', '', 10. * I3Units.TeV)
     self.AddParameter('NEvents', '', 1)
     self.AddParameter('XCoord', '', 0.)
     self.AddParameter('YCoord', '', 0.)
     self.AddParameter('ZCoord', '', 0.)
     self.AddParameter('Zenith', '', -1.)
     self.AddParameter('Azimuth', '', 0.)
     self.AddOutBox('OutBox')
Exemplo n.º 4
0
 def __init__(self, context):
     I3Module.__init__(self, context)
     self.AddParameter("I3RandomService", "the service", None)
     self.AddParameter("Type", "", I3Particle.ParticleType.EMinus)
     self.AddParameter("Energy", "", 10.*I3Units.TeV)
     self.AddParameter("NEvents", "", 1)
     self.AddParameter("XCoord", "", 0.)
     self.AddParameter("YCoord", "", 0.)
     self.AddParameter("ZCoord", "", 0.)
     self.AddParameter("Zenith", "", -1.)
     self.AddParameter("Azimuth", "", 0.)
     self.AddOutBox("OutBox")
Exemplo n.º 5
0
    def __init__(self, context):
        I3Module.__init__(self, context)
        self.AddParameter("I3RandomService", "the service", None)
        self.AddParameter("PhotonSource", "", "CASCADE")
        self.AddParameter("ParticleType", "", I3Particle.ParticleType.EMinus)
        self.AddParameter("Energy", "", 1.*I3Units.GeV)
        self.AddParameter("Zenith", "", 90.*I3Units.degree)
        self.AddParameter("Azimuth", "", 0.*I3Units.degree)
        self.AddParameter("ZCoordinate", "", 0.*I3Units.m)
        self.AddParameter("FlasherWidth", "", 127)
        self.AddParameter("FlasherBrightness", "", 127)
        self.AddParameter("NEvents", "", 100)

        self.AddOutBox("OutBox")        
Exemplo n.º 6
0
 def __init__(self, ctx):
     I3Module.__init__(self, ctx)
     tabulator.__init__(self)
     
     self.AddParameter("Filename", "Output filename", "foo.fits")
     self.AddParameter("Photons", "Name of I3PhotonSeriesMap in the frame", "I3PhotonSeriesMap")
     self.AddParameter("Statistics", "Name of the CLSimStatistics object in the frame", "")
     self.AddParameter("Source", "Name of the source I3Particle in the frame", "")
     self.AddParameter("RandomService", "A random number service", None)
     self.AddParameter("StepLength", "The mean step size for volume sampling", 1*I3Units.m)
     self.AddParameter("TableHeader", "A dictionary of source depth, orientation, etc", empty_header)
     
     nbins=(200, 36, 100, 105)
     self.binedges = [
         numpy.linspace(0, numpy.sqrt(580), nbins[0]+1)**2,
         numpy.linspace(0, 180, nbins[1]+1),
         numpy.linspace(-1, 1, nbins[2]+1),
         numpy.linspace(0, numpy.sqrt(7e3), nbins[3]+1)**2,
     ]
     self.AddParameter("BinEdges", "A list of the bin edges in each dimension", self.binedges)
     
     self.AddOutBox("OutBox")
Exemplo n.º 7
0
 def __init__(self, context):
     I3Module.__init__(self, context)
Exemplo n.º 8
0
 def __init__(self, context):
     I3Module.__init__(self, context)
     self.AddOutBox("OutBox")
Exemplo n.º 9
0
 def __init__(self, context):
     I3Module.__init__(self, context)
     self.AddParameter("Filename", "Name the file to write into.", "foo.h5")
     self.AddParameter("Tablename", "Name of the table.", "/data")
     self.AddOutBox("OutBox")
Exemplo n.º 10
0
 def __init__(self, context):
     I3Module.__init__(self, context)
     self.AddParameter("particle_1", "Name of first particle", "")
     self.AddParameter("particle_2", "Name of second particle", "")
     self.AddOutBox("OutBox2")
Exemplo n.º 11
0
 def __init__(self, context):
     I3Module.__init__(self, context)
     self.AddParameter("ParticleName", "Name of the reco particle", "")
     self.AddOutBox("OutBox")
Exemplo n.º 12
0
 def __init__(self, context):
     I3Module.__init__(self, context)
     self.AddParameter(
         "LLHParamContainer", "Name of LLH value container", ""
     )
     self.AddOutBox("OutBox")
Exemplo n.º 13
0
 def __init__(self, ctx):
     I3Module.__init__(self, ctx)
     self.AddParameter("Streams", "Will ignore a given event stream", [])
     self.AddParameter("SubStreams", "Will ignore a given sub-event stream",
                       [])
     self.AddOutBox("OutBox")
 def __init__(self, context):
     I3Module.__init__(self, context)
     self.AddParameter("values", "key/value pairs to put into the frame", None)
     self.AddOutBox("OutBox")
Exemplo n.º 15
0
 def __init__(self, context):
     I3Module.__init__(self, context)
     self.AddParameter("value", "value of added int", 3)
     self.AddParameter("where", "where to put it", "i3int")
     self.AddOutBox("OutBox")
Exemplo n.º 16
0
 def __init__(self, context):
     I3Module.__init__(self, context)
     self.AddOutBox('OutBox')