Public Member Functions | Public Attributes | List of all members
wirecell.gen.sim.Depos Class Reference
Inheritance diagram for wirecell.gen.sim.Depos:

Public Member Functions

def __init__ (self, fp, ident=0)
 
def t (self)
 
def q (self)
 
def x (self)
 
def y (self)
 
def z (self)
 
def plot (self)
 

Public Attributes

 data
 
 info
 

Detailed Description

Definition at line 180 of file sim.py.

Constructor & Destructor Documentation

def wirecell.gen.sim.Depos.__init__ (   self,
  fp,
  ident = 0 
)

Definition at line 181 of file sim.py.

181  def __init__(self, fp, ident=0):
182  # 7xN: t, q, x, y, z, dlong, dtran,
183  self.data = fp['depo_data_%d'%ident]
184  # 4xN: id, pdg, gen, child
185  self.info = fp['depo_info_%d'%ident]
186 
def __init__(self, fp, ident=0)
Definition: sim.py:181

Member Function Documentation

def wirecell.gen.sim.Depos.plot (   self)

Definition at line 203 of file sim.py.

203  def plot(self):
204  fig = plt.figure()
205  ax10 = fig.add_subplot(223)
206  ax00 = fig.add_subplot(221)
207  ax11 = fig.add_subplot(224, sharey=ax10)
208  ax01 = fig.add_subplot(222, projection='3d')
209 
210 
211  ax00.hist(self.t/units.ms, 100)
212 
213  ax10.scatter(self.x/units.m, self.z/units.m)
214  ax11.scatter(self.y/units.m, self.z/units.m)
215  ax01.scatter(self.x/units.m, self.y/units.m, self.z/units.m)
216 
217  ax00.set_title('depo times [ms]');
218 
219  ax10.set_xlabel('x [m]');
220  ax10.set_ylabel('z [m]');
221  ax11.set_xlabel('y [m]');
222  ax11.set_ylabel('z [m]');
223 
224 
225  # fig, axes = plt.subplots(nrows=2, ncols=2)
226  # axes[0,0].scatter(self.x/units.m, self.y/units.m, sharex=axes[1,0])
227  # axes[1,0].scatter(self.x/units.m, self.z/units.m)
228  # axes[1,1].scatter(self.y/units.m, self.z/units.m, sharey=axes[1,0])
229  # axes[0,1].scatter(self.x/units.m, self.y/units.m, self.z/units.m)
230  return fig,(ax00,ax10,ax01,ax11)
231 
def plot(self)
Definition: sim.py:203
def z(self)
Definition: sim.py:200
def x(self)
Definition: sim.py:194
def t(self)
Definition: sim.py:188
def y(self)
Definition: sim.py:197
def wirecell.gen.sim.Depos.q (   self)

Definition at line 191 of file sim.py.

191  def q(self):
192  return self.data[1]
def q(self)
Definition: sim.py:191
def wirecell.gen.sim.Depos.t (   self)

Definition at line 188 of file sim.py.

188  def t(self):
189  return self.data[0]
def t(self)
Definition: sim.py:188
def wirecell.gen.sim.Depos.x (   self)

Definition at line 194 of file sim.py.

194  def x(self):
195  return self.data[2]
def x(self)
Definition: sim.py:194
def wirecell.gen.sim.Depos.y (   self)

Definition at line 197 of file sim.py.

197  def y(self):
198  return self.data[3]
def y(self)
Definition: sim.py:197
def wirecell.gen.sim.Depos.z (   self)

Definition at line 200 of file sim.py.

200  def z(self):
201  return self.data[4]
202 
def z(self)
Definition: sim.py:200

Member Data Documentation

wirecell.gen.sim.Depos.data

Definition at line 183 of file sim.py.

wirecell.gen.sim.Depos.info

Definition at line 185 of file sim.py.


The documentation for this class was generated from the following file: