/* ===================================================================== * The Active Channel List. This class provides some functionality around * it. This is used in the RCU Firmware V1. In V2 we use the Readout List. * ===================================================================== */ /* *Author: C. Lippmann, Christian.Lippmann@cern.ch */ //use when to compile on outdated slc #include #include #include #ifndef ACL_H #define ACL_H #include #include #include "../Logger/Logger.h" #include "../CentralHeaders/TpcException.h" using namespace std; class Acl{ public: Acl(); ~Acl(); void reset(); void fill(uint32_t branch, uint32_t fec, uint32_t altro, uint32_t channel, bool chOn = true); void fill2(uint32_t position, uint32_t data); void fill2(uint32_t branch, uint32_t fec, uint32_t altro, uint32_t data); uint32_t at(uint32_t position); uint32_t *get(); uint32_t size(); bool isChannelActive(uint32_t branch, uint32_t fec, uint32_t altro, uint32_t channel); void setDebugLevel(int32_t dbl) { fLogger->setDebugLevel(dbl); }; int32_t getDebugLevel() { return fLogger->getDebugLevel(); }; private: vector fACL; // The Active Channel List in 32bit Logger *fLogger; // Logging class }; #endif // ACL_H