CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types | Private Attributes
edm::TriggerResults Class Reference

#include <TriggerResults.h>

Inheritance diagram for edm::TriggerResults:
edm::HLTGlobalStatus edm::DoNotRecordParents

Public Member Functions

unsigned int find (const std::string &name) const
 Obsolete. More...
 
const std::vector< std::string > & getTriggerNames () const
 Obsolete. More...
 
const std::string & name (unsigned int i) const
 Obsolete. More...
 
TriggerResultsoperator= (TriggerResults const &rhs)
 Copy assignment using swap. More...
 
const ParameterSetIDparameterSetID () const
 Get stored parameter set id. More...
 
void swap (TriggerResults &other)
 swap function More...
 
 TriggerResults ()
 Trivial contructor. More...
 
 TriggerResults (const HLTGlobalStatus &hlt, const edm::ParameterSetID &psetid)
 Standard contructor. More...
 
 TriggerResults (const HLTGlobalStatus &hlt, const Strings &names)
 Not used anymore. More...
 
- Public Member Functions inherited from edm::HLTGlobalStatus
bool accept () const
 Has at least one path accepted the event? More...
 
bool accept (const unsigned int i) const
 Has ith path accepted the event? More...
 
HLTPathStatusat (const unsigned int i)
 
const HLTPathStatusat (const unsigned int i) const
 
bool error () const
 Has any path encountered an error (exception) More...
 
bool error (const unsigned int i) const
 Has ith path encountered an error (exception)? More...
 
 HLTGlobalStatus (const unsigned int n=0)
 Constructor - for n paths. More...
 
unsigned int index (const unsigned int i) const
 Get index (slot position) of module giving the decision of the ith path. More...
 
HLTGlobalStatusoperator= (HLTGlobalStatus const &rhs)
 copy assignment implemented with swap() More...
 
HLTPathStatusoperator[] (const unsigned int i)
 
const HLTPathStatusoperator[] (const unsigned int i) const
 
void reset ()
 Reset status for all paths. More...
 
void reset (const unsigned int i)
 Reset the ith path. More...
 
unsigned int size () const
 Get number of paths stored. More...
 
hlt::HLTState state (const unsigned int i) const
 Get status of ith path. More...
 
void swap (HLTGlobalStatus &other)
 swap function More...
 
bool wasrun () const
 Was at least one path run? More...
 
bool wasrun (const unsigned int i) const
 Was ith path run? More...
 

Private Types

typedef std::vector< std::string > Strings
 

Private Attributes

Strings names_
 Not used anymore. More...
 
edm::ParameterSetID psetid_
 Parameter set id. More...
 

Detailed Description

Original Authors: Jim Kowalkowski 13-01-06 Martin Grunewald

The trigger path results are maintained here as a sequence of entries, one per trigger path. They are assigned in the order they appeared in the process-level pset. (They are actually stored in the base class HLTGlobalStatus)

The ParameterSetID can be used to get a ParameterSet from the registry of parameter sets. This ParameterSet contains a vector<string> named "trigger_paths" that contains the trigger path names in the same order as the trigger path results stored here.

The vector<string> contained in this class is empty and no longer used. It is kept for backward compatibility reasons. In early versions of the code, the trigger results paths names were stored there.

Definition at line 35 of file TriggerResults.h.

Member Typedef Documentation

◆ Strings

typedef std::vector<std::string> edm::TriggerResults::Strings
private

Definition at line 36 of file TriggerResults.h.

Constructor & Destructor Documentation

◆ TriggerResults() [1/3]

edm::TriggerResults::TriggerResults ( )
inline

Trivial contructor.

Definition at line 47 of file TriggerResults.h.

47 : HLTGlobalStatus(), psetid_(), names_() {}

◆ TriggerResults() [2/3]

edm::TriggerResults::TriggerResults ( const HLTGlobalStatus hlt,
const edm::ParameterSetID psetid 
)
inline

Standard contructor.

Definition at line 50 of file TriggerResults.h.

51  : HLTGlobalStatus(hlt), psetid_(psetid), names_() {}

◆ TriggerResults() [3/3]

edm::TriggerResults::TriggerResults ( const HLTGlobalStatus hlt,
const Strings names 
)
inline

