ATLAS Offline Software
Loading...
Searching...
No Matches
ThresholdMap.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGT1CTP_THRESHOLDMAP_H
6#define TRIGT1CTP_THRESHOLDMAP_H
7
9
10#include "TrigConfData/L1Menu.h"
11
13#include "TrigConfL1Data/PIT.h"
14#include "TrigConfL1Data/TIP.h"
15
16#include <vector>
17#include <map>
18
19namespace LVL1CTP {
20
24
26 public:
27 ThresholdMap() = delete;
28
29 // construct map from L1Menu (Run 3)
30 ThresholdMap( const TrigConf::L1Menu * l1menu );
31
32 // construct map from thresholds using default PIT mapping (Run 1)
33 ThresholdMap( const std::vector< TrigConf::TriggerThreshold* >& threshold_vector);
34
35 // construct map from thresholds using given PIT mapping (Run 1)
36 ThresholdMap( const std::vector< TrigConf::TriggerThreshold* >& threshold_vector, const std::vector< TrigConf::PIT* >& pit_vector);
37
38 // construct map from thresholds using default TIP mapping (Run 2)
39 ThresholdMap( const std::vector< TrigConf::TriggerThreshold* >& threshold_vector, const std::vector< TrigConf::TIP* >& pit_vector );
40
43
44 // Function returning the threshold names
45 std::vector<std::string> getThresholdNames() const;
46
47 // Function returning the CTPTriggerThreshold object belonging to the given TriggerThreshold object
48 const CTPTriggerThreshold & getCTPThreshold( const std::string & thrName ) const;
49
50 private:
51
53 std::map< std::string, const CTPTriggerThreshold* > m_mapByName;
54
55 };
56
57}
58
59#endif
Helper class holding trigger threshold multiplicity.
const CTPTriggerThreshold & getCTPThreshold(const std::string &thrName) const
std::map< std::string, const CTPTriggerThreshold * > m_mapByName
map storing the accosiation between threshold name and CTPTriggerThreshold
std::vector< std::string > getThresholdNames() const
~ThresholdMap()
default destructor
L1 menu configuration.
Definition L1Menu.h:28