CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
HLTConfigProvider Class Reference

#include <HLTConfigProvider.h>

Public Member Functions

bool changed () const
 changed? More...
 
const std::vector< std::string > & datasetContent (unsigned int dataset) const
 names of trigger paths in dataset with index i More...
 
const std::vector< std::string > & datasetContent (const std::string &dataset) const
 names of trigger paths in dataset with name More...
 
const std::vector< std::vector
< std::string > > & 
datasetContents () const
 names of trigger paths for all datasets More...
 
unsigned int datasetIndex (const std::string &dataset) const
 index of dataset with name More...
 
const std::string & datasetName (unsigned int dataset) const
 name of dataset with index i More...
 
const std::vector< std::string > & datasetNames () const
 
void dump (const std::string &what) const
 Dumping config info to cout. More...
 
const std::string & globalTag () const
 global tag More...
 
 HLTConfigProvider ()
 c'tor More...
 
const std::vector< std::vector
< std::pair< bool, std::string > > > & 
hltL1GTSeeds () const
 
const std::vector< std::pair
< bool, std::string > > & 
hltL1GTSeeds (const std::string &trigger) const
 HLTLevel1GTSeed modules for trigger path with name. More...
 
const std::vector< std::pair
< bool, std::string > > & 
hltL1GTSeeds (unsigned int trigger) const
 HLTLevel1GTSeed modules for trigger path with index i. More...
 
const std::vector< std::vector
< std::string > > & 
hltL1TSeeds () const
 
const std::vector< std::string > & hltL1TSeeds (const std::string &trigger) const
 HLTL1TSeed modules for trigger path with name. More...
 
const std::vector< std::string > & hltL1TSeeds (unsigned int trigger) const
 HLTL1TSeed modules for trigger path with index i. More...
 
