Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

D0analysis::D0TriggerSelector Class Reference

Interface to the unique copy in memory of the list of triggers for an event. More...

#include <D0TriggerSelector.hpp>

List of all members.

Public Methods

bool TriggerFired (const edm::Event &event)
 Method to check whether the current event satisfies the trigger requirements.

bool TriggerFired (const edm::Event &event, const std::string &TrigName)
 Method to check whether the current event satisfies a given trigger.

bool TriggerFired (const edm::Event &event, const std::vector< std::string > &TrigNames)
 Method to check whether the current event satisfies a trigger in a list.

std::vector<std::string> GetFiredTriggers (const edm::Event &event)
 Method to retrieve the list of triggers fired in the event.

int GetNumFiredTriggers (const edm::Event &event)
 Method for retrieving the number of triggers in the filtering list.

void PrintFiredTriggers (const edm::Event &event, std::ostream &out)
 Method for printing the trigger information for the current event.

void UseTriggers (std::list< std::string > &newTriggers)
 Method for resetting the list of triggers to be used for filtering.

int GetNumRequiredTriggers ()
 Method for retrieving the number of triggers in the filtering list.

std::vector<std::string> GetRequiredTriggers ()
 Method for retrieving the list of triggers in the filtering list.

void PrintRequiredTriggers (std::ostream &out)
 Method for printing the list of triggers used for event filtering.

void PrintConfiguration (std::ostream &out)
 Method for printing the status of D0TriggerSelector.

 ~D0TriggerSelector ()
 Destructor.


Static Public Methods

D0TriggerSelector* Instance (edm::RCP &rcp)
 Accessor to the unique instance of D0TriggerSelector (initialize it from RCP parameters).

D0TriggerSelector* Instance ()
 Accessor to the unique instance of D0TriggerSelector (without initilization).


Detailed Description

Interface to the unique copy in memory of the list of triggers for an event.

The D0TriggerSelector class instantiates and holds a unique copy of a class which decodes the trigger information for each event and allows the user to retrieve it in different ways. The trigger information is decoded only once per event: if the L3Chunk is available (i.e. the user is reading the DST or a version of the TMB generated with a D0reco versions p13 and later) the trigger information is extracted from there. Otherwise (the user is reading a TMB generated with D0reco version p11 and p12) the trigger information is extracted from the TMBTriggerChunk. One of the methods of the D0TriggerSelector class compares the list of the L3 triggers fired in the event with a list provided by the user (either through RCP parameters or through the -filter_triggers command line option), returning a bool true if any of those triggers have fired. Other access methods allow the retrieval of the detailed list of triggers which have fired.


The documentation for this class was generated from the following file:
Generated at Thu Oct 3 11:50:14 2002 for analysis_utilities by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001