CMS 3D CMS Logo

Classes | Public Member Functions | Private Attributes

trigger::TriggerEventWithRefs Class Reference

#include <TriggerEventWithRefs.h>

Inheritance diagram for trigger::TriggerEventWithRefs:
trigger::TriggerRefsCollections edm::DoNotRecordParents

List of all members.

Classes

class  TriggerFilterObject
 Helper class: trigger objects firing a single filter. More...

Public Member Functions

void addFilterObject (const edm::InputTag &filterTag, const TriggerFilterObjectWithRefs &tfowr)
 setters - to build EDProduct
std::pair< size_type, size_typebasemetSlice (size_type filter) const
std::pair< size_type, size_typecalometSlice (size_type filter) const
std::pair< size_type, size_typecompositeSlice (size_type filter) const
std::pair< size_type, size_typeelectronSlice (size_type filter) const
size_type filterIndex (const edm::InputTag &filterTag) const
 index from tag
const edm::InputTag filterTag (size_type filterIndex) const
 tag from index
void getObjects (size_type filter, Vids &ids, VRl1etmiss &l1etmiss) const
void getObjects (size_type filter, Vids &ids, VRl1muon &l1muon) const
void getObjects (size_type filter, int id, VRbasemet &basemets) const
void getObjects (size_type filter, Vids &ids, VRcalomet &calomets) const
void getObjects (size_type filter, int id, VRcalomet &calomets) const
void getObjects (size_type filter, Vids &ids, VRpixtrack &pixtracks) const
void getObjects (size_type filter, int id, VRpixtrack &pixtracks) const
void getObjects (size_type filter, Vids &ids, VRl1em &l1em) const
void getObjects (size_type filter, int id, VRl1em &l1em) const
void getObjects (size_type filter, Vids &ids, VRbasemet &basemets) const
void getObjects (size_type filter, Vids &ids, VRphoton &photons) const
 extract Ref<C>s for a specific filter and of specific physics type
