ATLAS Offline Software
Loading...
Searching...
No Matches
SimController.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5// First the corresponding header.
6#include "SimController.h"
7
8// The headers from other ATLAS packages,
9// from most to least dependent.
12
13// Headers from external packages.
14
15
16// System headers.
17#include <iostream>
18#include <vector>
19
20namespace LVL1MUCTPIPHASE1 {
21
22 std::vector<std::string> SimController::configureTopo(const std::string& barrelFileName,
23 const std::string& ecfFileName,
24 const std::string& side0LUTFileName,
25 const std::string& side1LUTFileName)
26 {
27 std::vector<std::string> errors;
28 bool success = m_l1topoLUT.initializeLUT(barrelFileName, ecfFileName, side0LUTFileName, side1LUTFileName);
29 if (!success) errors = m_l1topoLUT.getErrors();
31 {
32 msp.setL1TopoLUT(&m_l1topoLUT);
33 }
34 return errors;
35 }
36
37 // set Configuration
39
40 // Zero Suppression Flag
41 m_doZeroSuppression = conf.getDoZeroSuppression();
42
43 //src/Mirod/MirodExtractor.cxx
44 m_threshold1Candidate = conf.getThreshold1Candidate();
45 m_threshold2Candidate = conf.getThreshold2Candidate();
46 m_suppressionMode = conf.getSuppressionMode();
47
48
49 //MirodLvl2Processor
50 m_maxCandPerPtvalue = conf.getMaxCandPerPtvalue();
51 m_maxCandSendToRoib = conf.getMaxCandSendToRoib();
52 m_candBcidOffset = conf.getCandBcidOffset();
53 }
54
56 {
57 std::string ret = "";
58 std::vector<const LVL1MUONIF::Lvl1MuCTPIInputPhase1*> processedInputs;
60 {
61 msp.runOverlapRemoval(input, bcid);
62 if ((ret = msp.makeL1TopoData(input, bcid, results.l1topoData)) != "") return ret;
63 processedInputs.push_back(input);
64 }
65
66 //Run the trigger processor algorithms
67 LVL1MUONIF::Lvl1MuCTPIInputPhase1 mergedInputs = m_triggerProcessor.mergeInputs(processedInputs);
68 if ((ret = m_triggerProcessor.computeMultiplicities(mergedInputs, bcid, results)) != "") return ret;
69 return "";
70 }
71}
Header files holding configuration items for the MUCTPI.
void setConfiguration(const Configuration &conf)
std::string processData(LVL1MUONIF::Lvl1MuCTPIInputPhase1 *input, MUCTPIResults &results, int bcid) const
TriggerProcessor m_triggerProcessor
MuonSectorProcessors m_muonSectorProcessors
std::vector< std::string > configureTopo(const std::string &barrelFileName, const std::string &ecfFileName, const std::string &side0LUTFileName, const std::string &side1LUTFileName)
Class representing (part of) the input data to the MuCTPI for Phase 1.