ATLAS Offline Software
Loading...
Searching...
No Matches
TBPatternUnitStreamerTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TBREC_TBPATTERNUNITSTREAMERTOOL_H
6#define TBREC_TBPATTERNUNITSTREAMERTOOL_H
7
26
27#include "TBEventStreamerTool.h"
28
29#include <string>
30#include <map>
31#include <vector>
32
34{
35 public:
36
37 typedef unsigned int bit_mask;
38 typedef std::map< std::string, bit_mask > bit_mask_store;
39 typedef std::string pattern;
40 typedef std::vector<pattern> pattern_store;
41
42 TBPatternUnitStreamerTool(const std::string& type,
43 const std::string& name,
44 const IInterface* parent);
46
47 virtual StatusCode initializeTool() override;
48
49 virtual StatusCode accept() override;
50
51 protected:
52
54 // Properties //
56
57 std::string m_patternUnitKey;
60
62 // Internal Stores //
64
68
70 // Internal Helpers //
72
73 std::string decodeBinary(bit_mask& theTrigger);
74 StatusCode findPattern(const pattern_store& thePatterns,
75 const bit_mask_store& theBitMasks,
76 bit_mask& theMask);
77};
78#endif
TBEventStreamerTool(const std::string &name, const std::string &type, const IInterface *parent)
StatusCode findPattern(const pattern_store &thePatterns, const bit_mask_store &theBitMasks, bit_mask &theMask)
virtual StatusCode accept() override
std::map< std::string, bit_mask > bit_mask_store
std::vector< pattern > pattern_store
virtual StatusCode initializeTool() override
std::string decodeBinary(bit_mask &theTrigger)
TBPatternUnitStreamerTool(const std::string &type, const std::string &name, const IInterface *parent)