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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
/**
 * \class GlobalStableParameters
 * 
 * 
 * Description: L1 GT stable parameters.  
 *
 * Implementation:
 *    <TODO: enter implementation details>
 *   
 * \author: Vasile Mihai Ghete - HEPHY Vienna
 * 
 * $Date$
 * $Revision$
 *
 */

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

// system include files

#include <iomanip>

// user include files
//   base class

// forward declarations

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

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

// set the number of physics trigger algorithms
void GlobalStableParameters::setGtNumberPhysTriggers(const unsigned int& numberPhysTriggersValue) {
  m_numberPhysTriggers = numberPhysTriggersValue;
}

// set the additional number of physics trigger algorithms
void GlobalStableParameters::setGtNumberPhysTriggersExtended(const unsigned int& numberPhysTriggersExtendedValue) {
  m_numberPhysTriggersExtended = numberPhysTriggersExtendedValue;
}

// set the number of technical triggers
void GlobalStableParameters::setGtNumberTechnicalTriggers(const unsigned int& numberTechnicalTriggersValue) {
  m_numberTechnicalTriggers = numberTechnicalTriggersValue;
}

// set the number of L1 muons received by GT
void GlobalStableParameters::setGtNumberL1Mu(const unsigned int& numberL1MuValue) { m_numberL1Mu = numberL1MuValue; }

//  set the number of L1 e/gamma objects received by GT
void GlobalStableParameters::setGtNumberL1NoIsoEG(const unsigned int& numberL1NoIsoEGValue) {
  m_numberL1NoIsoEG = numberL1NoIsoEGValue;
}

//  set the number of L1 isolated e/gamma objects received by GT
void GlobalStableParameters::setGtNumberL1IsoEG(const unsigned int& numberL1IsoEGValue) {
  m_numberL1IsoEG = numberL1IsoEGValue;
}

// set the number of L1 central jets received by GT
void GlobalStableParameters::setGtNumberL1CenJet(const unsigned int& numberL1CenJetValue) {
  m_numberL1CenJet = numberL1CenJetValue;
}

// set the number of L1 forward jets received by GT
void GlobalStableParameters::setGtNumberL1ForJet(const unsigned int& numberL1ForJetValue) {
  m_numberL1ForJet = numberL1ForJetValue;
}

// set the number of L1 tau jets received by GT
void GlobalStableParameters::setGtNumberL1TauJet(const unsigned int& numberL1TauJetValue) {
  m_numberL1TauJet = numberL1TauJetValue;
}

// set the number of L1 jet counts received by GT
void GlobalStableParameters::setGtNumberL1JetCounts(const unsigned int& numberL1JetCountsValue) {
  m_numberL1JetCounts = numberL1JetCountsValue;
}

// hardware stuff

// set the number of condition chips in GTL
void GlobalStableParameters::setGtNumberConditionChips(const unsigned int& numberConditionChipsValue) {
  m_numberConditionChips = numberConditionChipsValue;
}

// set the number of pins on the GTL condition chips
void GlobalStableParameters::setGtPinsOnConditionChip(const unsigned int& pinsOnConditionChipValue) {
  m_pinsOnConditionChip = pinsOnConditionChipValue;
}

// set the correspondence "condition chip - GTL algorithm word"
// in the hardware
void GlobalStableParameters::setGtOrderConditionChip(const std::vector<int>& orderConditionChipValue) {
  m_orderConditionChip = orderConditionChipValue;
}

// set the number of PSB boards in GT
void GlobalStableParameters::setGtNumberPsbBoards(const int& numberPsbBoardsValue) {
  m_numberPsbBoards = numberPsbBoardsValue;
}

//   set the number of bits for eta of calorimeter objects
void GlobalStableParameters::setGtIfCaloEtaNumberBits(const unsigned int& ifCaloEtaNumberBitsValue) {
  m_ifCaloEtaNumberBits = ifCaloEtaNumberBitsValue;
}

//   set the number of bits for eta of muon objects
void GlobalStableParameters::setGtIfMuEtaNumberBits(const unsigned int& ifMuEtaNumberBitsValue) {
  m_ifMuEtaNumberBits = ifMuEtaNumberBitsValue;
}

// set WordLength
void GlobalStableParameters::setGtWordLength(const int& wordLengthValue) { m_wordLength = wordLengthValue; }

// set one UnitLength
void GlobalStableParameters::setGtUnitLength(const int& unitLengthValue) { m_unitLength = unitLengthValue; }

// print all the L1 GT stable parameters
void GlobalStableParameters::print(std::ostream& myStr) const {
  myStr << "\nL1 GT Stable Parameters \n" << std::endl;

  // trigger decision

  // number of physics trigger algorithms
  myStr << "\n  Number of physics trigger algorithms =            " << m_numberPhysTriggers << std::endl;

  // additional number of physics trigger algorithms
  myStr << "  Additional number of physics trigger algorithms = " << m_numberPhysTriggersExtended << std::endl;

  // number of technical triggers
  myStr << "  Number of technical triggers =                    " << m_numberTechnicalTriggers << std::endl;

  // muons
  myStr << "\n  Number of muons received by L1 GT =                     " << m_numberL1Mu << std::endl;

  // e/gamma and isolated e/gamma objects
  myStr << "  Number of e/gamma objects received by L1 GT =          " << m_numberL1NoIsoEG << std::endl;
  myStr << "  Number of isolated e/gamma objects received by L1 GT = " << m_numberL1IsoEG << std::endl;

  // central, forward and tau jets
  myStr << "\n  Number of central jets received by L1 GT =             " << m_numberL1CenJet << std::endl;
  myStr << "  Number of forward jets received by L1 GT =             " << m_numberL1ForJet << std::endl;
  myStr << "  Number of tau jets received by L1 GT =                 " << m_numberL1TauJet << std::endl;

  // jet counts
  myStr << "\n  Number of jet counts received by L1 GT =               " << m_numberL1JetCounts << std::endl;

  // hardware

  // number of condition chips
  myStr << "\n  Number of condition chips =                        " << m_numberConditionChips << std::endl;

  // number of pins on the GTL condition chips
  myStr << "  Number of pins on the GTL condition chips =        " << m_pinsOnConditionChip << std::endl;

  // correspondence "condition chip - GTL algorithm word" in the hardware
  // chip 2: 0 - 95;  chip 1: 96 - 128 (191)
  myStr << "  Order of condition chips for GTL algorithm word = {";

  for (unsigned int iChip = 0; iChip < m_orderConditionChip.size(); ++iChip) {
    myStr << m_orderConditionChip[iChip];
    if (iChip != (m_orderConditionChip.size() - 1)) {
      myStr << ", ";
    }
  }

  myStr << "}" << std::endl;

  // number of PSB boards in GT
  myStr << "\n  Number of PSB boards in GT = " << m_numberPsbBoards << std::endl;

  // number of bits for eta of calorimeter objects
  myStr << "\n  Number of bits for eta of calorimeter objects = " << m_ifCaloEtaNumberBits << std::endl;

  // number of bits for eta of muon objects
  myStr << "\n  Number of bits for eta of muon objects = " << m_ifMuEtaNumberBits << std::endl;

  // GT DAQ record organized in words of WordLength bits
  myStr << "\n  Word length (bits) for GT records = " << m_wordLength << std::endl;

  // one unit in the word is UnitLength bits
  myStr << "  Unit length (bits) for GT records = " << m_unitLength << std::endl;

  myStr << "\n" << std::endl;
}