-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
517 lines (362 loc) · 20.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
<!DOCTYPE html>
<html lang="en">
<head>
<title>木大</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
<link href="zsneoks.github.com/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="木大 Atom Feed" />
<link href="zsneoks.github.com/feeds/all.rss.xml" type="application/rss+xml" rel="alternate" title="木大 RSS Feed" />
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
</head>
<body id="index" class="home">
<header id="banner" class="body">
<h1><a href=".">木大 </a></h1>
<nav><ul>
<li ><a href="./category/Ganga.html">Ganga</a></li>
<li ><a href="./category/linux.html">linux</a></li>
<li ><a href="./category/关于.html">关于</a></li>
<li ><a href="./category/测试.html">测试</a></li>
<li ><a href="./category/物理.html">物理</a></li>
</ul></nav>
</header><!-- /#banner -->
<aside id="featured" class="body">
<article>
<h1 class="entry-title"><a href="./neutronScatterSim-htmlname.html">中子散射模拟</a></h1>
<footer class="post-info">
<abbr class="published" title="2012-07-05T00:00:00">
四 05 七月 2012
</abbr>
<address class="vcard author">
By <a class="url fn" href="./author/木大.html">木大</a>
</address>
<p>In <a href="./category/物理.html">物理</a>. </p>
<p>tags: <a href="./tag/geant4.html">geant4</a><a href="./tag/物理.html">物理</a><a href="./tag/高能.html">高能</a><a href="./tag/模拟.html">模拟</a></p>
</footer><!-- /.post-info --><h3>几何及其他物理参数</h3>
<p>单位:mm</p>
<p>CsI(Na): 25x25x25</p>
<p>无氧铜: Φ40x45</p>
<p>铝膜: 三面,前,后,上。厚度0.1(?)</p>
<p>石英壳: 内Φ43 , 厚度2 , 高80</p>
<p>外铝壳:外Φ60 <br />
</p>
<p>TOF: Φ120x120 ,10厚度的塑闪包液闪,坐标距离中心探测器1000,角度选取符合5nKeV(n为整数)的核反冲能</p>
<p>淬灭因子:0.2</p>
<p>光产额: 40/KeV</p>
<p>中子能量: 2.5MeV DD, 14MeV DT</p>
<p>记录:PMT收集光子数,TOF中子计数,TOF中子及gamma的飞行时间</p>
<p>附:使用最优的physicsList:LEB.hh中的new LEB</p><p>There are <a href="./neutronScatterSim-htmlname.html#disqus_thread">comments</a>.</p>
</article>
</aside><!-- /#featured -->
<section id="content" class="body">
<h1>Other articles</h1>
<hr />
<ol id="posts-list" class="hfeed">
<li><article class="hentry">
<header>
<h1><a href="./waterPoolSim.html" rel="bookmark"
title="Permalink to 水池模拟">水池模拟</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2012-07-05T00:00:00">
四 05 七月 2012
</abbr>
<address class="vcard author">
By <a class="url fn" href="./author/木大.html">木大</a>
</address>
<p>In <a href="./category/物理.html">物理</a>. </p>
<p>tags: <a href="./tag/geant4.html">geant4</a><a href="./tag/物理.html">物理</a><a href="./tag/高能.html">高能</a><a href="./tag/模拟.html">模拟</a></p>
</footer><!-- /.post-info -->
<p>1.模拟对比:</p>
<p>先按原来几何,只改水池厚为1.8m模拟分析本底情况</p>
<p>再将低温壁和无氧铜改为5cm的聚四氟乙稀模拟计算并进行对比</p>
<p>2.计算中子穿过水池的效果</p>
<p>计算出中子的剩余比例和能谱分布.</p>
<p>3.问题
<ul>
<li><s>使用聚四氟乙稀方案下,水池壁的不锈钢是否有问题</s></p>
<p>水池壁改为水泥,模拟中相当于岩石了</li>
</ul></p>
<a class="readmore" href="./waterPoolSim.html">read more</a>
<p>There are <a href="./waterPoolSim.html#disqus_thread">comments</a>.</p>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="./julyplan-htmlname.html" rel="bookmark"
title="Permalink to 七月模拟">七月模拟</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2012-07-02T00:00:00">
一 02 七月 2012
</abbr>
<address class="vcard author">
By <a class="url fn" href="./author/木大.html">木大</a>
</address>
<p>In <a href="./category/物理.html">物理</a>. </p>
<p>tags: <a href="./tag/geant4.html">geant4</a><a href="./tag/物理.html">物理</a><a href="./tag/高能.html">高能</a><a href="./tag/模拟.html">模拟</a></p>
</footer><!-- /.post-info -->
<h4>1.暗物质vetoPMT分布</h4>
<p>通过改变PMT的分布和个数,研究PMT能收集到的光电子的多少,判断对muon子的探测能力。</p>
<h4>2.<a href="http://zsneoks.github.com/waterPoolSim.html">1.8m水池模拟</a></h4>
<p>水1.8m.另模拟其他gamma本底及放射性中子本底。</p>
<h4>3.alpha粒子的中子产额</h4>
<p>模拟5.6MeV的alpha粒子入射塑料闪烁体的中子产出情况</p>
<h4>4.<a href="http://zsneoks.github.com/neutronScatterSim-htmlname.html">中子散射模拟</a></h4>
<p>模拟记录信息:探测器中每次能量沉积的能量,位置,时间,粒子类型,物理过程</p>
<a class="readmore" href="./julyplan-htmlname.html">read more</a>
<p>There are <a href="./julyplan-htmlname.html#disqus_thread">comments</a>.</p>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="./ApplicationRuntimeHandler-IRuntimeHandler-htmlname.html" rel="bookmark"
title="Permalink to ApplicationRuntimeHandler及IRuntimeHandler文档解析">ApplicationRuntimeHandler及IRuntimeHandler文档解析</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2012-06-28T00:00:00">
四 28 六月 2012
</abbr>
<address class="vcard author">
By <a class="url fn" href="./author/木大.html">木大</a>
</address>
<p>In <a href="./category/Ganga.html">Ganga</a>. </p>
<p>tags: <a href="./tag/ganga.html">ganga</a><a href="./tag/物理.html">物理</a></p>
</footer><!-- /.post-info -->
<h2>ApplicationRuntimeHandlers</h2>
<p>类图如下:</p>
<p><img alt="ApplicationRuntimeHandlers类图" src="static/images/applicationruntimehandlers.png" title="ApplicationRuntimeHandler类图" /></p>
<p>文档解析:</p>
<p>匹配app和backend的handlers机制。</p>
<h3>1.add(self,application,backend,handler)</h3>
<ul>
<li></li>
</ul>
<h3>2.get(self,application,backend)</h3>
<ul>
<li></li>
</ul>
<h3>3.getAllBackends(self,application=None)</h3>
<ul>
<li></li>
</ul>
<h3>4.getAllApplication(self,backend=None)</h3>
<ul>
<li></li>
</ul>
<h2>IRuntimeHandler</h2>
<p>类图如下:</p>
<p><img alt="IRuntimeHandler类图" src="static/images/iruntimehandler.png" /></p>
<p>文档解析:</p>
<p>RuntimeHandler是一个连接器,用来连接app和backend。app的configure方法产生appconfig对象。backend的submit方法使用jobconfig对象。RuntimeHandler将appconfig对象转换成jobconfig对象。该转换是作业提交的一部分。它在prepare方法中实现。</p>
<h3>1.master_prepare(self,app,appmasterconfig)</h3>
<ul>
<li>为作业提交的共性(共享)部分做一些准备</li>
<li>每个作业调用一次(包括要拆分作业或者不拆分的作业)</li>
<li>返回值为backend可理解的jobmasterconfig对象</li>
<li>参数
<ul>
<li>- app: 原始的app对象</li>
<li>- appmaster ...</li></ul></li></ul>
<a class="readmore" href="./ApplicationRuntimeHandler-IRuntimeHandler-htmlname.html">read more</a>
<p>There are <a href="./ApplicationRuntimeHandler-IRuntimeHandler-htmlname.html#disqus_thread">comments</a>.</p>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="./IMerger-ISplitter-htmlname.html" rel="bookmark"
title="Permalink to IMerger及ISplitter文档解析">IMerger及ISplitter文档解析</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2012-06-28T00:00:00">
四 28 六月 2012
</abbr>
<address class="vcard author">
By <a class="url fn" href="./author/木大.html">木大</a>
</address>
<p>In <a href="./category/Ganga.html">Ganga</a>. </p>
<p>tags: <a href="./tag/linux.html">linux</a><a href="./tag/ganga.html">ganga</a><a href="./tag/物理.html">物理</a></p>
</footer><!-- /.post-info -->
<h2>IMerger</h2>
<p>类图如下:</p>
<p><img alt="IMerger类图" src="static/images/imerger.png" title="IMerger类图" /></p>
<p>文档解析:</p>
<h3>1.merger(self,subjobs,sum_outputdir,**option)</h3>
<ul>
<li>合并子作业的输出到sum_outputdir.</li>
<li>options(关键字参数)由具体的子类定义</li>
</ul>
<h3>2.validatedMerge(self.job)</h3>
<h2>ISplitter</h2>
<p>类图如下:</p>
<p><img alt="ISplitter类图" src="static/images/isplitter.png" title="ISplitter类图" /></p>
<p>文档解析:</p>
<h3>1.split(self,job)</h3>
<ul>
<li>根据主作业返回子作业列表</li>
<li>主作业不会被更改</li>
<li>具体子类必须实现本方法</li>
<li>修改子作业的确定部分(如特定的属性)。子作业的其他部分都会相同。只有在schema中声明为"splitable"的属性才可修改。如果app handler不能处理被修改的参数,这个限定应用在app对象上就可以避免前后不一致。</li>
<li>当前的实现中,backend的类型也不可更改。</li>
</ul>
<h3>2.validatedSplit(self,job)</h3>
<ul>
<li>调用split()方法执行作业拆分,并使mutability inveriants有效</li>
<li>如果invariants损坏(或者split()中发生异常),则抛出SplittingError异常 ...</li></ul>
<a class="readmore" href="./IMerger-ISplitter-htmlname.html">read more</a>
<p>There are <a href="./IMerger-ISplitter-htmlname.html#disqus_thread">comments</a>.</p>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="./IApplication-htmlname.html" rel="bookmark"
title="Permalink to IApplication文档解析">IApplication文档解析</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2012-06-25T00:00:00">
一 25 六月 2012
</abbr>
<address class="vcard author">
By <a class="url fn" href="./author/木大.html">木大</a>
</address>
<p>In <a href="./category/Ganga.html">Ganga</a>. </p>
<p>tags: <a href="./tag/ganga.html">ganga</a><a href="./tag/物理.html">物理</a></p>
</footer><!-- /.post-info -->
<p>类图如下:</p>
<p><img alt="Iapp类图" src="static/images/Iapp.png" title="Iapp类图" /></p>
<p>是所有app对象的基类。子类在GPI中给出程序逻辑并从功能上实现配置操作。app配置是作业提交的第一步。</p>
<p>实现配置方法的基本规则:</p>
<p>一般configure()和master_configure()方法会在作业提交的时候调用,所以原则上你</p>
<p>方法文档:</p>
<h3>1.master_configure(self)</h3>
<ul>
<li>配置app的共享(主要)方面。</li>
<li>调用一次,splitting情况下也会调用</li>
<li>返回元组(modified_flag, appconfig)
<ul>
<li> -appconfig(或appextra): 结构任意。由特定app运行时handler处理</li>
<li> -modified_flag: 如果configure()时对象self被改变了则为true</li>
</ul></li>
<li>如果方法未实现则忽略掉</li>
</ul>
<h3>2.config(self,master_aapconfig)</h3>
<ul>
<li>配置app的特定方面。与方法1有类似语义并且返回元组(modified_flag,appconfig).</li>
<li>具体子类必须实现,否则作业提交(submission)会失败。</li>
<li>参数master_configure是方法1的返回</li>
<li>splitting情况下每个子作业对象调用一次。即有多少子作业就会调用多少次。</li>
<li>无spliting情况下则会调用一次.</li>
<li>从Ganga4.0.x开始,方法1被忽略。</li>
</ul>
<h3>3 ...</h3>
<a class="readmore" href="./IApplication-htmlname.html">read more</a>
<p>There are <a href="./IApplication-htmlname.html#disqus_thread">comments</a>.</p>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="./gangadoc-html.html" rel="bookmark"
title="Permalink to Ganga中文">Ganga中文</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2012-06-25T00:00:00">
一 25 六月 2012
</abbr>
<address class="vcard author">
By <a class="url fn" href="./author/木大.html">木大</a>
</address>
<p>In <a href="./category/Ganga.html">Ganga</a>. </p>
<p>tags: <a href="./tag/linux.html">linux</a><a href="./tag/ganga.html">ganga</a><a href="./tag/物理.html">物理</a><a href="./tag/software.html">software</a></p>
</footer><!-- /.post-info -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="Stylesheet" type="text/css" href="static/style.css">
<title>GangaDoc</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h3 id="toc_0.0.1" class="justcenter"><a href="static/gangadoc/index.html">Ganga文档首页入口</a></h3>
<h4 id="toc_0.0.1.1">3 实现</h4>
<blockquote>
这章提供了GANGA中一些重要部分的当前实现细节。
</blockquote>
<h6 id="toc_0.0.1.1.0.1">3.1 组件</h6>
<blockquote>
作业的各个组件以插件类的形式来实现,需用户在配置文件中设为enabled,则会由GANGA在启动时导入。这表示用户仅能看到与其特定工作环境相关的组件。
</blockquote>
<blockquote>
插件维护十分简单,采用了一组内部接口和一个产生代理类的机制。组件类继承自接口类。每个插件类都定义了一个schema,用它描述插件的属性和指定类型(只读/读写/内部)、可见性以及相关的用户友好(user-convinence)的过滤器和语法快捷方式(shortcut)。
</blockquote>
<blockquote>
与用户直接进行交互的不是插件类,而是一个自动产生的代理类,代理类在GPI中可见。代理类只包含插件类中的一些在schema中定义可见的属性以及选出用于导出的方法。插件和代理的层次(level)分离十分灵活。在GPI层插件的实现细节不可见;所有代理类都遵循相同的设计逻辑(例如按值拷贝copy-by-value);持续性自动化,会话等级锁定透明。用这种方法,底层的内部的API就与用户层的GPI分离开。
</blockquote>
<blockquote>
框架不强迫开发者支持app和backend的所有组合,只要支持有意义和有趣的组合即可。为便于管理这些组合,提出了submission handler的概念。sumission handler是app和backend组件的一个连接器。在提交时间,它将app的内部表示(representation)传送给特定backend可以接受的表示(representation ...</blockquote></body></html></!doctype>
<a class="readmore" href="./gangadoc-html.html">read more</a>
<p>There are <a href="./gangadoc-html.html#disqus_thread">comments</a>.</p>
</div><!-- /.entry-content -->
</article></li>
</ol><!-- /#posts-list -->
<p class="paginator">
Page 1 / 4
<a href="./index2.html">»</a>
</p>
</section><!-- /#content -->
<section id="extras" class="body">
<div class="blogroll">
<h2>blogroll</h2>
<ul>
<li><a href="http://docs.notmyidea.org/alexis/pelican/">Pelican</a></li>
<li><a href="http://python.org">Python.org</a></li>
<li><a href="http://jinja.pocoo.org">Jinja2</a></li>
</ul>
</div><!-- /.blogroll -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="zsneoks.github.com/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
<li><a href="zsneoks.github.com/feeds/all.rss.xml" type="application/rss+xml" rel="alternate">rss feed</a></li>
<li><a href="http://twitter.com/zsneoks">twitter</a></li>
<li><a href="http://lastfm.com/user/zsneoks">lastfm</a></li>
<li><a href="http://github.com/zsneoks">github</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
</address><!-- /#about -->
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
</footer><!-- /#contentinfo -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-32881388-1");
pageTracker._trackPageview();
} catch(err) {}</script>
<script type="text/javascript">
var disqus_shortname = 'zsneoks';
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
</body>
</html>