ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalibTriggerInfo.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 MUONCALIBTRIGGERINFO_H
6#define MUONCALIBTRIGGERINFO_H
7
8#include <string>
9#include <vector>
10
12
13namespace MuonCalib {
14
32
35 public:
37 static std::vector<int> triggerBits(MuonCalibTriggerType type);
38
40 static std::string itemName(MuonCalibTriggerType type);
41
44
47
50
53
56
58 static void dumpMapping();
59
60 private:
61 static void addEntry(MuonCalibTriggerType type, int bit, const std::string& name);
62 static void addEntry(MuonCalibTriggerType type, std::vector<int>& bits, const std::string& name);
63 static void initMap();
64 static std::vector<std::pair<std::vector<int>, std::string> > m_typeToBitAndStringMapping;
65 };
66
75 public:
78 MuonCalibTriggerInfo(int tbpbit, int tapbit, int tavbit, int bcIndex);
80
82 MuonCalibTriggerType type() const { return m_type; }
83
85 int tbp() const { return m_tbpbit; }
86
88 int tap() const { return m_tapbit; }
89
91 int tav() const { return m_tavbit; }
92
94 double delay() const { return m_delay; }
95
97 int bcIndex() const { return m_bcIndex; }
98
100 std::vector<int> triggerBits() const { return MuonCalibTriggerTypeHelper::triggerBits(m_type); }
101
104
105 private:
110 double m_delay;
112 };
113
114} // namespace MuonCalib
115
116#endif
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
int tbp() const
return the trigger bit before prescale
std::vector< int > triggerBits() const
return the trigger bits for this type
int tap() const
return the trigger bit after prescale
int tav() const
return the trigger bit after veto
MuonCalibTriggerType type() const
destructor
int bcIndex() const
return the bcIndex of the trigger
double m_delay
delay of signal wrt firing trigger
int m_tbpbit
trig bit before pre-scale
int m_tapbit
trig bit after pre-scale
std::string typeString() const
return string representing type
double delay() const
return the delay of the signal wrt firing trigger
helper class to for MuonCalibTriggerType which provides a mapping to the actual bit number
static std::vector< std::pair< std::vector< int >, std::string > > m_typeToBitAndStringMapping
static std::string itemName(MuonCalibTriggerType type)
get trigger bit for a given type
static bool isLVL1CaloTrigger(MuonCalibTriggerType type)
check whether type is valid
static bool isMbtsTrigger(MuonCalibTriggerType type)
check whether type is valid
static bool isTgcTrigger(MuonCalibTriggerType type)
check whether type is valid
static std::vector< int > triggerBits(MuonCalibTriggerType type)
get trigger bit for a given type
static bool validType(MuonCalibTriggerType type)
check whether type is valid
static void addEntry(MuonCalibTriggerType type, int bit, const std::string &name)
static bool isRpcTrigger(MuonCalibTriggerType type)
check whether type is valid
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
MuonCalibTriggerType
enum for all trigger type