void getObjects (size_type filter, Vids &ids, VRcomposite &composites) const
void getObjects (size_type filter, int id, VRl1muon &l1muon) const
void getObjects (size_type filter, Vids &ids, VRjet &jets) const
void getObjects (size_type filter, int id, VRmuon &muons) const
void getObjects (size_type filter, Vids &ids, VRl1jet &l1jet) const
void getObjects (size_type filter, int id, VRl1jet &l1jet) const
void getObjects (size_type filter, int id, VRphoton &photons) const
void getObjects (size_type filter, int id, VRl1etmiss &l1etmiss) const
void getObjects (size_type filter, Vids &ids, VRelectron &electrons) const
void getObjects (size_type filter, int id, VRelectron &electrons) const
void getObjects (size_type filter, Vids &ids, VRmuon &muons) const
void getObjects (size_type filter, Vids &ids, VRl1hfrings &l1hfrings) const
void getObjects (size_type filter, int id, VRl1hfrings &l1hfrings) const
void getObjects (size_type filter, int id, VRjet &jets) const
void getObjects (size_type filter, int id, VRcomposite &composites) const
std::pair< size_type, size_typejetSlice (size_type filter) const
std::pair< size_type, size_typel1emSlice (size_type filter) const
std::pair< size_type, size_typel1etmissSlice (size_type filter) const
std::pair< size_type, size_typel1hfringsSlice (size_type filter) const
std::pair< size_type, size_typel1jetSlice (size_type filter) const
std::pair< size_type, size_typel1muonSlice (size_type filter) const
std::pair< size_type, size_typemuonSlice (size_type filter) const
std::pair< size_type, size_typephotonSlice (size_type filter) const
 slices of objects for a specific filter: [begin,end[
std::pair< size_type, size_typepixtrackSlice (size_type filter) const
size_type size () const
 number of filters
 TriggerEventWithRefs ()
 methods
 TriggerEventWithRefs (const std::string &usedProcessName, size_type n)
const std::string & usedProcessName () const
 getters - for user access

Private Attributes

std::vector< TriggerFilterObjectfilterObjects_
 the filters recorded here
std::string usedProcessName_
 data members

Detailed Description

The single EDProduct to be saved in addition for each event

The single EDProduct to be saved for events (RAW case) describing the details of the (HLT) trigger table

Date:
2009/06/20 16:56:37
Revision:
1.22
Author:
Martin Grunewald

Definition at line 30 of file TriggerEventWithRefs.h.


Constructor & Destructor Documentation

trigger::TriggerEventWithRefs::TriggerEventWithRefs ( ) [inline]

methods

constructors

Definition at line 78 of file TriggerEventWithRefs.h.

trigger::TriggerEventWithRefs::TriggerEventWithRefs ( const std::string &  usedProcessName,
size_type  n 
) [inline]

Member Function Documentation

void trigger::TriggerEventWithRefs::addFilterObject ( const edm::InputTag filterTag,
const TriggerFilterObjectWithRefs tfowr 
) [inline]

setters - to build EDProduct

Definition at line 88 of file TriggerEventWithRefs.h.

References trigger::TriggerRefsCollections::addObjects(), trigger::TriggerRefsCollections::basemetIds(), trigger::TriggerRefsCollections::basemetRefs(), trigger::TriggerRefsCollections::calometIds(), trigger::TriggerRefsCollections::calometRefs(), trigger::TriggerRefsCollections::compositeIds(), trigger::TriggerRefsCollections::compositeRefs(), trigger::TriggerRefsCollections::electronIds(), trigger::TriggerRefsCollections::electronRefs(), filterObjects_, trigger::TriggerRefsCollections::jetIds(), trigger::TriggerRefsCollections::jetRefs(), trigger::TriggerRefsCollections::l1emIds(), trigger::TriggerRefsCollections::l1emRefs(), trigger::TriggerRefsCollections::l1etmissIds(), trigger::TriggerRefsCollections::l1etmissRefs(), trigger::TriggerRefsCollections::l1hfringsIds(), trigger::TriggerRefsCollections::l1hfringsRefs(), trigger::TriggerRefsCollections::l1jetIds(), trigger::TriggerRefsCollections::l1jetRefs(), trigger::TriggerRefsCollections::l1muonIds(), trigger::TriggerRefsCollections::l1muonRefs(), trigger::TriggerRefsCollections::muonIds(), trigger::TriggerRefsCollections::muonRefs(), trigger::TriggerRefsCollections::photonIds(), trigger::TriggerRefsCollections::photonRefs(), trigger::TriggerRefsCollections::pixtrackIds(), and trigger::TriggerRefsCollections::pixtrackRefs().

                                                                                                 {
      filterObjects_.push_back(
        TriggerFilterObject(filterTag, 
                            addObjects(tfowr.photonIds(),tfowr.photonRefs()),
                            addObjects(tfowr.electronIds(),tfowr.electronRefs()),
                            addObjects(tfowr.muonIds(),tfowr.muonRefs()),
                            addObjects(tfowr.jetIds(),tfowr.jetRefs()),
                            addObjects(tfowr.compositeIds(),tfowr.compositeRefs()),
                            addObjects(tfowr.basemetIds(),tfowr.basemetRefs()),
                            addObjects(tfowr.calometIds(),tfowr.calometRefs()),
                            addObjects(tfowr.pixtrackIds(),tfowr.pixtrackRefs()),
                            addObjects(tfowr.l1emIds(),tfowr.l1emRefs()),
                            addObjects(tfowr.l1muonIds(),tfowr.l1muonRefs()),
                            addObjects(tfowr.l1jetIds(),tfowr.l1jetRefs()),
                            addObjects(tfowr.l1etmissIds(),tfowr.l1etmissRefs()),
                            addObjects(tfowr.l1hfringsIds(),tfowr.l1hfringsRefs())
                           )
        );
    }
std::pair<size_type,size_type> trigger::TriggerEventWithRefs::basemetSlice ( size_type  filter) const [inline]

Definition at line 161 of file TriggerEventWithRefs.h.

References begin, end, and filterObjects_.

Referenced by getObjects().

                                                                      {
      const size_type begin(filter==0? 0 : filterObjects_.at(filter-1).basemets_);
      const size_type end(filterObjects_.at(filter).basemets_);
      return std::pair<size_type,size_type>(begin,end);
    }
std::pair<size_type,size_type> trigger::TriggerEventWithRefs::calometSlice ( size_type  filter) const [inline]

Definition at line 167 of file TriggerEventWithRefs.h.

References begin, end, and filterObjects_.

Referenced by getObjects().

                                                                      {
      const size_type begin(filter==0? 0 : filterObjects_.at(filter-1).calomets_);
      const size_type end(filterObjects_.at(filter).calomets_);
      return std::pair<size_type,size_type>(begin,end);
    }
std::pair<size_type,size_type> trigger::TriggerEventWithRefs::compositeSlice ( size_type  filter) const [inline]

Definition at line 155 of file TriggerEventWithRefs.h.

References begin, end, and filterObjects_.

Referenced by getObjects().

                                                                        {
      const size_type begin(filter==0? 0 : filterObjects_.at(filter-1).composites_);
      const size_type end(filterObjects_.at(filter).composites_);
      return std::pair<size_type,size_type>(begin,end);
    }
std::pair<size_type,size_type> trigger::TriggerEventWithRefs::electronSlice ( size_type  filter) const [inline]

Definition at line 137 of file TriggerEventWithRefs.h.

References begin, end, and filterObjects_.

Referenced by getObjects().

                                                                       {
      const size_type begin(filter==0? 0 : filterObjects_.at(filter-1).electrons_);
      const size_type end(filterObjects_.at(filter).electrons_);
      return std::pair<size_type,size_type>(begin,end);
    }
size_type trigger::TriggerEventWithRefs::filterIndex ( const edm::InputTag filterTag) const [inline]

index from tag

Definition at line 120 of file TriggerEventWithRefs.h.

References edm::InputTag::encode(), filterObjects_, i, and n.

                                                              {
      const std::string encodedFilterTag (filterTag.encode());
      const size_type n(filterObjects_.size());
      for (size_type i=0; i!=n; ++i) {
        if (encodedFilterTag==filterObjects_[i].filterTag_) {return i;}
      }
      return n;
    }
const edm::InputTag trigger::TriggerEventWithRefs::filterTag ( size_type  filterIndex) const [inline]

tag from index

Definition at line 115 of file TriggerEventWithRefs.h.

References filterObjects_.

                                                             {
      return edm::InputTag(filterObjects_.at(filterIndex).filterTag_);
    }
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRl1jet l1jet 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRphoton photons 
) const [inline]

extract Ref<C>s for a specific filter and of specific physics type

Definition at line 212 of file TriggerEventWithRefs.h.

References begin, end, first, photonSlice(), and edm::second().

Referenced by HLTTauDQMPathPlotter::getFilterCollection(), and getObjects().

void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRcalomet calomets 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRpixtrack pixtracks 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRpixtrack pixtracks 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRl1em l1em 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRl1em l1em 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRcalomet calomets 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRl1muon l1muon 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRl1muon l1muon 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRl1jet l1jet 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRcomposite composites 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRl1etmiss l1etmiss 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRjet jets 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRphoton photons 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRmuon muons 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRelectron electrons 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRl1hfrings l1hfrings 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRelectron electrons 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRl1etmiss l1etmiss 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRl1hfrings l1hfrings 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRmuon muons 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRjet jets 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRbasemet basemets 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRcomposite composites 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRbasemet basemets 
) const [inline]
std::pair<size_type,size_type> trigger::TriggerEventWithRefs::jetSlice ( size_type  filter) const [inline]

