Public Member Functions | Private Member Functions | Private Attributes | List of all members
art::TriggerNamesService Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v3_05_01/source/art/Framework/Services/System/TriggerNamesService.h"

Public Member Functions

 TriggerNamesService (std::vector< std::string > const &triggerPathNames, std::string const &processName, fhicl::ParameterSet const &triggerPSet, fhicl::ParameterSet const &physicsPSet)
 
std::string const & getProcessName () const
 
fhicl::ParameterSet const & getTriggerPSet () const
 
std::vector< std::string > const & getTrigPaths () const
 
std::size_t size () const
 
std::string const & getTrigPath (std::size_t const i) const
 
std::size_t findTrigPath (std::string const &name) const
 
std::vector< std::string > const & getTrigPathModules (std::string const &name) const
 
std::vector< std::string > const & getTrigPathModules (std::size_t const i) const
 
std::string const & getTrigPathModule (std::string const &name, std::size_t const j) const
 
std::string const & getTrigPathModule (std::size_t const i, std::size_t const j) const
 

Private Member Functions

std::size_t find (std::map< std::string, std::size_t > const &posmap, std::string const &name) const
 

Private Attributes

std::vector< std::string > const triggerPathNames_
 
std::string const processName_
 
fhicl::ParameterSet triggerPSet_ {}
 
std::map< std::string, std::size_t > trigPathNameToTrigBitPos_ {}
 
std::vector< std::vector< std::string > > moduleNames_ {}
 

Detailed Description

Definition at line 39 of file TriggerNamesService.h.

Constructor & Destructor Documentation

art::TriggerNamesService::TriggerNamesService ( std::vector< std::string > const &  triggerPathNames,
std::string const &  processName,
fhicl::ParameterSet const &  triggerPSet,
fhicl::ParameterSet const &  physicsPSet 
)

Definition at line 22 of file TriggerNamesService_service.cc.

References MECModelEnuComparisons::i, moduleNames_, processName_, triggerPathNames_, triggerPSet_, and trigPathNameToTrigBitPos_.

27  : triggerPathNames_{triggerPathNames}
28  , processName_{processName}
29  , triggerPSet_{triggerPSet}
30  {
31  size_t i{0};
32  for (auto const& pathname : triggerPathNames_) {
33  trigPathNameToTrigBitPos_[pathname] = i++;
34  moduleNames_.push_back(physicsPSet.get<vector<string>>(pathname));
35  }
36  }
std::map< std::string, std::size_t > trigPathNameToTrigBitPos_
std::string const processName_
fhicl::ParameterSet triggerPSet_
std::vector< std::string > const triggerPathNames_
std::vector< std::vector< std::string > > moduleNames_

Member Function Documentation

size_t art::TriggerNamesService::find ( std::map< std::string, std::size_t > const &  posmap,
std::string const &  name 
) const
private

Definition at line 69 of file TriggerNamesService_service.cc.

Referenced by findTrigPath().

71  {
72  auto const I = posmap.find(name);
73  if (I == posmap.cend()) {
74  return posmap.size();
75  }
76  return I->second;
77  }
const XML_Char * name
Definition: expat.h:151
size_t art::TriggerNamesService::findTrigPath ( std::string const &  name) const

Definition at line 80 of file TriggerNamesService_service.cc.

References find(), getTrigPathModule(), getTrigPathModules(), MECModelEnuComparisons::i, calib::j, moduleNames_, and trigPathNameToTrigBitPos_.

81  {
83  }
std::map< std::string, std::size_t > trigPathNameToTrigBitPos_
const XML_Char * name
Definition: expat.h:151
std::size_t find(std::map< std::string, std::size_t > const &posmap, std::string const &name) const
string const & art::TriggerNamesService::getProcessName ( ) const

Definition at line 39 of file TriggerNamesService_service.cc.

References processName_.

40  {
41  return processName_;
42  }
std::string const processName_
ParameterSet const & art::TriggerNamesService::getTriggerPSet ( ) const

Definition at line 45 of file TriggerNamesService_service.cc.

References triggerPSet_.

46  {
47  return triggerPSet_;
48  }
fhicl::ParameterSet triggerPSet_
string const & art::TriggerNamesService::getTrigPath ( std::size_t const  i) const

Definition at line 63 of file TriggerNamesService_service.cc.

References triggerPathNames_.

64  {
65  return triggerPathNames_.at(i);
66  }
std::vector< std::string > const triggerPathNames_
std::string const& art::TriggerNamesService::getTrigPathModule ( std::string const &  name,
std::size_t const  j 
) const

Referenced by findTrigPath().

std::string const& art::TriggerNamesService::getTrigPathModule ( std::size_t const  i,
std::size_t const  j 
) const
std::vector<std::string> const& art::TriggerNamesService::getTrigPathModules ( std::string const &  name) const

Referenced by findTrigPath().

std::vector<std::string> const& art::TriggerNamesService::getTrigPathModules ( std::size_t const  i) const
vector< string > const & art::TriggerNamesService::getTrigPaths ( ) const

Definition at line 51 of file TriggerNamesService_service.cc.

References triggerPathNames_.

52  {
53  return triggerPathNames_;
54  }
std::vector< std::string > const triggerPathNames_
size_t art::TriggerNamesService::size ( void  ) const

Definition at line 57 of file TriggerNamesService_service.cc.

References triggerPathNames_.

58  {
59  return triggerPathNames_.size();
60  }
std::vector< std::string > const triggerPathNames_

Member Data Documentation

std::vector<std::vector<std::string> > art::TriggerNamesService::moduleNames_ {}
private

Definition at line 94 of file TriggerNamesService.h.

Referenced by findTrigPath(), and TriggerNamesService().

std::string const art::TriggerNamesService::processName_
private

Definition at line 85 of file TriggerNamesService.h.

Referenced by getProcessName(), and TriggerNamesService().

std::vector<std::string> const art::TriggerNamesService::triggerPathNames_
private

Definition at line 83 of file TriggerNamesService.h.

Referenced by getTrigPath(), getTrigPaths(), size(), and TriggerNamesService().

fhicl::ParameterSet art::TriggerNamesService::triggerPSet_ {}
private

Definition at line 90 of file TriggerNamesService.h.

Referenced by getTriggerPSet(), and TriggerNamesService().

std::map<std::string, std::size_t> art::TriggerNamesService::trigPathNameToTrigBitPos_ {}
private

Definition at line 92 of file TriggerNamesService.h.

Referenced by findTrigPath(), and TriggerNamesService().


The documentation for this class was generated from the following files: