--- DarthVader/AnticounterLevel2/inc/AcLevel2.h 2006/06/14 10:20:40 1.2 +++ DarthVader/AnticounterLevel2/inc/AcLevel2.h 2007/02/12 08:17:19 1.7 @@ -1,26 +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: Int_t status[2]; Int_t hitmap[2]; Int_t hitstatus[2]; Int_t trigger[2]; - //ULong64_t OBT; - //Int_t pro_num; - //ULong64_t pkt_num; + + 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); };