Definition at line 149 of file TriggerEventWithRefs.h.

References begin, end, and filterObjects_.

Referenced by getObjects().

                                                                  {
      const size_type begin(filter==0? 0 : filterObjects_.at(filter-1).jets_);
      const size_type end(filterObjects_.at(filter).jets_);
      return std::pair<size_type,size_type>(begin,end);
    }
std::pair<size_type,size_type> trigger::TriggerEventWithRefs::l1emSlice ( size_type  filter) const [inline]

Definition at line 179 of file TriggerEventWithRefs.h.

References begin, end, and filterObjects_.

Referenced by getObjects().

                                                                   {
      const size_type begin(filter==0? 0 : filterObjects_.at(filter-1).l1em_);
      const size_type end(filterObjects_.at(filter).l1em_);
      return std::pair<size_type,size_type>(begin,end);
    }
std::pair<size_type,size_type> trigger::TriggerEventWithRefs::l1etmissSlice ( size_type  filter) const [inline]

Definition at line 197 of file TriggerEventWithRefs.h.

References begin, end, and filterObjects_.

Referenced by getObjects().

                                                                       {
      const size_type begin(filter==0? 0 : filterObjects_.at(filter-1).l1etmiss_);
      const size_type end(filterObjects_.at(filter).l1etmiss_);
      return std::pair<size_type,size_type>(begin,end);
    }
