/[PAMELA software]/DarthVader/CalorimeterLevel2/inc/CaloCore.h
ViewVC logotype

Diff of /DarthVader/CalorimeterLevel2/inc/CaloCore.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by mocchiut, Fri Dec 12 16:18:15 2008 UTC revision 1.11 by mocchiut, Mon Sep 28 17:06:37 2009 UTC
# Line 4  Line 4 
4  #include <TSQLServer.h>  #include <TSQLServer.h>
5  #include <GLTables.h>  #include <GLTables.h>
6    
7    /* trigger configuration */
8    #define CTOF1     (1<<0) // (S11 + S12) * (S21 + S22) * (S31 + S32)
9    #define CTOF2     (1<<1) // (S11 * S12) * (S21 * S22) * (S31 * S32)
10    #define CTOF3     (1<<2) // (S21 + S22) * (S31 + S32)
11    #define CTOF4     (1<<3) // (S21 * S22) * (S31 * S32)
12    #define CTOF5     (1<<4) // S12 * (S21 * S22)
13    #define CTOF6     (1<<5) // (S11 + S12) * (S31 + S32)
14    #define CTOF7     (1<<6) // (S11 * S12) * (S31 * S32)
15    #define CS4       (1<<7) // S4_1
16    #define CCALO     (1<<8) // CALO_1 + CALO_2 + CALO_3 + CALO_4
17    #define CCALIB_ON (1<<9)
18    
19    /* Pattern Trigger definitions */
20    #define PT_LENGTH 6
21    
22    /* PT: scintillators */
23    #define S11(pt) (pt[5] != 0)
24    #define S12(pt) (pt[4] != 0)
25    #define S21(pt) ((pt[3] & 0x00F) != 0)
26    #define S22(pt) ((pt[3] & 0x0F0) != 0)
27    #define S31(pt) ((pt[2] & 0x03F) != 0)
28    #define S32(pt) ((pt[2] & 0xFC0) != 0)
29    
30    /* PT: calorimeter */
31    #define PCaloST(pt)         (pt[0] & 0x0F)
32    #define PCalo(pt)           ((pt[0] & 0x0F) != 0)
33    #define PCaloSection(pt, s) ((pt[0] & (1<<s)) != 0)
34    #define PCaloXE(pt)         ((pt[0] & 0x04) != 0)
35    #define PCaloXO(pt)         ((pt[0] & 0x08) != 0)
36    #define PCaloYE(pt)         ((pt[0] & 0x01) != 0)
37    #define PCaloYO(pt)         ((pt[0] & 0x02) != 0)
38    
39    /* PT: S4 */
40    #define PS4(pt) ((pt[1] & 0x01) != 0)
41    
42  struct FlCaLevel1 {  struct FlCaLevel1 {
43      Double_t al_p[5][2];      Double_t al_p[5][2];
44      Float_t estrip[96][22][2];      Float_t estrip[96][22][2];

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.23