ATLAS Offline Software
Macros | Functions
TrigComposite.cxx File Reference
#include <stdexcept>
#include "TrigCombinedEvent/TrigComposite.h"
Include dependency graph for TrigComposite.cxx:

Go to the source code of this file.

Macros

#define GEN_(type, varaible)
 

Functions

MsgStream & operator<< (MsgStream &log, const TrigComposite &d)
 Prints the content of the object. More...
 

Macro Definition Documentation

◆ GEN_

#define GEN_ (   type,
  varaible 
)
Value:
template<> std::map<std::string, type>& TrigComposite::detailsMap() { return varaible; } \
template<> const std::map<std::string, type>& TrigComposite::detailsMap() const { return varaible; } \
template<> std::set<std::string>& TrigComposite::detailsMustSetList<type>() { return varaible##ToBeSet; } \
template<> const type& TrigComposite::specimen<type>() const { static const type x{}; return x;} \
template void TrigComposite::addDetail<type>(const std::string&, const type&); \
template void TrigComposite::setDetail<type>(const std::string&, const type&); \
template bool TrigComposite::hasDetail<type>(const std::string& ) const; \
template const type& TrigComposite::getDetail<type>(const std::string& ) const; \
template void TrigComposite::eraseDetail<type>(const std::string& ); \
template void TrigComposite::setFormat<type>(const std::vector<std::string>&, bool ); \
template void TrigComposite::mustSet<type>(const std::string&);

Definition at line 155 of file TrigComposite.cxx.

Function Documentation

◆ operator<<()

MsgStream& operator<< ( MsgStream &  log,
const TrigComposite d 
)

Prints the content of the object.

Definition at line 198 of file TrigComposite.cxx.

198  {
199  log << "TrigComposite object: " << d.name() << endmsg;
200  print<float> (log, d, "floats");
201  print<int> (log, d, "ints");
202  print<std::string> (log, d, "strings");
203 
204 
205  print<std::vector<float> > (log, d, "vector of floats") ;
206  print<std::vector<int> > (log, d, "vector of ints");
207  print<std::vector<string> > (log, d, "vector of strings");
208 
209  if ( ! d.allDetails<TrigFeatureLink>().empty() ) {
210  typedef std::map<std::string, TrigFeatureLink>::value_type key_value;
211  for( const key_value& kv : d.allDetails<TrigFeatureLink>()) {
212  log << "(" << kv.first << ", " << "CLID:" << kv.second.clid() <<") ";
213  }
214 
215  } else {
216  log << "There are no objects assocuiated with this TrigComposite object" << endmsg;
217  }
218 
219 
220  return log;
221 }
hist_file_dump.d
d
Definition: hist_file_dump.py:137
x
#define x
TrigComposite::detailsMap
std::map< std::string, T > & detailsMap()
Definition: TrigComposite.cxx:135
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20