1 |
pam-fi |
1.1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
2 |
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
3 |
|
|
<title>PamCut: CommonDefs.h Source File</title> |
4 |
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"> |
5 |
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css"> |
6 |
|
|
</head><body> |
7 |
|
|
<!-- Generated by Doxygen 1.5.9 --> |
8 |
|
|
<div class="navigation" id="top"> |
9 |
|
|
<div class="tabs"> |
10 |
|
|
<ul> |
11 |
|
|
<li><a href="index.html"><span>Main Page</span></a></li> |
12 |
|
|
<li><a href="annotated.html"><span>Classes</span></a></li> |
13 |
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li> |
14 |
|
|
</ul> |
15 |
|
|
</div> |
16 |
|
|
<div class="tabs"> |
17 |
|
|
<ul> |
18 |
|
|
<li><a href="files.html"><span>File List</span></a></li> |
19 |
|
|
<li><a href="globals.html"><span>File Members</span></a></li> |
20 |
|
|
</ul> |
21 |
|
|
</div> |
22 |
|
|
<h1>CommonDefs.h</h1><a href="CommonDefs_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> |
23 |
|
|
<a name="l00002"></a>00002 <span class="comment"> * CommonDefs.h</span> |
24 |
|
|
<a name="l00003"></a>00003 <span class="comment"> *</span> |
25 |
|
|
<a name="l00004"></a>00004 <span class="comment"> * Created on: 10-mar-2009</span> |
26 |
|
|
<a name="l00005"></a>00005 <span class="comment"> * Author: Nicola Mori</span> |
27 |
|
|
<a name="l00006"></a>00006 <span class="comment"> */</span> |
28 |
|
|
<a name="l00007"></a>00007 |
29 |
|
|
<a name="l00011"></a>00011 <span class="preprocessor">#ifndef COMMONDEFS_H_</span> |
30 |
|
|
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define COMMONDEFS_H_</span> |
31 |
|
|
<a name="l00013"></a>00013 <span class="preprocessor"></span> |
32 |
|
|
<a name="l00015"></a><a class="code" href="CommonDefs_8h.html#c857f4b76ae431837cbf61fd74863b6c">00015</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="CommonDefs_8h.html#c857f4b76ae431837cbf61fd74863b6c" title="The implementations of PamCut::Check() must return this value if the event satisfy...">CUTOK</a> = -1; |
33 |
|
|
<a name="l00016"></a>00016 |
34 |
|
|
<a name="l00021"></a><a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3c">00021</a> <span class="keyword">enum</span> <a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3c">DETECTORCODE</a> { |
35 |
|
|
<a name="l00022"></a><a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3ca35aac3cb4f8be8dfc8c5c471d537511">00022</a> <a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3ca35aac3cb4f8be8dfc8c5c471d537511" title="Code for Tracker.">TRK</a> = 1, |
36 |
|
|
<a name="l00023"></a><a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3c81bd89f7ff2c29f0171c22f7c47c3e9f">00023</a> <a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3c81bd89f7ff2c29f0171c22f7c47c3e9f" title="Code for Calorimeter level2.">CALO</a> = 2, |
37 |
|
|
<a name="l00024"></a><a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3cc18e0fdb830eeb3a7f657a75000744db">00024</a> <a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3cc18e0fdb830eeb3a7f657a75000744db" title="Code for ToF.">TOF</a> = 4, |
38 |
|
|
<a name="l00025"></a><a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3c3e553562ab1f48e96e9d0640526237b8">00025</a> <a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3c3e553562ab1f48e96e9d0640526237b8" title="Code for AntiCoincidence.">AC</a> = 8, |
39 |
|
|
<a name="l00026"></a><a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3c55e5ba1b4d86a4bcc4c1789a8f7b75e5">00026</a> <a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3c55e5ba1b4d86a4bcc4c1789a8f7b75e5" title="Code for Trigger.">TRIG</a> = 16, |
40 |
|
|
<a name="l00027"></a><a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3cad58394ab5225c7978a38cc22fdbfa35">00027</a> <a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3cad58394ab5225c7978a38cc22fdbfa35" title="Code for Orbital Info.">ORB</a> = 32, |
41 |
|
|
<a name="l00028"></a><a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3cb1d5eac4b1dca480c8056eaea7663b7a">00028</a> <a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3cb1d5eac4b1dca480c8056eaea7663b7a" title="Sum of all the above codes.">ALL</a> = 63, |
42 |
|
|
<a name="l00029"></a><a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3ca7f5c1a17fce9b3e67e6e07a5e4c11b6">00029</a> <a class="code" href="CommonDefs_8h.html#0fda80c273d9a34e86f5f4a24f9a7b3ca7f5c1a17fce9b3e67e6e07a5e4c11b6" title="Code for Calorimeter level1.">CALO_L1</a> = 64 |
43 |
|
|
<a name="l00030"></a>00030 }; |
44 |
|
|
<a name="l00031"></a>00031 |
45 |
|
|
<a name="l00035"></a><a class="code" href="CommonDefs_8h.html#e489f30e0fdafca4835125256a44dce0">00035</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="CommonDefs_8h.html#e489f30e0fdafca4835125256a44dce0">TOFNPADLAYER</a>[6] = { 8, 6, 2, 2, 3, 3 }; |
46 |
|
|
<a name="l00036"></a>00036 |
47 |
|
|
<a name="l00044"></a>00044 <span class="keyword">template</span><<span class="keyword">class</span> T> |
48 |
|
|
<a name="l00045"></a><a class="code" href="classSimpleMatrix.html">00045</a> <span class="keyword">class </span><a class="code" href="classSimpleMatrix.html" title="A simple matrix class.">SimpleMatrix</a> { |
49 |
|
|
<a name="l00046"></a>00046 |
50 |
|
|
<a name="l00047"></a>00047 <span class="keyword">public</span>: |
51 |
|
|
<a name="l00058"></a><a class="code" href="classSimpleMatrix.html#9333dc41698c48f4e35d48e27dfe58ef">00058</a> <a class="code" href="classSimpleMatrix.html#9333dc41698c48f4e35d48e27dfe58ef" title="Constructor.">SimpleMatrix</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nRows, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nCols, T elements = T()) : |
52 |
|
|
<a name="l00059"></a>00059 <a class="code" href="classSimpleMatrix.html#ddb323741e9ed620a46436037c8d819a">_matrix</a>(nRows, std::vector<T>(nCols, elements)), <a class="code" href="classSimpleMatrix.html#984429d26745802dcb3e001ff75246bc">_nRows</a>(nRows), <a class="code" href="classSimpleMatrix.html#8ea505fb218d273214c2ae6ef45bbc82">_nCols</a>(nCols) { |
53 |
|
|
<a name="l00060"></a>00060 |
54 |
|
|
<a name="l00061"></a>00061 } |
55 |
|
|
<a name="l00062"></a>00062 |
56 |
|
|
<a name="l00068"></a><a class="code" href="classSimpleMatrix.html#7ee36ef98c7f896e38ec8a8a0c263c39">00068</a> std::vector<T>& <a class="code" href="classSimpleMatrix.html#7ee36ef98c7f896e38ec8a8a0c263c39" title="Standard accessor.">operator[]</a>(<span class="keywordtype">int</span> i) { |
57 |
|
|
<a name="l00069"></a>00069 <span class="keywordflow">return</span> <a class="code" href="classSimpleMatrix.html#ddb323741e9ed620a46436037c8d819a">_matrix</a>[i]; |
58 |
|
|
<a name="l00070"></a>00070 } |
59 |
|
|
<a name="l00071"></a>00071 |
60 |
|
|
<a name="l00076"></a><a class="code" href="classSimpleMatrix.html#5cd169cdc38912c3cfb6d0c60e48e042">00076</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classSimpleMatrix.html#5cd169cdc38912c3cfb6d0c60e48e042" title="Returns the number of rows.">GetNRows</a>() { |
61 |
|
|
<a name="l00077"></a>00077 <span class="keywordflow">return</span> <a class="code" href="classSimpleMatrix.html#984429d26745802dcb3e001ff75246bc">_nRows</a>; |
62 |
|
|
<a name="l00078"></a>00078 } |
63 |
|
|
<a name="l00079"></a>00079 |
64 |
|
|
<a name="l00084"></a><a class="code" href="classSimpleMatrix.html#4f168e5b85899788746355ccad15e2fb">00084</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classSimpleMatrix.html#4f168e5b85899788746355ccad15e2fb" title="Returns the number of columns.">GetNCols</a>() { |
65 |
|
|
<a name="l00085"></a>00085 <span class="keywordflow">return</span> <a class="code" href="classSimpleMatrix.html#8ea505fb218d273214c2ae6ef45bbc82">_nCols</a>; |
66 |
|
|
<a name="l00086"></a>00086 } |
67 |
|
|
<a name="l00087"></a>00087 |
68 |
|
|
<a name="l00088"></a>00088 <span class="keyword">private</span>: |
69 |
|
|
<a name="l00089"></a>00089 |
70 |
|
|
<a name="l00090"></a><a class="code" href="classSimpleMatrix.html#ddb323741e9ed620a46436037c8d819a">00090</a> std::vector<std::vector<T> > <a class="code" href="classSimpleMatrix.html#ddb323741e9ed620a46436037c8d819a">_matrix</a>; |
71 |
|
|
<a name="l00091"></a><a class="code" href="classSimpleMatrix.html#984429d26745802dcb3e001ff75246bc">00091</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classSimpleMatrix.html#984429d26745802dcb3e001ff75246bc">_nRows</a>, <a class="code" href="classSimpleMatrix.html#8ea505fb218d273214c2ae6ef45bbc82">_nCols</a>; |
72 |
|
|
<a name="l00092"></a>00092 }; |
73 |
|
|
<a name="l00093"></a>00093 |
74 |
|
|
<a name="l00094"></a>00094 <span class="preprocessor">#endif </span><span class="comment">/* COMMONDEFS_H_ */</span> |
75 |
|
|
</pre></div></div> |
76 |
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Wed May 27 15:21:27 2009 for PamCut by |
77 |
|
|
<a href="http://www.doxygen.org/index.html"> |
78 |
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> |
79 |
|
|
</body> |
80 |
|
|
</html> |