1 |
pamela |
1.9 |
/** |
2 |
|
|
* \file inc/AcLevel2.h |
3 |
|
|
* \author Petter Hofverberg |
4 |
|
|
*/ |
5 |
|
|
|
6 |
mocchiut |
1.1 |
#ifndef AcLevel2_h |
7 |
|
|
#define AcLevel2_h |
8 |
|
|
// |
9 |
|
|
#include <TObject.h> |
10 |
mocchiut |
1.7 |
#include <TString.h> |
11 |
mocchiut |
1.6 |
// |
12 |
pam-fi |
1.4 |
#include <AcStruct.h> |
13 |
mocchiut |
1.1 |
// |
14 |
pamela |
1.9 |
/** |
15 |
|
|
* \Anticounter Level2 class |
16 |
|
|
**/ |
17 |
mocchiut |
1.1 |
class AcLevel2 : public TObject { |
18 |
|
|
private: |
19 |
|
|
|
20 |
|
|
public: |
21 |
pamela |
1.9 |
|
22 |
|
|
Int_t status[2]; ///< the status word [0] main board, [1] extra board. 0x0 means ok |
23 |
|
|
Int_t hitmap[2]; ///< 16 bit binary hitmap. 1-hit, 0-not hit. Use XHit-functions instead of this |
24 |
|
|
Int_t hitstatus[2]; ///< if hit is correlated with trigger. 1-yes, 0-no. This is checked in XHit-functions |
25 |
|
|
Int_t trigger[2]; ///<trigger counter |
26 |
|
|
|
27 |
|
|
bool IsHit(TString); ///< is detector x hit? String can be CARD1-M, CAS3-E and so on |
28 |
|
|
bool CAShit(TString card=""); ///< CAS hit? Default (main || extra). Arguments "main","extra" |
29 |
|
|
bool CARDhit(TString card=""); ///< CARD hit? Default (main || extra). Arguments "main" ,"extra" |
30 |
|
|
bool CAThit(TString card=""); ///< CAT hit? Default (main || extra). Arguments "main","extra" |
31 |
|
|
bool AChit(TString card=""); ///< AC hit? Default (main || extra). Arguments "main","extra" |
32 |
mocchiut |
1.7 |
|
33 |
mocchiut |
1.6 |
Int_t unpackError; // Emiliano |
34 |
mocchiut |
1.7 |
|
35 |
mocchiut |
1.1 |
// constructor |
36 |
pamela |
1.9 |
AcLevel2(); ///< constructor |
37 |
|
|
AcLevel2* GetAcLevel2(){return this;}; ///< returns pointer to this object |
38 |
pam-fi |
1.4 |
void GetLevel2Struct(cAcLevel2 *) const; |
39 |
|
|
void SetFromLevel2Struct(cAcLevel2 *); |
40 |
|
|
|
41 |
mocchiut |
1.10 |
void Clear(Option_t *t=""); ///< clear variables |
42 |
mocchiut |
1.1 |
// |
43 |
mocchiut |
1.6 |
ClassDef(AcLevel2, 2); |
44 |
mocchiut |
1.1 |
}; |
45 |
|
|
|
46 |
|
|
|
47 |
mocchiut |
1.8 |
#endif |