/[PAMELA software]/DarthVader/AnticounterLevel2/inc/AcLevel2.h
ViewVC logotype

Contents of /DarthVader/AnticounterLevel2/inc/AcLevel2.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Fri Sep 2 14:49:03 2011 UTC (13 years, 3 months ago) by pam-fi
Branch: MAIN
CVS Tags: v10RED, v10REDr01, HEAD
Changes since 1.10: +1 -1 lines
File MIME type: text/plain
Some bugs in Doxygen documentation fixed.

1 /**
2 * \file inc/AcLevel2.h
3 * \author Petter Hofverberg
4 */
5
6 #ifndef AcLevel2_h
7 #define AcLevel2_h
8 //
9 #include <TObject.h>
10 #include <TString.h>
11 //
12 #include <AcStruct.h>
13 //
14 /**
15 * \Anticounter Level2 class
16 **/
17 class AcLevel2 : public TObject {
18 private:
19
20 public:
21
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
33 Int_t unpackError; // Emiliano
34
35 // constructor
36 AcLevel2(); ///< constructor
37 AcLevel2* GetAcLevel2(){return this;} ///< returns pointer to this object
38 void GetLevel2Struct(cAcLevel2 *) const;
39 void SetFromLevel2Struct(cAcLevel2 *);
40
41 void Clear(Option_t *t=""); ///< clear variables
42 //
43 ClassDef(AcLevel2, 2);
44 };
45
46
47 #endif

  ViewVC Help
Powered by ViewVC 1.1.23