ATLAS Offline Software
Loading...
Searching...
No Matches
LutCam.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TrigConf_LutCam
6#define TrigConf_LutCam
7
8#include <string>
9#include <inttypes.h>
10#include <sys/types.h>
11#include <vector>
13
14namespace TrigConf {
15
16 class LutCam : public L1DataBaseclass {
17
18 public:
19
20 static const u_int ALL_LUT_SIZE = 49664; // the source of these numbers is the CtpcoreModule.cc (CtpcoreModule::LUT_ADDR_SIZE)
21 static const u_int ALL_CAM_SIZE = 8192;
22
23 LutCam();
24 virtual ~LutCam() override = default;
25
26 // Accessors
27
28 // return copy of vector
29 const std::vector<uint32_t> & lut() const;
30 void setLut( const u_int l[], const int size);
31
32 // return copy of vector
33 const std::vector<uint32_t> & cam() const;
34 void setCam( const u_int c[], const int size );
35
36 virtual void print(const std::string& indent="", unsigned int detail=1) const override;
37
38 private:
39 std::vector<uint32_t> m_lut;
40 std::vector<uint32_t> m_cam;
41 };
42}
43#endif
44
void setLut(const u_int l[], const int size)
Definition LutCam.cxx:24
virtual ~LutCam() override=default
static const u_int ALL_CAM_SIZE
Definition LutCam.h:21
std::vector< uint32_t > m_cam
Definition LutCam.h:40
static const u_int ALL_LUT_SIZE
Definition LutCam.h:20
std::vector< uint32_t > m_lut
Definition LutCam.h:39
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition LutCam.cxx:41
void setCam(const u_int c[], const int size)
Definition LutCam.cxx:35
const std::vector< uint32_t > & lut() const
Definition LutCam.cxx:19
const std::vector< uint32_t > & cam() const
Definition LutCam.cxx:30
std::ostream & indent(std::ostream &o, int lvl, int size) const
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22