CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
GenericTriggerEventFlag Class Reference

Provides a code based selection for trigger and DCS information in order to have no failing filters in the CMSSW path. More...

#include "CommonTools/TriggerUtils/interface/GenericTriggerEventFlag.h"

Public Member Functions

bool accept (const edm::Event &event, const edm::EventSetup &setup)
 To be called from analyze/filter() methods. More...
 
std::vector< std::string > expressionsFromDB (const std::string &key, const edm::EventSetup &setup)
 Reads and returns logical expressions from DB. More...
 
template<typename T >
 GenericTriggerEventFlag (const edm::ParameterSet &config, edm::ConsumesCollector &&iC, T &module)
 
template<typename T >
 GenericTriggerEventFlag (const edm::ParameterSet &config, edm::ConsumesCollector &iC, T &module)
 
std::string gtDBKey ()
 
std::string hltDBKey ()
 
void initRun (const edm::Run &run, const edm::EventSetup &setup)
 To be called from beginRun() methods. More...
 
std::string l1DBKey ()
 
bool off ()
 
bool on ()
 
 ~GenericTriggerEventFlag ()
 To be called from d'tors by 'delete'. More...
 

Private Member Functions

bool acceptDcs (const edm::Event &event)
 
bool acceptDcsPartition (const edm::Handle< DcsStatusCollection > &dcsStatus, int dcsPartition) const
 
bool acceptGt (const edm::Event &event)
 Does this event fulfill the configured GT status logical expression combination? More...
 
bool acceptGtLogicalExpression (const edm::Event &event, std::string gtLogicalExpression)
 Does this event fulfill this particular GT status bits' logical expression? More...
 
bool acceptHlt (const edm::Event &event)
 Was this event accepted by the configured HLT logical expression combination? More...
 
bool acceptHltLogicalExpression (const edm::Handle< edm::TriggerResults > &hltTriggerResults, std::string hltLogicalExpression) const
 Was this event accepted by this particular HLT paths' logical expression? More...
 
bool acceptL1 (const edm::Event &event, const edm::EventSetup &setup)
 Was this event accepted by the configured L1 logical expression combination? More...
 
bool acceptL1LogicalExpression (const edm::Event &event, const edm::EventSetup &setup, std::string l1LogicalExpression)
 Was this event accepted by this particular L1 algorithms' logical expression? More...
 
std::string expandLogicalExpression (const std::vector< std::string > &target, const std::string &expr, bool useAnd=false) const
 Expand wild-carded logical expressions, giving version postfixes priority. More...
 
 GenericTriggerEventFlag (const edm::ParameterSet &config, edm::ConsumesCollector &iC)
 To be called from the ED module's c'tor. More...
 
bool negate (std::string &word) const
 Checks for negated words. More...
 

Private Attributes

bool andOr_
 
bool andOrDcs_
 
bool andOrGt_
 
bool andOrHlt_
 
bool andOrL1_
 
const std::string configError_
 
std::string dbLabel_
 
edm::InputTag dcsInputTag_
 
edm::EDGetTokenT
< DcsStatusCollection
dcsInputToken_
 
std::vector< int > dcsPartitions_
 
const std::string emptyKeyError_
 
bool errorReplyDcs_
 
bool errorReplyGt_
 
bool errorReplyHlt_
 
bool errorReplyL1_
 
std::string gtDBKey_
 
edm::InputTag gtEvmInputTag_
 
edm::EDGetTokenT
< L1GlobalTriggerEvmReadoutRecord
gtEvmInputToken_
 
edm::InputTag gtInputTag_
 
edm::EDGetTokenT
< L1GlobalTriggerReadoutRecord
gtInputToken_
 
std::vector< std::string > gtLogicalExpressions_
 
HLTConfigProvider hltConfig_
 
bool hltConfigInit_
 
std::string hltDBKey_
 
edm::InputTag hltInputTag_
 
edm::EDGetTokenT
< edm::TriggerResults
hltInputToken_
 
std::vector< std::string > hltLogicalExpressions_
 
std::vector< std::string > hltLogicalExpressionsCache_
 
bool l1BeforeMask_
 
std::string l1DBKey_
 
std::unique_ptr< L1GtUtilsl1Gt_
 
std::vector< std::string > l1LogicalExpressions_
 
std::vector< std::string > l1LogicalExpressionsCache_
 
std::unique_ptr
< l1t::L1TGlobalUtil
l1uGt_
 
bool on_
 
bool onDcs_
 
bool onGt_
 
bool onHlt_
 
bool onL1_
 
bool stage2_
 
unsigned verbose_
 
edm::ESWatcher
< AlCaRecoTriggerBitsRcd > * 
watchDB_
 

Detailed Description

Provides a code based selection for trigger and DCS information in order to have no failing filters in the CMSSW path.

[...]

