CMS 3D CMS Logo

Functions
L1TStage2EMTF.cc File Reference
#include <string>
#include <vector>
#include <iostream>
#include <map>
#include "DQM/L1TMonitor/interface/L1TStage2EMTF.h"

Go to the source code of this file.

Functions

int chamber_bin (int station, int ring, int chamber)
 

Function Documentation

int chamber_bin ( int  station,
int  ring,
int  chamber 
)

Definition at line 436 of file L1TStage2EMTF.cc.

Referenced by L1TStage2EMTF::analyze().

436  {
437  int chamber_bin_index = 0;
438  if (station > 1 && (ring % 2) == 1) {
439  chamber_bin_index = (chamber * 2) + ((chamber + 1) / 3);
440  } else {
441  chamber_bin_index = chamber + ((chamber + 3) / 6);
442  }
443  return chamber_bin_index;
444 };