ATLAS Offline Software
Loading...
Searching...
No Matches
HLTSignature.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 TrigConf_HLTSignature
6#define TrigConf_HLTSignature
7
8#include <iosfwd>
9#include <fstream>
10#include <string>
11#include <vector>
12
13namespace TrigConf {
14
15 class HLTSignature;
17
18 std::ostream & operator<<(std::ostream &, const HLTSignature &);
19
30
31 public:
32
34 HLTSignature( void );
35
44 HLTSignature( unsigned int signature_counter, int logic,
45 std::vector<HLTTriggerElement*>&& outputTEs );
46
51 HLTSignature( const HLTSignature& o);
52
54 ~HLTSignature( void );
55
56 // accessors
57 unsigned int signature_counter() const { return m_signature_counter; }
58 unsigned int step() const { return m_signature_counter; }
59 int logic() const { return m_logic; }
60 std::vector<HLTTriggerElement*>& outputTEs() { return m_outputTEs; }
61 const std::vector<HLTTriggerElement*>& outputTEs() const { return m_outputTEs; }
62 const std::string& label() const { return m_label; }
63
64 void set_signature_counter( unsigned int sc ) { m_signature_counter = sc; }
65 void set_logic( int logic ) { m_logic = logic; }
66 void set_outputTEs( const std::vector<HLTTriggerElement*>& outputTEs ) { m_outputTEs = outputTEs; }
67 void set_label( const std::string& label ) { m_label = label; }
68
70 void print(const std::string& indent="", unsigned int detail=1) const;
71 void writeXML(std::ofstream & xmlfile);
72
73 private:
74
75 unsigned int m_signature_counter;
76 int m_logic;
77 std::vector<HLTTriggerElement*> m_outputTEs;
78 std::string m_label;
79 //int m_predecessor_id; ///< ID of the previous signature (old steering, depreciated)
80
81 friend std::ostream & operator<<(std::ostream &, const HLTSignature &);
82 };
83
84}
85
86#endif
static Double_t sc
HLT signature configuration information.
unsigned int step() const
accessor to the signature counter
void set_label(const std::string &label)
std::string m_label
signature label
~HLTSignature(void)
destructor
HLTSignature(void)
default constructor
unsigned int signature_counter() const
accessor to the signature counter
std::vector< HLTTriggerElement * > m_outputTEs
list of trigger elements (same elements can appear multiple times to indicate their multiplicities)
std::vector< HLTTriggerElement * > & outputTEs()
accessor to the list of trigger elements
void set_logic(int logic)
friend std::ostream & operator<<(std::ostream &, const HLTSignature &)
int m_logic
signature logic (how to combine trigger elements)
unsigned int m_signature_counter
signature counter (step in the chain)
void writeXML(std::ofstream &xmlfile)
void set_signature_counter(unsigned int sc)
const std::vector< HLTTriggerElement * > & outputTEs() const
const accessor to the list of trigger elements
void print(const std::string &indent="", unsigned int detail=1) const
print method
int logic() const
accessor to the signature logic
const std::string & label() const
accessor to the signature label
void set_outputTEs(const std::vector< HLTTriggerElement * > &outputTEs)
HLT trigger element configuration information.
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22
std::ostream & operator<<(std::ostream &os, const TrigConf::IsolationLegacy &iso)