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

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

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

revision 1.6 by mocchiut, Thu Nov 9 17:05:42 2006 UTC revision 1.9 by pamela, Thu Mar 15 12:56:26 2007 UTC
# Line 1  Line 1 
1  // Author E.Mocchiutti, modified 20060511 S.Orsi  /**
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  //  //
9  #include <TObject.h>  #include <TObject.h>
10    #include <TString.h>
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:
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    
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    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  };  };

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.23