ATLAS Offline Software
Loading...
Searching...
No Matches
TriggerElementFactory.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include <iostream>
7
8
10 // std::cout << "TriggerElementFactory::TriggerElementFactory() " << std::endl;
11}
12
15
16HLT::TriggerElement* HLT::TriggerElementFactory::produce(unsigned int id, bool ghost, bool nofwd) {
17 HLT::TriggerElement *te = new HLT::TriggerElement(id, ghost, nofwd);
18 m_list.push_back(te);
19 m_groupedById[id].push_back(te);
20 return te;
21}
22
23
25 return m_list.empty();
26}
27
29 std::vector< HLT::TriggerElement* >::iterator i;
30 for ( i = m_list.begin(); i != m_list.end(); ++i ) {
31 delete (*i);
32 }
33 m_list.clear();
34 m_groupedById.clear();
35}
std::vector< TriggerElement * > m_list
std::map< te_id_type, std::vector< TriggerElement * > > m_groupedById
this is to speed up queries
TriggerElement * produce(unsigned int id, bool ghost=false, bool nofwd=false)
TriggerElement is the basic ingreedient of the interface between HLT algorithms and the navigation It...