CMS 3D CMS Logo

Public Member Functions | Private Attributes

L1BitComputer Class Reference

#include <TriggerVariables.h>

Inheritance diagram for L1BitComputer:
VariableComputer

List of all members.

Public Member Functions

void compute (const edm::Event &iEvent) const
 L1BitComputer (CachingVariable::CachingVariableFactoryArg arg)
 ~L1BitComputer ()

Private Attributes

edm::InputTag src_

Detailed Description

Definition at line 5 of file TriggerVariables.h.


Constructor & Destructor Documentation

L1BitComputer::L1BitComputer ( CachingVariable::CachingVariableFactoryArg  arg) [inline]

Definition at line 7 of file TriggerVariables.h.

References VariableComputer::declare(), i, CachingVariable::CachingVariableFactoryArg::iConfig, and src_.

                                                             :VariableComputer(arg){
    src_=edm::Service<InputTagDistributorService>()->retrieve("src",arg.iConfig);
    for(int i = 0;i!=128;i++){
      std::stringstream ss;
      ss<<i;
      declare(ss.str());
    }

    for(int i = 0;i!=64;i++){
      std::stringstream ss;
      ss<<"TechTrig_";
      ss<<i;
      declare(ss.str());
    }


  }
L1BitComputer::~L1BitComputer ( ) [inline]

Definition at line 24 of file TriggerVariables.h.

{};

Member Function Documentation

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, alignCSCRings::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);
      }

      
      
    }

Member Data Documentation

Definition at line 51 of file TriggerVariables.h.

Referenced by compute(), and L1BitComputer().