ATLAS Offline Software
TrigEvent/TrigDecisionInterface/TrigDecisionInterface/Conditions.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 TRIGDECISIONINTERFACE_CONDITIONS_H
6 #define TRIGDECISIONINTERFACE_CONDITIONS_H
7 /**********************************************************************************
8  * @Project: TrigDecisionInterface
9  * @Package: TrigDecisionInterface
10  * @class : Conditions
11  *
12  * @brief Conditions flags
13  *
14  * @author Michael Begel <michael.begel@cern.ch> - Brookhaven National Laboratory
15  * @author Lukas Heinrich <lukas.heinrich@cern.ch> - New York University
16  *
17  ***********************************************************************************/
18 
19 namespace TrigDefs {
20 
21  // Conditions Mask elements
22  // -- we should do this with enum but there are issues with python
23  // so we'll code it as int for now.
24 
25  const static unsigned int requireDecision = 0x1;
26  // ... otherwise ignore the decision
27  const static unsigned int passedThrough = 0x1 << 1;
28  // ... otherwise ignore the passedThrough requirement
29  const static unsigned int allowResurrectedDecision = 0x1 << 2;
30  // ... otherwise require that it wasn't resurrected
31  //
32  const static unsigned int enforceLogicalFlow = 0x1 << 5;
33  // ... otherwise we only care about this trigger level
34  const static unsigned int eventAccepted = 0x1 << 6;
35  // ... an event was written out (useful for trigger rates)
36 
37  //
38  const static unsigned int ignoreIOV = 0x1 << 15;
39  const static unsigned int alsoDeactivateTEs = 0x1 << 16;
40  const static unsigned int includeFailedDecisions = 0x1 << 16;
41  const static unsigned int ignoreFDR = 0x1 << 17;
42  //
43  const static unsigned int Physics = requireDecision | enforceLogicalFlow;
44  const static unsigned int fullChain = enforceLogicalFlow;
45 
46  // Bit location placeholders for isPassedBit()
47  const static unsigned int EF_passedRaw =0x1;
48  const static unsigned int EF_passThrough =0x1 << 1;
49  const static unsigned int EF_prescaled =0x1 << 2;
50  const static unsigned int EF_resurrected =0x1 << 3;
51 
52  const static unsigned int L2_passedRaw =0x1 << 8;
53  const static unsigned int L2_passThrough =0x1 << 9;
54  const static unsigned int L2_prescaled =0x1 << 10;
55  const static unsigned int L2_resurrected =0x1 << 11;
56 
57  const static unsigned int L1_isPassedAfterPrescale = 0x1 << 16;
58  const static unsigned int L1_isPassedBeforePrescale = 0x1 << 17;
59  const static unsigned int L1_isPassedAfterVeto = 0x1 << 18;
60 
61 
62  const static unsigned int EF_error = 0x1 << 19;
63  const static unsigned int L2_error = 0x1 << 20;
64 
65  const static unsigned int Express_passed = 0x1 << 20;
66 
68  const static unsigned int lastFeatureOfType = 0x1 << 21;
70  const static unsigned int allFeaturesOfType = 0x1 << 22;
71 
72 
73 }
74 
75 #endif
TrigDefs
Definition: TrigEvent/TrigDecisionInterface/TrigDecisionInterface/Conditions.h:19