00001 #pragma once
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef TRIGSTEERINGEVENT_Lvl1Result_H
00019 #define TRIGSTEERINGEVENT_Lvl1Result_H
00020
00021 #include <stdint.h>
00022 #include "CLIDSvc/CLASS_DEF.h"
00023 #include "TrigSteeringEvent/Lvl1Item.h"
00024
00025 namespace LVL1CTP {
00026
00027 class Lvl1Result
00028 {
00029
00030 public:
00031
00032
00033 Lvl1Result(bool config = false) : m_configured(config) { }
00034
00035 bool isConfigured() const { return m_configured; }
00036 bool isAccepted() const;
00037
00038 bool anyActiveL1ItemAfterVeto() const;
00039
00040 bool isPassedBeforePrescale(unsigned int item) const;
00041 bool isPassedAfterPrescale(unsigned int item) const;
00042 bool isPassedAfterVeto(unsigned int item) const;
00043 bool isPassedRaw(unsigned int item) const;
00044
00045 bool isPrescaled(unsigned int item) const;
00046 bool isVeto(unsigned int item) const;
00047
00048 unsigned int nItems() const { return m_l1_itemsTAV.size()*32; }
00049
00050 const std::vector<uint32_t>& itemsPassed() const { return m_l1_itemsTAV; }
00051 const std::vector<uint32_t>& itemsBeforePrescale() const { return m_l1_itemsTBP; }
00052 const std::vector<uint32_t>& itemsAfterPrescale() const { return m_l1_itemsTAP; }
00053 const std::vector<uint32_t>& itemsAfterVeto() const { return m_l1_itemsTAV; }
00054
00055
00056 std::vector<uint32_t>& itemsPassed() { return m_l1_itemsTAV; }
00057 std::vector<uint32_t>& itemsBeforePrescale() { return m_l1_itemsTBP; }
00058 std::vector<uint32_t>& itemsAfterPrescale() { return m_l1_itemsTAP; }
00059 std::vector<uint32_t>& itemsAfterVeto() { return m_l1_itemsTAV; }
00060
00061
00062 private:
00063
00064 bool m_configured;
00065
00066
00067
00068
00069 std::vector<uint32_t> m_l1_itemsTBP;
00070 std::vector<uint32_t> m_l1_itemsTAP;
00071 std::vector<uint32_t> m_l1_itemsTAV;
00072 };
00073
00074 }
00075
00076 CLASS_DEF( LVL1CTP::Lvl1Result, 21091893, 1)
00077
00078 #endif