bool init (const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
 d'tor More...
 
bool inited () const
 Accessors (const methods) More...
 
unsigned int l1tType () const
 L1T type (0=unknown, 1=legacy/stage-1 or 2=stage-2) More...
 
const std::string moduleEDMType (const std::string &module) const
 C++ base class name of module. More...
 
unsigned int moduleIndex (unsigned int trigger, const std::string &module) const
 slot position of module on trigger path (0 to size-1) More...
 
unsigned int moduleIndex (const std::string &trigger, const std::string &module) const
 
const std::string & moduleLabel (unsigned int trigger, unsigned int module) const
 
const std::string & moduleLabel (const std::string &trigger, unsigned int module) const
 
const std::vector< std::string > & moduleLabels (unsigned int trigger) const
 label(s) of module(s) on a trigger path More...
 
const std::vector< std::string > & moduleLabels (const std::string &trigger) const
 
const edm::ParameterSetmodulePSet (const std::string &module) const
 ParameterSet of module. More...
 
const std::string moduleType (const std::string &module) const
 C++ class name of module. More...
 
const std::vector< std::string > & prescaleLabels () const
 low-level data member access More...
 
unsigned int prescaleSize () const
 
const std::map< std::string,
std::vector< unsigned int > > & 
prescaleTable () const
 
unsigned int prescaleValue (unsigned int set, const std::string &trigger) const
 HLT prescale value in specific prescale set for a specific trigger path. More...
 
const std::string & processName () const
 process name More...
 
const edm::ParameterSetprocessPSet () const
 ParameterSet of process. More...
 
bool saveTags (const std::string &module) const
 Is module an L3 filter (ie, tracked saveTags=true) More...
 
const std::vector< std::string > & saveTagsModules (unsigned int trigger) const
 
const std::vector< std::string > & saveTagsModules (const std::string &trigger) const
 
unsigned int size () const
 number of trigger paths in trigger table More...
 
unsigned int size (unsigned int trigger) const
 number of modules on a specific trigger path More...
 
unsigned int size (const std::string &trigger) const
 
const std::vector< std::string > & streamContent (unsigned int stream) const
 names of datasets in stream with index i More...
 
const std::vector< std::string > & streamContent (const std::string &stream) const
 names of datasets in stream with name More...
 
const std::vector< std::vector
< std::string > > & 
streamContents () const
 names of datasets for all streams More...
 
unsigned int streamIndex (const std::string &stream) const
 index of stream with name More...
 
const std::string & streamName (unsigned int stream) const
 name of stream with index i More...
 
const std::vector< std::string > & streamNames () const
 
const std::string & tableName () const
 HLT ConfDB table name. More...
 
unsigned int triggerIndex (const std::string &triggerName) const
 slot position of trigger path in trigger table (0 to size-1) More...
 
const std::string & triggerName (unsigned int triggerIndex) const
 
const std::vector< std::string > & triggerNames () const
 names of trigger paths More...
 

Static Public Member Functions

static const std::vector
< std::string > 
matched (const std::vector< std::string > &inputs, const std::string &pattern)
 regexp processing More...
 
static const std::string removeVersion (const std::string &trigger)
 
static const std::vector
< std::string > 
restoreVersion (const std::vector< std::string > &inputs, const std::string &trigger)
 

Private Member Functions

void clear ()
 
void getDataFrom (const edm::ParameterSetID &iID)
 
void init (const edm::ProcessHistory &iHistory, const std::string &processName)
 
void init (const std::string &processName)
 

Private Attributes

bool changed_
 
const HLTConfigDatahltConfigData_
 
bool inited_
 
std::string processName_
 data members More...
 

Detailed Description

This class provides access routines to get hold of the HLT Configuration

Author
Martin Grunewald

See header file for documentation

Author
Martin Grunewald

Definition at line 28 of file HLTConfigProvider.h.

Constructor & Destructor Documentation

HLTConfigProvider::HLTConfigProvider ( )

c'tor

Definition at line 30 of file HLTConfigProvider.cc.

Member Function Documentation

bool HLTConfigProvider::changed ( ) const
inline

changed?

Definition at line 56 of file HLTConfigProvider.h.

void HLTConfigProvider::clear ( void  )
private

Definition at line 224 of file HLTConfigProvider.cc.

const std::vector<std::string>& HLTConfigProvider::datasetContent ( unsigned int  dataset) const
inline

names of trigger paths in dataset with index i

Definition at line 233 of file HLTConfigProvider.h.

const std::vector<std::string>& HLTConfigProvider::datasetContent ( const std::string &  dataset) const
inline

names of trigger paths in dataset with name

Definition at line 237 of file HLTConfigProvider.h.

const std::vector<std::vector<std::string> >& HLTConfigProvider::datasetContents ( ) const
inline

names of trigger paths for all datasets

Definition at line 229 of file HLTConfigProvider.h.

unsigned int HLTConfigProvider::datasetIndex ( const std::string &  dataset) const
inline

index of dataset with name

Definition at line 225 of file HLTConfigProvider.h.

const std::string& HLTConfigProvider::datasetName ( unsigned int  dataset) const
inline

name of dataset with index i

Definition at line 221 of file HLTConfigProvider.h.

const std::vector<std::string>& HLTConfigProvider::datasetNames ( ) const
inline

Datasets list of names of all datasets

Definition at line 217 of file HLTConfigProvider.h.

void HLTConfigProvider::dump ( const std::string &  what) const
inline

Dumping config info to cout.

Definition at line 45 of file HLTConfigProvider.h.

Referenced by HLTPathSelector::beginRun().

void HLTConfigProvider::getDataFrom ( const edm::ParameterSetID iID)
private

Definition at line 118 of file HLTConfigProvider.cc.

const std::string& HLTConfigProvider::globalTag ( ) const
inline

global tag

Definition at line 66 of file HLTConfigProvider.h.

const std::vector<std::vector<std::pair<bool,std::string> > >& HLTConfigProvider::hltL1GTSeeds ( ) const
inline

HLTLevel1GTSeed module HLTLevel1GTSeed modules for all trigger paths

Definition at line 161 of file HLTConfigProvider.h.

const std::vector<std::pair<bool,std::string> >& HLTConfigProvider::hltL1GTSeeds ( const std::string &  trigger) const
inline

HLTLevel1GTSeed modules for trigger path with name.

Definition at line 165 of file HLTConfigProvider.h.

const std::vector<std::pair<bool,std::string> >& HLTConfigProvider::hltL1GTSeeds ( unsigned int  trigger) const
inline

HLTLevel1GTSeed modules for trigger path with index i.

Definition at line 169 of file HLTConfigProvider.h.

const std::vector<std::vector<std::string> >& HLTConfigProvider::hltL1TSeeds ( ) const
inline

HLTL1TSeed module HLTL1TSeed modules for all trigger paths

Definition at line 175 of file HLTConfigProvider.h.

const std::vector<std::string>& HLTConfigProvider::hltL1TSeeds ( const std::string &  trigger) const
inline

HLTL1TSeed modules for trigger path with name.

Definition at line 179 of file HLTConfigProvider.h.

const std::vector<std::string>& HLTConfigProvider::hltL1TSeeds ( unsigned int  trigger) const
inline

HLTL1TSeed modules for trigger path with index i.

Definition at line 183 of file HLTConfigProvider.h.

bool HLTConfigProvider::init ( const edm::Run iRun,
const edm::EventSetup iSetup,
const std::string &  processName,
bool &  changed 
)

d'tor

Run-dependent initialisation (non-const method) "init" return value indicates whether intitialisation has succeeded "changed" parameter indicates whether the config has actually changed

Definition at line 38 of file HLTConfigProvider.cc.

Referenced by HLTPathSelector::beginRun(), SUSY_HLT_MuonFakes::dqmBeginRun(), SUSY_HLT_ElecFakes::dqmBeginRun(), and HLTMuonOfflineAnalyzer::dqmBeginRun().

void HLTConfigProvider::init ( const edm::ProcessHistory iHistory,
const std::string &  processName 
)
private

Check uniqueness (uniqueness should [soon] be enforced by Fw)

Definition at line 57 of file HLTConfigProvider.cc.

void HLTConfigProvider::init ( const std::string &  processName)
private

Definition at line 157 of file HLTConfigProvider.cc.

bool HLTConfigProvider::inited ( ) const
inline

Accessors (const methods)

initialised?

Definition at line 52 of file HLTConfigProvider.h.

unsigned int HLTConfigProvider::l1tType ( ) const
inline

L1T type (0=unknown, 1=legacy/stage-1 or 2=stage-2)

Definition at line 155 of file HLTConfigProvider.h.

const std::vector< std::string > HLTConfigProvider::matched ( const std::vector< std::string > &  inputs,
const std::string &  pattern 
)
static

regexp processing

Definition at line 238 of file HLTConfigProvider.cc.

const std::string HLTConfigProvider::moduleEDMType ( const std::string &  module) const
inline

C++ base class name of module.

Definition at line 134 of file HLTConfigProvider.h.

unsigned int HLTConfigProvider::moduleIndex ( unsigned int  trigger,
const std::string &  module 
) const
inline

slot position of module on trigger path (0 to size-1)

Definition at line 121 of file HLTConfigProvider.h.

unsigned int HLTConfigProvider::moduleIndex ( const std::string &  trigger,
const std::string &  module 
) const
inline

Definition at line 124 of file HLTConfigProvider.h.

const std::string& HLTConfigProvider::moduleLabel ( unsigned int  trigger,
unsigned int  module 
) const
inline

Definition at line 113 of file HLTConfigProvider.h.

const std::string& HLTConfigProvider::moduleLabel ( const std::string &  trigger,
unsigned int  module 
) const
inline

Definition at line 116 of file HLTConfigProvider.h.

const std::vector<std::string>& HLTConfigProvider::moduleLabels ( unsigned int  trigger) const
inline

label(s) of module(s) on a trigger path

Definition at line 101 of file HLTConfigProvider.h.

Referenced by HLTMuonOfflineAnalyzer::moduleLabels().

const std::vector<std::string>& HLTConfigProvider::moduleLabels ( const std::string &  trigger) const
inline

Definition at line 104 of file HLTConfigProvider.h.

const edm::ParameterSet& HLTConfigProvider::modulePSet ( const std::string &  module) const
inline

ParameterSet of module.

Definition at line 144 of file HLTConfigProvider.h.

const std::string HLTConfigProvider::moduleType ( const std::string &  module) const
inline

C++ class name of module.

Definition at line 129 of file HLTConfigProvider.h.

const std::vector<std::string>& HLTConfigProvider::prescaleLabels ( ) const
inline

low-level data member access

Definition at line 253 of file HLTConfigProvider.h.

unsigned int HLTConfigProvider::prescaleSize ( ) const
inline

HLT prescale info Number of HLT prescale sets

Definition at line 244 of file HLTConfigProvider.h.

const std::map<std::string,std::vector<unsigned int> >& HLTConfigProvider::prescaleTable ( ) const
inline

Definition at line 256 of file HLTConfigProvider.h.

unsigned int HLTConfigProvider::prescaleValue ( unsigned int  set,
const std::string &  trigger 
) const
inline

HLT prescale value in specific prescale set for a specific trigger path.

Definition at line 248 of file HLTConfigProvider.h.

const std::string& HLTConfigProvider::processName ( ) const
inline

process name

Definition at line 61 of file HLTConfigProvider.h.

const edm::ParameterSet& HLTConfigProvider::processPSet ( ) const
inline

ParameterSet of process.

Definition at line 139 of file HLTConfigProvider.h.

const std::string HLTConfigProvider::removeVersion ( const std::string &  trigger)
static

Definition at line 249 of file HLTConfigProvider.cc.

const std::vector< std::string > HLTConfigProvider::restoreVersion ( const std::vector< std::string > &  inputs,
const std::string &  trigger 
)
static

Definition at line 254 of file HLTConfigProvider.cc.

bool HLTConfigProvider::saveTags ( const std::string &  module) const
inline

Is module an L3 filter (ie, tracked saveTags=true)

Definition at line 149 of file HLTConfigProvider.h.

const std::vector<std::string>& HLTConfigProvider::saveTagsModules ( unsigned int  trigger) const
inline

Definition at line 107 of file HLTConfigProvider.h.

const std::vector<std::string>& HLTConfigProvider::saveTagsModules ( const std::string &  trigger) const
inline

Definition at line 110 of file HLTConfigProvider.h.

unsigned int HLTConfigProvider::size ( void  ) const
inline

number of trigger paths in trigger table

Definition at line 76 of file HLTConfigProvider.h.

Referenced by HLTPathSelector::beginRun(), and HLTPathSelector::filter().

unsigned int HLTConfigProvider::size ( unsigned int  trigger) const
inline

number of modules on a specific trigger path

Definition at line 80 of file HLTConfigProvider.h.

unsigned int HLTConfigProvider::size ( const std::string &  trigger) const
inline

Definition at line 83 of file HLTConfigProvider.h.

const std::vector<std::string>& HLTConfigProvider::streamContent ( unsigned int  stream) const
inline

names of datasets in stream with index i

Definition at line 206 of file HLTConfigProvider.h.

const std::vector<std::string>& HLTConfigProvider::streamContent ( const std::string &  stream) const
inline

names of datasets in stream with name

Definition at line 210 of file HLTConfigProvider.h.

const std::vector<std::vector<std::string> >& HLTConfigProvider::streamContents ( ) const
inline

names of datasets for all streams

Definition at line 202 of file HLTConfigProvider.h.

unsigned int HLTConfigProvider::streamIndex ( const std::string &  stream) const
inline

index of stream with name

Definition at line 198 of file HLTConfigProvider.h.

const std::string& HLTConfigProvider::streamName ( unsigned int  stream) const
inline

name of stream with index i

Definition at line 194 of file HLTConfigProvider.h.

const std::vector<std::string>& HLTConfigProvider::streamNames ( ) const
inline

Streams list of names of all streams

Definition at line 190 of file HLTConfigProvider.h.

const std::string& HLTConfigProvider::tableName ( ) const
inline

HLT ConfDB table name.

Definition at line 71 of file HLTConfigProvider.h.

unsigned int HLTConfigProvider::triggerIndex ( const std::string &  triggerName) const
inline

slot position of trigger path in trigger table (0 to size-1)

Definition at line 96 of file HLTConfigProvider.h.

Referenced by HLTPathSelector::beginRun().

const std::string& HLTConfigProvider::triggerName ( unsigned int  triggerIndex) const
inline

Definition at line 91 of file HLTConfigProvider.h.

const std::vector<std::string>& HLTConfigProvider::triggerNames ( ) const
inline

Member Data Documentation

bool HLTConfigProvider::changed_
private

Definition at line 275 of file HLTConfigProvider.h.

const HLTConfigData* HLTConfigProvider::hltConfigData_
private

Definition at line 276 of file HLTConfigProvider.h.

bool HLTConfigProvider::inited_
private

Definition at line 274 of file HLTConfigProvider.h.

std::string HLTConfigProvider::processName_
private

data members

Definition at line 273 of file HLTConfigProvider.h.