4 : caloLayer1CICADAScoreToken_(
8 caloLayer1RegionsToken_(
12 histFolder_(iConfig.getParameter<
std::
string>(
"histFolder")) {}
18 if (fedRawDataCollection.
isValid()) {
27 if (daqData.
nAMCs() == 7) {
29 if (amcSlot7.amcNo() == 7) {
40 unsigned int maxEtaIdx = 0;
41 for (
int iRegion = 0; iRegion < nRegions; iRegion++) {
46 int matrixSize = maxEtaIdx + 1;
48 bool foundMatrix[2][matrixSize][matrixSize];
49 int etMatrix[2][matrixSize][matrixSize];
50 for (
int i = 0;
i < 2;
i++) {
51 for (
int j = 0;
j < matrixSize;
j++) {
52 for (
int k = 0;
k < matrixSize;
k++) {
53 foundMatrix[
i][
j][
k] =
false;
54 etMatrix[
i][
j][
k] = 0;
59 for (
int iRegion = 0; iRegion < nRegions; iRegion++) {
63 foundMatrix[0][cRegion.
gctEta()][cRegion.
gctPhi()] =
true;
65 foundMatrix[1][sRegion.
gctEta()][sRegion.
gctPhi()] =
true;
70 for (
int iPhi = 0; iPhi < matrixSize; iPhi++) {
71 if (foundMatrix[0][
iEta][iPhi] && foundMatrix[1][
iEta][iPhi]) {
84 if (caloCICADAScores.size() > 0) {
86 if (gtCICADAScores.size() > 0) {
90 if (simCICADAScores.size() > 0) {
104 histoCaloMinusGt = ibooker.
book1D(
"caloMinusGtCICADAScore",
"CaloLayer1 - GT CICADAScore at BX0", 50, -50, 50);
106 ibooker.
book1D(
"simCaloLayer1CICADAScore",
"simCaloLayer1 CICADAScore (input: DAQ regions)", 50, 0, 200);
108 "caloMinusSimCICADAScore",
"CaloLayer1 - simCaloLayer1 (input: DAQ regions) CICADAScore", 50, -50, 50);
112 ibooker.
book2D(
"caloMinusSumRegions",
113 "CaloLayer1 - simCaloLayer1 (input: DAQ trigger primatives) Regions;Region;ET Difference",
120 histoCaloRegions = ibooker.
book2D(
"caloLayer1Regions",
"CaloLayer1 Regions;Region;ET", 252, -0.5, 252.5, 100, 0, 800);
122 "simCaloLayer1 Regions (input: DAQ trigger primatives);Region;ET",
142 descriptions.
add(
"l1tCaloLayer1Summary",
desc);
edm::EDGetTokenT< FEDRawDataCollection > fedRawData_
virtual void setCurrentFolder(std::string const &fullpath)
edm::EDGetTokenT< L1CaloRegionCollection > simRegionsToken_
dqm::reco::MonitorElement * histoGtCICADAScore
dqm::reco::MonitorElement * histoCaloMinusSim
edm::EDGetTokenT< l1t::CICADABxCollection > gtCICADAScoreToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< L1CaloRegionCollection > caloLayer1RegionsToken_
edm::EDGetTokenT< l1t::CICADABxCollection > caloLayer1CICADAScoreToken_
L1TCaloLayer1Summary(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
void bookHistograms(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &) override
dqm::reco::MonitorElement * histoSimCICADAScore
edm::EDGetTokenT< l1t::CICADABxCollection > simCICADAScoreToken_
const uint32_t * amcPayload(uint32_t amc)
dqm::reco::MonitorElement * histoCaloLayer1CICADAScore
unsigned gctEta() const
get GCT eta index
unsigned long long uint64_t
unsigned et() const
get Et
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
dqm::reco::MonitorElement * histoCaloMinusSimRegions
void add(std::string const &label, ParameterSetDescription const &psetDescription)
dqm::reco::MonitorElement * histoCaloMinusGt
dqm::reco::MonitorElement * histoCaloRegions
dqm::reco::MonitorElement * histoSimRegions
unsigned gctPhi() const
get GCT phi index
A calorimeter trigger region (sum of 4x4 trigger towers)
BXVector< float > CICADABxCollection
std::vector< L1CaloRegion > L1CaloRegionCollection
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
dqm::reco::MonitorElement * histoSlot7MinusDaqBxid