RunDescriptor.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * $Source: /cvsroot/leanCP/include/RunDescriptor.h,v $
00003  * $Author: bhatele $
00004  * $Date: 2007/12/05 08:53:31 $
00005  * $Revision: 1.4 $
00006  *****************************************************************************/
00007 
00008 /** \file RunDescriptor.h
00009  *
00010  */
00011 
00012 #ifndef _RunDescriptor_
00013 #define _RunDescriptor_
00014 
00015 ///////////////////////////////////////////////////////////////////////////////////==
00016 ///////////////////////////////////////////////////////////////////////////////////cc
00017 ///////////////////////////////////////////////////////////////////////////////////==
00018 /// Index logic for lines of constant x,y in gspace.
00019 /// Each line is broken up into two parts (0...-X) and (-X...-1)
00020 ///////////////////////////////////////////////////////////////////////////////////==
00021 
00022 struct RunDescriptor {
00023   int x, y, z;   // g-space starting coordinate of the line in g-space
00024   int position;  // starting position of run in the serialized array
00025   int length;    // length of the run (# of pts in this line
00026   int inc;
00027   int nz;
00028   int mychar;
00029   RunDescriptor(int px, int py, int pz, int pposition, int plength, int pinc,int pnz, 
00030                 int inchar) 
00031     :   x(px), y (py), z (pz), position(pposition), length(plength),inc( pinc),
00032         nz(pnz), mychar(inchar){}
00033   RunDescriptor(int px, int py, int pz, int pposition, int plength, int pinc, int pnz) 
00034     :   x(px), y (py), z (pz), position(pposition), length(plength),inc(pinc), nz(pnz)
00035   {mychar=0;}
00036   RunDescriptor(){}
00037   RunDescriptor(int i){}
00038   RunDescriptor(const RunDescriptor &r) {x = r.x; y = r.y; z = r.z;
00039                 position = r.position; length = r.length; inc = r.inc; nz=r.nz;
00040                 mychar=r.mychar;}
00041   void operator=(const RunDescriptor &r) {x = r.x; y = r.y; z = r.z; 
00042                 position = r.position; length = r.length; inc = r.inc; nz=r.nz;
00043                 mychar=r.mychar;
00044   }
00045   void pup(PUP::er &p) {
00046     p|x; 
00047     p|y; 
00048     p|z; 
00049     p|position; 
00050     p|length; 
00051     p|inc;
00052     p|nz;
00053     p|mychar;
00054   }
00055 };
00056 
00057 ///////////////////////////////////////////////////////////////////////////////////==
00058 
00059 #endif
00060 

Generated on Thu Dec 6 18:25:32 2007 for leanCP by  doxygen 1.5.3