XbAlgo.h
Go to the documentation of this file.
1 #ifndef XBALGO_H
2 #define XBALGO_H
3 #include "XbT2.h"
4 
5 /* error allowed in microseconds on the difference of time of two station */
6 /* 2 is enough. To be safe let's put 3 */
7 const int dtime=3;
8 
9 // Binning is now dynamically adapted to number of T2s.
10 // If more than MAXSTATINONEBIN station fall in one bin, a special event is built
11 #define MAXBINNUMBER 110000
12 #define MAXSTATINONEBIN 30
13 /* maximum of T2 overlapping (in the 50us window) */
14 #define MAXOVERLAP 1024
15 // maximum of T2 from Carmen and Miranda
16 #define MAXCM 1024
17 // maximum of TOT: 10Hz*1600 and TOT flag in T2s (9)
18 #define MAXTOT 16000
19 // TOT is now >=8, scaler is 7, threshold is <=6
20 //
21 // values used 28/10/2016:
22 // 1: single threshold
23 // 2: wide threshold
24 // 7: scaler
25 // 8: large saturation
26 // 9: ToT
27 // 10: wide ToT
28 // 11: ToTd
29 // 12: wide ToTd
30 // 13: MOPS
31 // 14: wide MOPS (and wide ToTd + MOPS)
32 // 15: ToTd+MOPS
33 #define TOTVALUE 8
34 
35 std::vector<t2list> XbAlgoT2Process(struct t2 *input,int nt2);
36 void XbAlgoT2Init();
37 void XbAlgoFree(struct t2list in);
38 t3 XbAlgoT3Build(struct t2list in);
39 
40 #endif
const int dtime
Definition: XbAlgo.h:7
void XbAlgoT2Init()
initialisation of XbAlgoT2 algorithm, building fake station and resetting histograms ...
Definition: XbAlgo.cc:37
a t3: algo, second, usecond and a vector of &lt;t3stat&gt;
Definition: XbT2.h:29
vector< t2list > XbAlgoT2Process(struct t2 *input, int nt2)
Main function, processing T2 and returning clusters of T2.
Definition: XbAlgo.cc:153
a second level trigger
Definition: XbT2.h:8
t3 XbAlgoT3Build(struct t2list in)
builds t3 from a list of t2
Definition: XbAlgo.cc:434
a list of t2
Definition: XbT2.h:15
void XbAlgoFree(t2list in)
frees the malloced part of the list of t2
Definition: XbAlgo.cc:429

, generated on Tue Sep 26 2023.