CMS 3D CMS Logo

Public Member Functions | Private Attributes

trigger::TriggerFilterObjectWithRefs Class Reference

#include <TriggerFilterObjectWithRefs.h>

Inheritance diagram for trigger::TriggerFilterObjectWithRefs:
trigger::TriggerRefsCollections

List of all members.

Public Member Functions

void addCollectionTag (const edm::InputTag &collectionTag)
 collectionTags
void getCollectionTags (std::vector< edm::InputTag > &collectionTags) const
const std::vector< std::string > & getCollectionTagsAsStrings () const
 low-level technical accessor
int module () const
int path () const
 accessors
void swap (TriggerFilterObjectWithRefs &other)
 utility
 TriggerFilterObjectWithRefs (int path, int module)
 TriggerFilterObjectWithRefs ()
 methods

Private Attributes

std::vector< std::string > collectionTags_
int module_
int path_
 data members

Detailed Description

Transient book-keeping EDProduct filled by HLTFilter module to record physics objects firing the filter (never persistet in production; same functionality but different implementation compared to the old HLT data model's HLTFilterObjectWithRefs class)

If HLT cuts of intermediate or final HLT filters are satisfied, instances of this class hold the combination of reconstructed physics objects (e/gamma/mu/jet/MMet...) satisfying the cuts.

This implementation is not completely space-efficient as some physics object containers may stay empty. However, the big advantage is that the solution is generic, i.e., works for all possible HLT filters. Hence we accept the reasonably small overhead of empty containers.

Date:
2010/02/15 17:40:49
Revision:
1.15
Author:
Martin Grunewald

Definition at line 38 of file TriggerFilterObjectWithRefs.h.


Constructor & Destructor Documentation

trigger::TriggerFilterObjectWithRefs::TriggerFilterObjectWithRefs ( ) [inline]

methods

constructors

Definition at line 49 of file TriggerFilterObjectWithRefs.h.

trigger::TriggerFilterObjectWithRefs::TriggerFilterObjectWithRefs ( int  path,
int  module 
) [inline]

Member Function Documentation

void trigger::TriggerFilterObjectWithRefs::addCollectionTag ( const edm::InputTag collectionTag) [inline]

collectionTags

Definition at line 66 of file TriggerFilterObjectWithRefs.h.

References collectionTags_, and edm::InputTag::encode().

                                                           {
      collectionTags_.push_back(collectionTag.encode());
    }
void trigger::TriggerFilterObjectWithRefs::getCollectionTags ( std::vector< edm::InputTag > &  collectionTags) const [inline]

Definition at line 70 of file TriggerFilterObjectWithRefs.h.

References collectionTags_, i, and n.

                                                                         {
      const trigger::size_type n(collectionTags_.size());
      collectionTags.resize(n);
      for (trigger::size_type i=0; i!=n; ++i) {
        collectionTags[i]=edm::InputTag(collectionTags_[i]);
      }
    }
const std::vector<std::string>& trigger::TriggerFilterObjectWithRefs::getCollectionTagsAsStrings ( ) const [inline]

low-level technical accessor

Definition at line 79 of file TriggerFilterObjectWithRefs.h.

References collectionTags_.

                                                                   {
      return collectionTags_;
    }
int trigger::TriggerFilterObjectWithRefs::module ( ) const [inline]

Definition at line 63 of file TriggerFilterObjectWithRefs.h.

References module_.

{return module_;}
int trigger::TriggerFilterObjectWithRefs::path ( ) const [inline]

accessors

Definition at line 62 of file TriggerFilterObjectWithRefs.h.

References path_.

{return path_;}
void trigger::TriggerFilterObjectWithRefs::swap ( TriggerFilterObjectWithRefs other) [inline]

utility

Definition at line 84 of file TriggerFilterObjectWithRefs.h.

References collectionTags_, module_, and path_.

Referenced by trigger::swap().

                                                   {
      TriggerRefsCollections::swap(other);                  // swap base instance
      std::swap(path_,           other.path_);
      std::swap(module_,         other.module_);
      std::swap(collectionTags_, other.collectionTags_);    // use specialized version for STL containers
    }

Member Data Documentation

std::vector<std::string> trigger::TriggerFilterObjectWithRefs::collectionTags_ [private]

Definition at line 43 of file TriggerFilterObjectWithRefs.h.

Referenced by module(), and swap().

data members

Definition at line 42 of file TriggerFilterObjectWithRefs.h.

Referenced by path(), and swap().