Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
/**
 * \class L1GtPrescaleFactors
 * 
 * 
 * Description: L1 GT prescale factors.  
 *
 * Implementation:
 *    <TODO: enter implementation details>
 *   
 * \author: Vasile Mihai Ghete - HEPHY Vienna
 * 
 * $Date$
 * $Revision$
 *
 */

// this class header
#include "CondFormats/L1TObjects/interface/L1GtPrescaleFactors.h"

// system include files

// user include files
//   base class

// forward declarations

// constructor
L1GtPrescaleFactors::L1GtPrescaleFactors() {
  // empty
}

L1GtPrescaleFactors::L1GtPrescaleFactors(const std::vector<std::vector<int> >& factorValue) {
  m_prescaleFactors = factorValue;
}

// destructor
L1GtPrescaleFactors::~L1GtPrescaleFactors() {
  // empty
}

// set the prescale factors
void L1GtPrescaleFactors::setGtPrescaleFactors(const std::vector<std::vector<int> >& factorValue) {
  m_prescaleFactors = factorValue;
}

// print the prescale factors
void L1GtPrescaleFactors::print(std::ostream& myOstream) const {
  myOstream << "\nL1 GT Trigger prescale factors" << std::endl;

  for (unsigned iSet = 0; iSet < m_prescaleFactors.size(); iSet++) {
    myOstream << "\n\n Set index " << iSet << "\n " << std::endl;
    for (unsigned i = 0; i < (m_prescaleFactors[iSet]).size(); i++) {
      myOstream << "  Bit number \t" << i << ":\t prescale factor: " << (m_prescaleFactors[iSet])[i] << std::endl;
    }
  }
}