#include <TriggerVariables.h>
Public Member Functions | |
void | compute (const edm::Event &iEvent) const |
L1BitComputer (CachingVariable::CachingVariableFactoryArg arg) | |
~L1BitComputer () | |
Private Attributes | |
edm::InputTag | src_ |
Definition at line 5 of file TriggerVariables.h.
L1BitComputer::L1BitComputer | ( | CachingVariable::CachingVariableFactoryArg | arg | ) | [inline] |
Definition at line 7 of file TriggerVariables.h.
References VariableComputer::declare(), i, CachingVariable::CachingVariableFactoryArg::iConfig, and src_.
L1BitComputer::~L1BitComputer | ( | ) | [inline] |
Definition at line 24 of file TriggerVariables.h.
{};
void L1BitComputer::compute | ( | const edm::Event & | iEvent | ) | const [inline, virtual] |
Implements VariableComputer.
Definition at line 26 of file TriggerVariables.h.
References VariableComputer::assign(), VariableComputer::doesNotCompute(), edm::HandleBase::failedToGet(), edm::Event::getByLabel(), i, csvReporter::r, and src_.
{ edm::Handle<L1GlobalTriggerReadoutRecord> l1Handle; iEvent.getByLabel(src_, l1Handle); if (l1Handle.failedToGet()) doesNotCompute(); const DecisionWord & dWord = l1Handle->decisionWord(); for(int i = 0;i!=128;i++){ std::stringstream ss; ss<<i; double r=dWord.at(i); assign(ss.str(),r); } const TechnicalTriggerWord & tTWord = l1Handle->technicalTriggerWord(); for(int i = 0;i!=64;i++){ std::stringstream ss; ss<<"TechTrig_"; ss<<i; double r=tTWord.at(i); assign(ss.str(),r); } }
edm::InputTag L1BitComputer::src_ [private] |
Definition at line 51 of file TriggerVariables.h.
Referenced by compute(), and L1BitComputer().