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, VRpfjet &pfjets) const
void getObjects (size_type filter, int id, VRcomposite &composites) const
void getObjects (size_type filter, Vids &ids, VRbasemet &basemets) const
void getObjects (size_type filter, Vids &ids, VRl1jet &l1jet) 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, Vids &ids, VRphoton &photons) const
 extract Ref<C>s for a specific filter and of specific physics type
void getObjects (size_type filter, int id, VRl1em &l1em) const
void getObjects (size_type filter, Vids &ids, VRl1muon &l1muon) const
void getObjects (size_type filter, int id, VRl1muon &l1muon) const
void getObjects (size_type filter, int id, VRl1jet &l1jet) const
void getObjects (size_type filter, Vids &ids, VRcomposite &composites) const
void getObjects (size_type filter, Vids &ids, VRl1etmiss &l1etmiss) const
void getObjects (size_type filter, Vids &ids, VRjet &jets) const
void getObjects (size_type filter, int id, VRl1etmiss &l1etmiss) const
void getObjects (size_type filter, Vids &ids, VRmuon &muons) const
void getObjects (size_type filter, int id, VRelectron &electrons) const
void getObjects (size_type filter, Vids &ids, VRelectron &electrons) const
void getObjects (size_type filter, int id, VRl1hfrings &l1hfrings) const
void getObjects (size_type filter, Vids &ids, VRl1hfrings &l1hfrings) const
void getObjects (size_type filter, int id, VRpfjet &pfjets) const
void getObjects (size_type filter, int id, VRphoton &photons) const
void getObjects (size_type filter, Vids &ids, VRpftau &pftaus) const
void getObjects (size_type filter, int id, VRpftau &pftaus) const
void getObjects (size_type filter, int id, VRmuon &muons) const
void getObjects (size_type filter, int id, VRjet &jets) 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_typepfjetSlice (size_type filter) const
std::pair< size_type, size_typepftauSlice (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 (const std::string &usedProcessName, size_type n)
 TriggerEventWithRefs ()
 methods
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:
2012/01/30 08:47:27
Revision:
1.24
Author:
Martin Grunewald

Definition at line 30 of file TriggerEventWithRefs.h.


Constructor & Destructor Documentation

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

methods

constructors

Definition at line 80 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 90 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::pfjetIds(), trigger::TriggerRefsCollections::pfjetRefs(), trigger::TriggerRefsCollections::pftauIds(), trigger::TriggerRefsCollections::pftauRefs(), 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()),
                            addObjects(tfowr.pfjetIds(),tfowr.pfjetRefs()),
                            addObjects(tfowr.pftauIds(),tfowr.pftauRefs())
                           )
        );
    }
std::pair<size_type,size_type> trigger::TriggerEventWithRefs::basemetSlice ( size_type  filter) const [inline]

Definition at line 165 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 171 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 159 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 141 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 124 of file TriggerEventWithRefs.h.

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

                                                              {
      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 119 of file TriggerEventWithRefs.h.

References filterObjects_.

                                                             {
      return edm::InputTag(filterObjects_.at(filterIndex).filterTag_);
    }
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRl1etmiss l1etmiss 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRl1etmiss l1etmiss 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRl1jet l1jet 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRl1hfrings l1hfrings 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRbasemet basemets 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRl1muon l1muon 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRcalomet calomets 
) const [inline]
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,
int  id,
VRl1hfrings l1hfrings 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRbasemet basemets 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRl1muon l1muon 
) const [inline]
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 228 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,
Vids ids,
VRjet jets 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRpftau pftaus 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRmuon muons 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRpfjet pfjets 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRphoton photons 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRelectron electrons 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRpfjet pfjets 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
Vids ids,
VRpftau pftaus 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRelectron electrons 
) 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,
Vids ids,
VRcomposite composites 
) const [inline]
void trigger::TriggerEventWithRefs::getObjects ( size_type  filter,
int  id,
VRcomposite composites 
) const [inline]
std::pair<size_type,size_type> trigger::TriggerEventWithRefs::jetSlice ( size_type  filter) const [inline]

Definition at line 153 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 183 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 201 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 207 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 195 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 189 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 147 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::pfjetSlice ( size_type  filter) const [inline]

Definition at line 213 of file TriggerEventWithRefs.h.

References begin, end, and filterObjects_.

Referenced by getObjects().

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

Definition at line 219 of file TriggerEventWithRefs.h.

References begin, end, and filterObjects_.

Referenced by getObjects().

                                                                    {
      const size_type begin(filter==0? 0 : filterObjects_.at(filter-1).pftaus_);
      const size_type end(filterObjects_.at(filter).pftaus_);
      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 135 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 177 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 116 of file TriggerEventWithRefs.h.

References filterObjects_.

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

getters - for user access

Definition at line 113 of file TriggerEventWithRefs.h.

References usedProcessName_.

{return usedProcessName_;}

Member Data Documentation

data members

processName used to select products packed up

Definition at line 73 of file TriggerEventWithRefs.h.

Referenced by usedProcessName().