--- DarthVader/AnticounterLevel2/inc/AcLevel2.h 2006/05/19 13:16:00 1.1.1.1 +++ DarthVader/AnticounterLevel2/inc/AcLevel2.h 2007/02/12 08:17:19 1.7 @@ -1,25 +1,38 @@ -// Author E.Mocchiutti, modified 20060511 S.Orsi +// Author E.Mocchiutti, modified 20060511 S.Orsi, modified 20070209 P. Hofverberg #ifndef AcLevel2_h #define AcLevel2_h // #include -//#include +#include +// +#include // class AcLevel2 : public TObject { private: + bool IsHit(TString); public: - UShort_t status[2]; - UShort_t hitmap[2]; - UShort_t hitstatus[2]; - UShort_t trigger[2]; - //ULong64_t OBT; - //Int_t pro_num; - //ULong64_t pkt_num; + Int_t status[2]; + Int_t hitmap[2]; + Int_t hitstatus[2]; + Int_t trigger[2]; + + bool CAShit(TString card=""); // CAS hit? Default (main || extra). Arguments "main","extra" + bool CARDhit(TString card=""); // CARD hit? Default (main || extra). Arguments "main" ,"extra" + bool CAThit(TString card=""); // CAT hit? Default (main || extra). Arguments "main","extra" + bool AChit(TString card=""); // AC hit? Default (main || extra). Arguments "main","extra" + + Int_t unpackError; // Emiliano + // constructor AcLevel2(); + AcLevel2* GetAcLevel2(){return this;}; // Elena + void GetLevel2Struct(cAcLevel2 *) const; + void SetFromLevel2Struct(cAcLevel2 *); + + void Clear(); // emiliano // - ClassDef(AcLevel2, 1); + ClassDef(AcLevel2, 2); };