1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
#ifndef DataFormats_L1TGlobal_GlobalObjectMapRecord_h
#define DataFormats_L1TGlobal_GlobalObjectMapRecord_h
/**
* \class GlobalObjectMapRecord
*
*
* Description: map trigger objects to algorithms and conditions.
*
* Implementation:
* <TODO: enter implementation details>
*
* \author: Vasile Mihai Ghete - HEPHY Vienna
*
*
*/
// system include files
#include <string>
#include <vector>
// user include files
#include "DataFormats/L1TGlobal/interface/GlobalObjectMapFwd.h"
#include "DataFormats/L1TGlobal/interface/GlobalObjectMap.h"
// forward declarations
// class declaration
class GlobalObjectMapRecord {
public:
/// constructor(s)
GlobalObjectMapRecord() {}
/// destructor
~GlobalObjectMapRecord() {}
void swap(GlobalObjectMapRecord& rh) { m_gtObjectMap.swap(rh.m_gtObjectMap); }
public:
/// return the object map for the algorithm algoNameVal
const GlobalObjectMap* getObjectMap(const std::string& algoNameVal) const;
/// return the object map for the algorithm with bit number const int algoBitNumberVal
const GlobalObjectMap* getObjectMap(const int algoBitNumberVal) const;
/// return all the combinations passing the requirements imposed in condition condNameVal
/// from algorithm with name algoNameVal
const CombinationsWithBxInCond* getCombinationsInCond(const std::string& algoNameVal,
const std::string& condNameVal) const;
/// return all the combinations passing the requirements imposed in condition condNameVal
/// from algorithm with bit number algoBitNumberVal
const CombinationsWithBxInCond* getCombinationsInCond(const int algoBitNumberVal,
const std::string& condNameVal) const;
/// return the result for the condition condNameVal
/// from algorithm with name algoNameVal
bool getConditionResult(const std::string& algoNameVal, const std::string& condNameVal) const;
/// return the result for the condition condNameVal
/// from algorithm with bit number algoBitNumberVal
bool getConditionResult(const int algoBitNumberVal, const std::string& condNameVal) const;
public:
/// get / set the vector of object maps
inline const std::vector<GlobalObjectMap>& gtObjectMap() const { return m_gtObjectMap; }
inline void setGtObjectMap(const std::vector<GlobalObjectMap>& gtObjectMapValue) { m_gtObjectMap = gtObjectMapValue; }
inline void swapGtObjectMap(std::vector<GlobalObjectMap>& gtObjectMapValue) { m_gtObjectMap.swap(gtObjectMapValue); }
private:
std::vector<GlobalObjectMap> m_gtObjectMap;
};
inline void swap(GlobalObjectMapRecord& lh, GlobalObjectMapRecord& rh) { lh.swap(rh); }
#endif
|