StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEsmdPlain.h
1 #ifndef EEsmdPlain_h
2 #define EEsmdPlain_h
3 /*********************************************************************
4  * $Id: EEsmdPlain.h,v 1.3 2004/07/10 18:40:54 balewski Exp $
5  *********************************************************************
6  * Descripion:
7  * response of single SMD plain to MIPs,
8  *********************************************************************/
9 
10 #include "StEEmcUtil/EEfeeRaw/EEdims.h"
11 
12 class EEsmdPlain {
13  private:
14  enum {oneOff=50}; // add extra dots before & after real smd strips
15  char dotArray[2*oneOff+MaxSmdStrips+1]; // result of comparison strips to threshold
16 
17 
18  public: // nothing to hide, utility class
19  // parameters, fixed :
20  float thresE; // energy threshold for MIP
21  char pattXX[MaxSmdStrips]; // MIP pattern with double hit
22  char pattX[MaxSmdStrips]; // MIP pattern with one hit
23  int nDot; // offset of first x in the pattern ....xx.....
24  char uv; // orientaton
25 
26  // event, cleared :
27  char *hitOver; // result of comparison strips to threshold
28  int iStrip[MaxSmdStrips]; // location of first matched strip, counted from 0
29  int type[MaxSmdStrips]; // 1 for ..x.. or 2 for ..xx..
30  int nMatch; // # of matched MIP's
31 
32  EEsmdPlain();
33  void set(float th, int nd, char uv0);
34  void clear(); // only event part
35  void print(int x=1);
36  void scanAdc(float *val, float thr);
37  void findMipPattern();
38  };
39 
40 
41 
42 #endif
43 /*****************************************************************
44  * $Log: EEsmdPlain.h,v $
45  * Revision 1.3 2004/07/10 18:40:54 balewski
46  * use now first and last 8 strips in 00xx00
47  *
48  * Revision 1.2 2004/06/15 20:03:26 balewski
49  * to match web-descriptio
50  *
51  * Revision 1.1 2004/06/12 04:09:22 balewski
52  * start
53  *
54  *
55  ********************************************************************/
56