LDMX Software
ProductTag.h
Go to the documentation of this file.
1
7#ifndef EVENT_PRODUCTTAG_H_
8#define EVENT_PRODUCTTAG_H_
9
10// C++
11#include <ostream>
12
13// STL
14#include <string>
15
16namespace framework {
17
24 public:
35 ProductTag(const std::string& name, const std::string& pass,
36 const std::string& type)
37 : name_{name}, passname_{pass}, typename_{type} {}
38
42 const std::string& name() const { return name_; }
43
47 const std::string& passname() const { return passname_; }
48
52 const std::string& type() const { return typename_; }
53
54 private:
58 std::string name_;
59
63 std::string passname_;
64
68 std::string typename_;
69};
70
71} // namespace framework
72
76std::ostream& operator<<(std::ostream&, const framework::ProductTag&);
77
78#endif
std::ostream & operator<<(std::ostream &, const framework::ProductTag &)
Print/stream method for framework::ProductTag.
Definition ProductTag.cxx:3
Defines the identity of a product and can be used for searches.
Definition ProductTag.h:23
std::string typename_
Typename of the product.
Definition ProductTag.h:68
const std::string & type() const
Get the product type name.
Definition ProductTag.h:52
std::string passname_
Passname given when product was written.
Definition ProductTag.h:63
ProductTag(const std::string &name, const std::string &pass, const std::string &type)
Class constructor.
Definition ProductTag.h:35
const std::string & name() const
Get the product name.
Definition ProductTag.h:42
std::string name_
Name given to the product.
Definition ProductTag.h:58
const std::string & passname() const
Get the product pass name.
Definition ProductTag.h:47
All classes in the ldmx-sw project use this namespace.
Definition PerfDict.cxx:45