Author
Volker Adler
Version
Id:
GenericTriggerEventFlag.h,v 1.5 2012/01/19 20:17:34 vadler Exp

Definition at line 41 of file GenericTriggerEventFlag.h.

Constructor & Destructor Documentation

template<typename T >
GenericTriggerEventFlag::GenericTriggerEventFlag ( const edm::ParameterSet config,
edm::ConsumesCollector &&  iC,
T module 
)

Definition at line 146 of file GenericTriggerEventFlag.h.

template<typename T >
GenericTriggerEventFlag::GenericTriggerEventFlag ( const edm::ParameterSet config,
edm::ConsumesCollector iC,
T module 
)

Definition at line 151 of file GenericTriggerEventFlag.h.

GenericTriggerEventFlag::~GenericTriggerEventFlag ( )

To be called from d'tors by 'delete'.

Definition at line 125 of file GenericTriggerEventFlag.cc.

GenericTriggerEventFlag::GenericTriggerEventFlag ( const edm::ParameterSet config,
edm::ConsumesCollector iC 
)
private

To be called from the ED module's c'tor.

Definition at line 25 of file GenericTriggerEventFlag.cc.

Member Function Documentation

bool GenericTriggerEventFlag::accept ( const edm::Event event,
const edm::EventSetup setup 
)

To be called from analyze/filter() methods.

Definition at line 239 of file GenericTriggerEventFlag.cc.

Referenced by Vispa.Gui.BoxContentDialog.BoxContentDialog::apply().

bool GenericTriggerEventFlag::acceptDcs ( const edm::Event event)
private

Definition at line 251 of file GenericTriggerEventFlag.cc.

bool GenericTriggerEventFlag::acceptDcsPartition ( const edm::Handle< DcsStatusCollection > &  dcsStatus,
int  dcsPartition 
) const
private

Definition at line 284 of file GenericTriggerEventFlag.cc.

bool GenericTriggerEventFlag::acceptGt ( const edm::Event event)
private

Does this event fulfill the configured GT status logical expression combination?

Definition at line 326 of file GenericTriggerEventFlag.cc.

bool GenericTriggerEventFlag::acceptGtLogicalExpression ( const edm::Event event,
std::string  gtLogicalExpression 
)
private

Does this event fulfill this particular GT status bits' logical expression?

Definition at line 348 of file GenericTriggerEventFlag.cc.

bool GenericTriggerEventFlag::acceptHlt ( const edm::Event event)
private

Was this event accepted by the configured HLT logical expression combination?

Definition at line 509 of file GenericTriggerEventFlag.cc.

bool GenericTriggerEventFlag::acceptHltLogicalExpression ( const edm::Handle< edm::TriggerResults > &  hltTriggerResults,
std::string  hltLogicalExpression 
) const
private

Was this event accepted by this particular HLT paths' logical expression?

Definition at line 549 of file GenericTriggerEventFlag.cc.

bool GenericTriggerEventFlag::acceptL1 ( const edm::Event event,
const edm::EventSetup setup 
)
private

Was this event accepted by the configured L1 logical expression combination?

Definition at line 423 of file GenericTriggerEventFlag.cc.

bool GenericTriggerEventFlag::acceptL1LogicalExpression ( const edm::Event event,
const edm::EventSetup setup,
std::string  l1LogicalExpression 
)
private

Was this event accepted by this particular L1 algorithms' logical expression?

Definition at line 445 of file GenericTriggerEventFlag.cc.

std::string GenericTriggerEventFlag::expandLogicalExpression ( const std::vector< std::string > &  target,
const std::string &  expr,
bool  useAnd = false 
) const
private

Expand wild-carded logical expressions, giving version postfixes priority.

Definition at line 596 of file GenericTriggerEventFlag.cc.

std::vector< std::string > GenericTriggerEventFlag::expressionsFromDB ( const std::string &  key,
const edm::EventSetup setup 
)

Reads and returns logical expressions from DB.

Definition at line 647 of file GenericTriggerEventFlag.cc.

std::string GenericTriggerEventFlag::gtDBKey ( )
inline

Definition at line 137 of file GenericTriggerEventFlag.h.

std::string GenericTriggerEventFlag::hltDBKey ( )
inline

Definition at line 139 of file GenericTriggerEventFlag.h.

void GenericTriggerEventFlag::initRun ( const edm::Run run,
const edm::EventSetup setup 
)

To be called from beginRun() methods.

Definition at line 134 of file GenericTriggerEventFlag.cc.

std::string GenericTriggerEventFlag::l1DBKey ( )
inline

Definition at line 138 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::negate ( std::string &  word) const
private

Checks for negated words.

Definition at line 632 of file GenericTriggerEventFlag.cc.

bool GenericTriggerEventFlag::off ( )
inline

Definition at line 103 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::on ( )
inline

