1 |
// Author E.Mocchiutti, modified 20060511 S.Orsi, modified 20070209 P. Hofverberg |
/** |
2 |
|
* \file inc/AcLevel2.h |
3 |
|
* \author Petter Hofverberg |
4 |
|
*/ |
5 |
|
|
6 |
#ifndef AcLevel2_h |
#ifndef AcLevel2_h |
7 |
#define AcLevel2_h |
#define AcLevel2_h |
8 |
// |
// |
11 |
// |
// |
12 |
#include <AcStruct.h> |
#include <AcStruct.h> |
13 |
// |
// |
14 |
|
/** |
15 |
|
* \Anticounter Level2 class |
16 |
|
**/ |
17 |
class AcLevel2 : public TObject { |
class AcLevel2 : public TObject { |
18 |
private: |
private: |
|
bool IsHit(TString); |
|
19 |
|
|
20 |
public: |
public: |
21 |
Int_t status[2]; |
|
22 |
Int_t hitmap[2]; |
Int_t status[2]; ///< the status word [0] main board, [1] extra board. 0x0 means ok |
23 |
Int_t hitstatus[2]; |
Int_t hitmap[2]; ///< 16 bit binary hitmap. 1-hit, 0-not hit. Use XHit-functions instead of this |
24 |
Int_t trigger[2]; |
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 |
bool CAShit(TString card=""); // CAS hit? Default (main || extra). Arguments "main","extra" |
|
27 |
bool CARDhit(TString card=""); // CARD hit? Default (main || extra). Arguments "main" ,"extra" |
bool IsHit(TString); ///< is detector x hit? String can be CARD1-M, CAS3-E and so on |
28 |
bool CAThit(TString card=""); // CAT hit? Default (main || extra). Arguments "main","extra" |
bool CAShit(TString card=""); ///< CAS hit? Default (main || extra). Arguments "main","extra" |
29 |
bool AChit(TString card=""); // AC hit? Default (main || extra). Arguments "main","extra" |
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 |
|
|
33 |
Int_t unpackError; // Emiliano |
Int_t unpackError; // Emiliano |
34 |
|
|
35 |
// constructor |
// constructor |
36 |
AcLevel2(); |
AcLevel2(); ///< constructor |
37 |
AcLevel2* GetAcLevel2(){return this;}; // Elena |
AcLevel2* GetAcLevel2(){return this;}; ///< returns pointer to this object |
38 |
void GetLevel2Struct(cAcLevel2 *) const; |
void GetLevel2Struct(cAcLevel2 *) const; |
39 |
void SetFromLevel2Struct(cAcLevel2 *); |
void SetFromLevel2Struct(cAcLevel2 *); |
40 |
|
|
41 |
void Clear(); // emiliano |
void Clear(); ///< clear variables |
42 |
// |
// |
43 |
ClassDef(AcLevel2, 2); |
ClassDef(AcLevel2, 2); |
44 |
}; |
}; |