std::pair<size_type,size_type> trigger::TriggerEventWithRefs::l1hfringsSlice ( size_type  filter) const [inline]

Definition at line 203 of file TriggerEventWithRefs.h.

References begin, end, and filterObjects_.

Referenced by getObjects().

                                                                        {
      const size_type begin(filter==0? 0 : filterObjects_.at(filter-1).l1hfrings_);
      const size_type end(filterObjects_.at(filter).l1hfrings_);
      return std::pair<size_type,size_type>(begin,end);
    }
std::pair<size_type,size_type> trigger::TriggerEventWithRefs::l1jetSlice ( size_type  filter) const [inline]

Definition at line 191 of file TriggerEventWithRefs.h.

References begin, end, and filterObjects_.

Referenced by getObjects().

                                                                    {
      const size_type begin(filter==0? 0 : filterObjects_.at(filter-1).l1jet_);
      const size_type end(filterObjects_.at(filter).l1jet_);
      return std::pair<size_type,size_type>(begin,end);
    }
std::pair<size_type,size_type> trigger::TriggerEventWithRefs::l1muonSlice ( size_type  filter) const [inline]

Definition at line 185 of file TriggerEventWithRefs.h.

References begin, end, and filterObjects_.

Referenced by getObjects().

                                                                     {
      const size_type begin(filter==0? 0 : filterObjects_.at(filter-1).l1muon_);
      const size_type end(filterObjects_.at(filter).l1muon_);
      return std::pair<size_type,size_type>(begin,end);
    }
std::pair<size_type,size_type> trigger::TriggerEventWithRefs::muonSlice ( size_type  filter) const [inline]

Definition at line 143 of file TriggerEventWithRefs.h.

References begin, end, and filterObjects_.

Referenced by getObjects().

                                                                   {
      const size_type begin(filter==0? 0 : filterObjects_.at(filter-1).muons_);
      const size_type end(filterObjects_.at(filter).muons_);
      return std::pair<size_type,size_type>(begin,end);
    }
std::pair<size_type,size_type> trigger::TriggerEventWithRefs::photonSlice ( size_type  filter) const [inline]

slices of objects for a specific filter: [begin,end[

Definition at line 131 of file TriggerEventWithRefs.h.

References begin, end, and filterObjects_.

Referenced by getObjects().

                                                                     {
      const size_type begin(filter==0? 0 : filterObjects_.at(filter-1).photons_);
      const size_type end(filterObjects_.at(filter).photons_);
      return std::pair<size_type,size_type>(begin,end);
    }
std::pair<size_type,size_type> trigger::TriggerEventWithRefs::pixtrackSlice ( size_type  filter) const [inline]

Definition at line 173 of file TriggerEventWithRefs.h.

References begin, end, and filterObjects_.

Referenced by getObjects().

                                                                       {
      const size_type begin(filter==0? 0 : filterObjects_.at(filter-1).pixtracks_);
      const size_type end(filterObjects_.at(filter).pixtracks_);
      return std::pair<size_type,size_type>(begin,end);
    }
size_type trigger::TriggerEventWithRefs::size ( void  ) const [inline]

number of filters

Definition at line 112 of file TriggerEventWithRefs.h.

References filterObjects_.

{return filterObjects_.size();}
const std::string& trigger::TriggerEventWithRefs::usedProcessName ( ) const [inline]

getters - for user access

Definition at line 109 of file TriggerEventWithRefs.h.

References usedProcessName_.

{return usedProcessName_;}

Member Data Documentation

data members

processName used to select products packed up

Definition at line 71 of file TriggerEventWithRefs.h.

Referenced by usedProcessName().