CMS 3D CMS Logo

Public Member Functions | Private Types | Private Attributes

edm::TriggerResults Class Reference

#include <TriggerResults.h>

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

List of all members.

Public Member Functions

unsigned int find (const std::string &name) const
 Obsolete.
const std::vector< std::string > & getTriggerNames () const
 Obsolete.
const std::string & name (unsigned int i) const
 Obsolete.
TriggerResultsoperator= (TriggerResults const &rhs)
 Copy assignment using swap.
const ParameterSetIDparameterSetID () const
 Get stored parameter set id.
void swap (TriggerResults &other)
 swap function
 TriggerResults (const HLTGlobalStatus &hlt, const edm::ParameterSetID &psetid)
 Standard contructor.
 TriggerResults (const HLTGlobalStatus &hlt, const Strings &names)
 Not used anymore.
 TriggerResults ()
 Trivial contructor.

Private Types

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

Private Attributes

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

Detailed Description

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

Id:
TriggerResults.h,v 1.12 2008/09/05 20:02:40 wdd Exp

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 38 of file TriggerResults.h.


Member Typedef Documentation

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

Definition at line 40 of file TriggerResults.h.


Constructor & Destructor Documentation

edm::TriggerResults::TriggerResults ( ) [inline]

Trivial contructor.

Definition at line 52 of file TriggerResults.h.

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

Standard contructor.

Definition at line 55 of file TriggerResults.h.

      : HLTGlobalStatus(hlt), psetid_(psetid), names_() { }
edm::TriggerResults::TriggerResults ( const HLTGlobalStatus hlt,
const Strings names 
) [inline]

Not used anymore.

Definition at line 59 of file TriggerResults.h.


Member Function Documentation

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

Obsolete.

Definition at line 90 of file TriggerResults.h.

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

                                                    {
      const unsigned int n(size());
      for (unsigned int i = 0; i != n; ++i) if (names_[i] == name) return i;
      return n;
    }
const std::vector<std::string>& edm::TriggerResults::getTriggerNames ( ) const [inline]

Obsolete.

Definition at line 84 of file TriggerResults.h.

References names_.

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

{ return names_; }
const std::string& edm::TriggerResults::name ( unsigned int  i) const [inline]

Obsolete.

Definition at line 87 of file TriggerResults.h.

References names_.

{return names_.at(i);}
TriggerResults& edm::TriggerResults::operator= ( TriggerResults const &  rhs) [inline]

Copy assignment using swap.

Definition at line 74 of file TriggerResults.h.

References swap(), and groupFilesInBlocks::temp.

                                                         {
      TriggerResults temp(rhs);
      this->swap(temp);
      return *this;
    }
const ParameterSetID& edm::TriggerResults::parameterSetID ( ) const [inline]
void edm::TriggerResults::swap ( TriggerResults other) [inline]

swap function

Definition at line 66 of file TriggerResults.h.

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

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

                                     {
      this->HLTGlobalStatus::swap(other);
      psetid_.swap(other.psetid_);
      // next line not used any more
      names_.swap(other.names_);
    }

Member Data Documentation

Not used anymore.

Definition at line 47 of file TriggerResults.h.

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

Parameter set id.

Definition at line 44 of file TriggerResults.h.

Referenced by parameterSetID(), and swap().