Not used anymore.

Definition at line 54 of file TriggerResults.h.

Member Function Documentation

◆ find()

unsigned int edm::TriggerResults::find ( const std::string &  name) const
inline

Obsolete.

Definition at line 84 of file TriggerResults.h.

84  {
85  const unsigned int n(size());
86  for (unsigned int i = 0; i != n; ++i)
87  if (names_[i] == name)
88  return i;
89  return n;
90  }

References mps_fire::i, dqmiodumpmetadata::n, name(), names_, and edm::HLTGlobalStatus::size().

Referenced by BeautifulSoup.Tag::__getattr__(), and BeautifulSoup.Tag::firstText().

◆ getTriggerNames()

const std::vector<std::string>& edm::TriggerResults::getTriggerNames ( ) const
inline

Obsolete.

Definition at line 78 of file TriggerResults.h.

78 { return names_; }

References names_.

Referenced by TriggerOutputBranches::updateTriggerNames().

◆ name()

const std::string& edm::TriggerResults::name ( unsigned int  i) const
inline

Obsolete.

Definition at line 81 of file TriggerResults.h.

81 { return names_.at(i); }

References mps_fire::i, and names_.

Referenced by config.CFG::__str__(), validation.Sample::digest(), find(), and VIDSelectorBase.VIDSelectorBase::initialize().

◆ operator=()

TriggerResults& edm::TriggerResults::operator= ( TriggerResults const &  rhs)
inline

Copy assignment using swap.

Definition at line 68 of file TriggerResults.h.

68  {
69  TriggerResults temp(rhs);
70  this->swap(temp);
71  return *this;
72  }

References swap(), and groupFilesInBlocks::temp.

◆ parameterSetID()

const ParameterSetID& edm::TriggerResults::parameterSetID ( ) const
inline

◆ swap()

void edm::TriggerResults::swap ( TriggerResults other)
inline

swap function

Definition at line 60 of file TriggerResults.h.

60  {
62  psetid_.swap(other.psetid_);
63  // next line not used any more
64  names_.swap(other.names_);
65  }

References names_, trackingPlots::other, psetid_, edm::Hash< I >::swap(), and edm::HLTGlobalStatus::swap().

Referenced by operator=(), and edm::swap().

Member Data Documentation

◆ names_

Strings edm::TriggerResults::names_
private

Not used anymore.

Definition at line 43 of file TriggerResults.h.

Referenced by find(), getTriggerNames(), name(), and swap().

◆ psetid_

edm::ParameterSetID edm::TriggerResults::psetid_
private

Parameter set id.

Definition at line 40 of file TriggerResults.h.

Referenced by parameterSetID(), and swap().

edm::HLTGlobalStatus::HLTGlobalStatus
HLTGlobalStatus(const unsigned int n=0)
Constructor - for n paths.
Definition: HLTGlobalStatus.h:32
mps_fire.i
i
Definition: mps_fire.py:355
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
edm::Hash::swap
void swap(Hash< I > &other)
Definition: Hash.h:181
edm::HLTGlobalStatus::swap
void swap(HLTGlobalStatus &other)
swap function
Definition: HLTGlobalStatus.h:74
groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
edm::TriggerResults::swap
void swap(TriggerResults &other)
swap function
Definition: TriggerResults.h:60
names
const std::string names[nVars_]
Definition: PhotonIDValueMapProducer.cc:122
edm::HLTGlobalStatus::size
unsigned int size() const
Get number of paths stored.
Definition: HLTGlobalStatus.h:35
edm::TriggerResults::psetid_
edm::ParameterSetID psetid_
Parameter set id.
Definition: TriggerResults.h:40
trackingPlots.other
other
Definition: trackingPlots.py:1465
edm::TriggerResults::TriggerResults
TriggerResults()
Trivial contructor.
Definition: TriggerResults.h:47
edm::TriggerResults::names_
Strings names_
Not used anymore.
Definition: TriggerResults.h:43
ValidationMatrix.hlt
hlt
Definition: ValidationMatrix.py:459
edm::TriggerResults::name
const std::string & name(unsigned int i) const
Obsolete.
Definition: TriggerResults.h:81