Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ChipEvent.h

Go to the documentation of this file.
00001 
00002 // $Id: ChipEvent.h,v 1.3 2005/02/22 21:44:43 bspeak Exp $
00003 //
00004 // Author: B. Speakman 2004.09.03
00005 //
00007 #ifndef CHIPEVENT_H
00008 #define CHIPEVENT_H
00009 
00010 #include "TObject.h"
00011 
00012 class ChipEvent: public TObject {
00013  public:
00014   ChipEvent();
00015  ~ChipEvent();
00016   void Reset();
00017   virtual void LocalReset() {return;}
00018 
00019   Short_t fChipLoc;
00020 
00021   void PackLoc(Char_t Crate  = -1,
00022                Char_t Varc   = -1,
00023                Char_t Vmm    = -1,
00024                Char_t Vadc   = -1,
00025                Char_t Vachip = -1,
00026                Char_t Vachan = -1);
00027 
00028   bool IsLoc(Char_t Crate  = -1,
00029              Char_t Varc   = -1,
00030              Char_t Vmm    = -1,
00031              Char_t Vadc   = -1,
00032              Char_t Vachip = -1,
00033              Char_t Vachan = -1);
00034 
00035   Int_t GetCrate()  const {return((fChipLoc>>12)&0xF);}
00036   Int_t GetVarc()   const {return((fChipLoc>>10)&0x3);}
00037   Int_t GetVmm()    const {return((fChipLoc>>7)&0x7);}
00038   Int_t GetVadc()   const {return((fChipLoc>>6)&0x1);}
00039   Int_t GetVachip() const {return((fChipLoc>>4)&0x3);}
00040   Int_t GetVachan() const {return((fChipLoc>>0)&0xF);}
00041 
00042   const char* AsString();
00043 
00044   Int_t Compare(const TObject *obj) const;
00045 
00046   ClassDef(ChipEvent, 1);
00047  private:
00048 };
00049 #endif

Generated on Mon Feb 15 11:06:31 2010 for loon by  doxygen 1.3.9.1