ATLAS Offline Software
Loading...
Searching...
No Matches
TBPatternUnitHelper.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 TBUTILS_TBPATTERNUNITHELPER_H
6#define TBUTILS_TBPATTERNUNITHELPER_H
7
9
10#include <string>
11
13{
14 public:
15
16 enum Context { H6 = 0, H8 = 1, Unknown = -1 };
17}
18
19struct TBH6PatternUnitHelper
20{
21public:
22
23enum Bits { S1 = 0,
24 S2 = 1,
25 S3 = 2,
26 Veto = 3,
28 TCBack = 5,
29 Muon = 6,
32 Unknown = 9 };
33
34 // copied from Peter Loch code :
35
36 inline bool isParticle()
37 { return ( m_triggerWord & 0x00000100 ) != 0; }
38 inline bool isRandom()
39 { return ( m_triggerWord & 0x00000200 ) != 0; }
40 inline bool isPedestal() { return this->isRandom(); }
41 inline bool isMonitor()
42 { return ( m_triggerWord & 0x00000400 ) != 0; }
43 inline bool isCalib() { return this->isMonitor(); }
44
45 // specifics
46 inline bool hasS1()
47 { return ( m_triggerWord & 0x00000001 ) != 0; }
48 inline bool hasS2()
49 { return ( m_triggerWord & 0x00000002 ) != 0; }
50 inline bool hasS3()
51 { return ( m_triggerWord & 0x00000004 ) != 0; }
52 inline bool hasVeto()
53 { return ( m_triggerWord & 0x00000008 ) != 0; }
54 inline bool hasTCFront()
55 { return ( m_triggerWord & 0x00000010 ) != 0; }
56 bool hasTCBack()
57 { return ( m_triggerWord & 0x00000020 ) != 0; }
58 inline bool hasMuon()
59 { return ( m_triggerWord & 0x00000040 ) != 0; }
60 inline bool hasFibre()
61 { return ( m_triggerWord & 0x00000080 ) != 0; }
62 inline bool hasLatePileUp()
63 { return ( m_triggerWord & 0x00000800 ) != 0; }
64 inline bool hasEarlyPileUp()
65 { return ( m_triggerWord & 0x00001000 ) != 0; }
66 inline bool hasCedar6of8()
67 { return ( m_triggerWord & 0x00002000 ) != 0; }
68 inline bool hasCedar7of8()
69 { return ( m_triggerWord & 0x00004000 ) != 0; }
70 inline bool hasCedar8of8()
71 { return ( m_triggerWord & 0x00008000 ) != 0; }
72
73
74
75
76 static bool hasS1(const TBTriggerPatternUnit* aTrigger)
77 {
78
79 private:
80
81 static std::vector<unsigned int> m_maskBits;
82 static std::vector<std::string> m_maskNames;
83
84};
85#endif
bool isParticle()
struct TBPatternUnitContext Veto
bool hasCedar7of8()
struct TBPatternUnitContext S2
bool hasLatePileUp()
bool hasVeto()
struct TBPatternUnitContext S3
struct TBPatternUnitContext LatePileUp
bool isCalib()
bool hasCedar8of8()
bool hasEarlyPileUp()
struct TBPatternUnitContext TCFront
struct TBPatternUnitContext S1
bool isPedestal()
struct TBPatternUnitContext TCBack
bool hasTCFront()
bool hasFibre()
bool hasMuon()
bool hasS1()
struct TBPatternUnitContext EarlyPileUp
bool hasS2()
bool hasCedar6of8()
bool hasTCBack()
bool isRandom()
bool hasS3()
bool isMonitor()
@ Unknown
Definition TruthClasses.h:9
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.