CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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...
 
const HLTPathStatusat (const unsigned int i) const
 
HLTPathStatusat (const unsigned int i)
 
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...
 
const HLTPathStatusoperator[] (const unsigned int i) const
 
HLTPathStatusoperator[] (const unsigned int i)
 
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 37 of file TriggerResults.h.

Member Typedef Documentation

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

Definition at line 39 of file TriggerResults.h.

Constructor & Destructor Documentation

edm::TriggerResults::TriggerResults ( )
inline

Trivial contructor.

Definition at line 51 of file TriggerResults.h.

51 : HLTGlobalStatus(), psetid_(), names_() { }
Strings names_
Not used anymore.
edm::ParameterSetID psetid_
Parameter set id.
HLTGlobalStatus(const unsigned int n=0)
Constructor - for n paths.
edm::TriggerResults::TriggerResults ( const HLTGlobalStatus hlt,
const edm::ParameterSetID psetid 
)
inline

Standard contructor.

Definition at line 54 of file TriggerResults.h.

55  : HLTGlobalStatus(hlt), psetid_(psetid), names_() { }
Strings names_
Not used anymore.
edm::ParameterSetID psetid_
Parameter set id.
HLTGlobalStatus(const unsigned int n=0)
Constructor - for n paths.
edm::TriggerResults::TriggerResults ( const HLTGlobalStatus hlt,
const Strings names 
)
inline

Not used anymore.

Definition at line 58 of file TriggerResults.h.

static const HistoName names[]
Strings names_
Not used anymore.
edm::ParameterSetID psetid_
Parameter set id.
HLTGlobalStatus(const unsigned int n=0)
Constructor - for n paths.

Member Function Documentation

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

Obsolete.

Definition at line 89 of file TriggerResults.h.

References i, gen::n, names_, and edm::HLTGlobalStatus::size().

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

89  {
90  const unsigned int n(size());
91  for (unsigned int i = 0; i != n; ++i) if (names_[i] == name) return i;
92  return n;
93  }
int i
Definition: DBlmapReader.cc:9
const std::string & name(unsigned int i) const
Obsolete.
unsigned int size() const
Get number of paths stored.
Strings names_
Not used anymore.
const std::vector<std::string>& edm::TriggerResults::getTriggerNames ( ) const
inline

Obsolete.

Definition at line 83 of file TriggerResults.h.

References names_.

Referenced by edm::service::TriggerNamesService::getTrigPaths(), and edm::EventBase::triggerNames_().

83 { return names_; }
Strings names_
Not used anymore.
const std::string& edm::TriggerResults::name ( unsigned int  i) const
inline
TriggerResults& edm::TriggerResults::operator= ( TriggerResults const &  rhs)
inline

Copy assignment using swap.

Definition at line 73 of file TriggerResults.h.

References swap(), and groupFilesInBlocks::temp.

73  {
74  TriggerResults temp(rhs);
75  this->swap(temp);
76  return *this;
77  }
TriggerResults()
Trivial contructor.
void swap(TriggerResults &other)
swap function
const ParameterSetID& edm::TriggerResults::parameterSetID ( ) const
inline
void edm::TriggerResults::swap ( TriggerResults other)
inline

swap function

Definition at line 65 of file TriggerResults.h.

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

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

65  {
66  this->HLTGlobalStatus::swap(other);
67  psetid_.swap(other.psetid_);
68  // next line not used any more
69  names_.swap(other.names_);
70  }
void swap(Hash< I > &other)
Definition: Hash.h:206
void swap(HLTGlobalStatus &other)
swap function
Strings names_
Not used anymore.
edm::ParameterSetID psetid_
Parameter set id.

Member Data Documentation

Strings edm::TriggerResults::names_
private

Not used anymore.

Definition at line 46 of file TriggerResults.h.

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

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

Parameter set id.

Definition at line 43 of file TriggerResults.h.

Referenced by parameterSetID(), and swap().