Definition at line 102 of file GenericTriggerEventFlag.h.

Member Data Documentation

bool GenericTriggerEventFlag::andOr_
private

Definition at line 50 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::andOrDcs_
private

Definition at line 53 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::andOrGt_
private

Definition at line 58 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::andOrHlt_
private

Definition at line 73 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::andOrL1_
private

Definition at line 66 of file GenericTriggerEventFlag.h.

const std::string GenericTriggerEventFlag::configError_
private

Definition at line 87 of file GenericTriggerEventFlag.h.

std::string GenericTriggerEventFlag::dbLabel_
private

Definition at line 51 of file GenericTriggerEventFlag.h.

edm::InputTag GenericTriggerEventFlag::dcsInputTag_
private

Definition at line 54 of file GenericTriggerEventFlag.h.

edm::EDGetTokenT< DcsStatusCollection > GenericTriggerEventFlag::dcsInputToken_
private

Definition at line 55 of file GenericTriggerEventFlag.h.

std::vector< int > GenericTriggerEventFlag::dcsPartitions_
private

Definition at line 56 of file GenericTriggerEventFlag.h.

const std::string GenericTriggerEventFlag::emptyKeyError_
private

Definition at line 88 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::errorReplyDcs_
private

Definition at line 57 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::errorReplyGt_
private

Definition at line 65 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::errorReplyHlt_
private

Definition at line 79 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::errorReplyL1_
private

Definition at line 72 of file GenericTriggerEventFlag.h.

std::string GenericTriggerEventFlag::gtDBKey_
private

Definition at line 63 of file GenericTriggerEventFlag.h.

edm::InputTag GenericTriggerEventFlag::gtEvmInputTag_
private

Definition at line 61 of file GenericTriggerEventFlag.h.

edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord > GenericTriggerEventFlag::gtEvmInputToken_
private

Definition at line 62 of file GenericTriggerEventFlag.h.

edm::InputTag GenericTriggerEventFlag::gtInputTag_
private

Definition at line 59 of file GenericTriggerEventFlag.h.

edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > GenericTriggerEventFlag::gtInputToken_
private

Definition at line 60 of file GenericTriggerEventFlag.h.

std::vector< std::string > GenericTriggerEventFlag::gtLogicalExpressions_
private

Definition at line 64 of file GenericTriggerEventFlag.h.

HLTConfigProvider GenericTriggerEventFlag::hltConfig_
private

Definition at line 47 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::hltConfigInit_
private

Definition at line 48 of file GenericTriggerEventFlag.h.

std::string GenericTriggerEventFlag::hltDBKey_
private

Definition at line 76 of file GenericTriggerEventFlag.h.

edm::InputTag GenericTriggerEventFlag::hltInputTag_
private

Definition at line 74 of file GenericTriggerEventFlag.h.

edm::EDGetTokenT< edm::TriggerResults > GenericTriggerEventFlag::hltInputToken_
private

Definition at line 75 of file GenericTriggerEventFlag.h.

std::vector< std::string > GenericTriggerEventFlag::hltLogicalExpressions_
private

Definition at line 78 of file GenericTriggerEventFlag.h.

std::vector< std::string > GenericTriggerEventFlag::hltLogicalExpressionsCache_
private

Definition at line 77 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::l1BeforeMask_
private

Definition at line 68 of file GenericTriggerEventFlag.h.

std::string GenericTriggerEventFlag::l1DBKey_
private

Definition at line 69 of file GenericTriggerEventFlag.h.

std::unique_ptr<L1GtUtils> GenericTriggerEventFlag::l1Gt_
private

Definition at line 45 of file GenericTriggerEventFlag.h.

std::vector< std::string > GenericTriggerEventFlag::l1LogicalExpressions_
private

Definition at line 71 of file GenericTriggerEventFlag.h.

std::vector< std::string > GenericTriggerEventFlag::l1LogicalExpressionsCache_
private

Definition at line 70 of file GenericTriggerEventFlag.h.

std::unique_ptr<l1t::L1TGlobalUtil> GenericTriggerEventFlag::l1uGt_
private

Definition at line 46 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::on_
private

Definition at line 81 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::onDcs_
private

Definition at line 82 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::onGt_
private

Definition at line 83 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::onHlt_
private

Definition at line 85 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::onL1_
private

Definition at line 84 of file GenericTriggerEventFlag.h.

bool GenericTriggerEventFlag::stage2_
private

Definition at line 67 of file GenericTriggerEventFlag.h.

unsigned GenericTriggerEventFlag::verbose_
private

Definition at line 52 of file GenericTriggerEventFlag.h.

edm::ESWatcher< AlCaRecoTriggerBitsRcd >* GenericTriggerEventFlag::watchDB_
private

Definition at line 44 of file GenericTriggerEventFlag.h.