00001 #ifndef EEsmdPlain_h 00002 #define EEsmdPlain_h 00003 /********************************************************************* 00004 * $Id: EEsmdPlain.h,v 1.3 2004/07/10 18:40:54 balewski Exp $ 00005 ********************************************************************* 00006 * Descripion: 00007 * response of single SMD plain to MIPs, 00008 *********************************************************************/ 00009 00010 #include "StEEmcUtil/EEfeeRaw/EEdims.h" 00011 00012 class EEsmdPlain { 00013 private: 00014 enum {oneOff=50}; // add extra dots before & after real smd strips 00015 char dotArray[2*oneOff+MaxSmdStrips+1]; // result of comparison strips to threshold 00016 00017 00018 public: // nothing to hide, utility class 00019 // parameters, fixed : 00020 float thresE; // energy threshold for MIP 00021 char pattXX[MaxSmdStrips]; // MIP pattern with double hit 00022 char pattX[MaxSmdStrips]; // MIP pattern with one hit 00023 int nDot; // offset of first x in the pattern ....xx..... 00024 char uv; // orientaton 00025 00026 // event, cleared : 00027 char *hitOver; // result of comparison strips to threshold 00028 int iStrip[MaxSmdStrips]; // location of first matched strip, counted from 0 00029 int type[MaxSmdStrips]; // 1 for ..x.. or 2 for ..xx.. 00030 int nMatch; // # of matched MIP's 00031 00032 EEsmdPlain(); 00033 void set(float th, int nd, char uv0); 00034 void clear(); // only event part 00035 void print(int x=1); 00036 void scanAdc(float *val, float thr); 00037 void findMipPattern(); 00038 }; 00039 00040 00041 00042 #endif 00043 /***************************************************************** 00044 * $Log: EEsmdPlain.h,v $ 00045 * Revision 1.3 2004/07/10 18:40:54 balewski 00046 * use now first and last 8 strips in 00xx00 00047 * 00048 * Revision 1.2 2004/06/15 20:03:26 balewski 00049 * to match web-descriptio 00050 * 00051 * Revision 1.1 2004/06/12 04:09:22 balewski 00052 * start 00053 * 00054 * 00055 ********************************************************************/ 00056
1.5.9