/[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.1 by mocchiut, Fri May 19 13:16:00 2006 UTC revision 1.10 by mocchiut, Fri Nov 23 16:42:24 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 <TClonesArray.h>  #include <TString.h>
11    //
12    #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    UShort_t status[2];  
22    UShort_t hitmap[2];    Int_t status[2];   ///< the status word [0] main board, [1] extra board. 0x0 means ok
23    UShort_t hitstatus[2];    Int_t hitmap[2];   ///< 16 bit binary hitmap. 1-hit, 0-not hit. Use XHit-functions instead of this
24    UShort_t trigger[2];    Int_t hitstatus[2]; ///< if hit is correlated with trigger. 1-yes, 0-no. This is checked in XHit-functions
25    //ULong64_t OBT;      Int_t trigger[2];  ///<trigger counter
26    //Int_t     pro_num;  
27    //ULong64_t pkt_num;    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    // constructor
36    AcLevel2();    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, 1);    ClassDef(AcLevel2, 2);
44  };  };
45    
46    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.23