ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1MuctpiPhase1
src
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.
10
#include "
TrigT1Interfaces/Lvl1MuCTPIInputPhase1.h
"
11
#include "
TrigT1Interfaces/MuCTPIL1Topo.h
"
12
13
// Headers from external packages.
14
15
16
// System headers.
17
#include <iostream>
18
#include <vector>
19
20
namespace
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();
30
for
(
MuonSectorProcessor
& msp :
m_muonSectorProcessors
)
31
{
32
msp.setL1TopoLUT(&
m_l1topoLUT
);
33
}
34
return
errors;
35
}
36
37
// set Configuration
38
void
SimController::setConfiguration
(
const
Configuration
&conf ) {
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
55
std::string
SimController::processData
(
LVL1MUONIF::Lvl1MuCTPIInputPhase1
* input,
MUCTPIResults
& results,
int
bcid)
const
56
{
57
std::string ret =
""
;
58
std::vector<const LVL1MUONIF::Lvl1MuCTPIInputPhase1*> processedInputs;
59
for
(
const
MuonSectorProcessor
& msp :
m_muonSectorProcessors
)
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
}
Lvl1MuCTPIInputPhase1.h
MuCTPIL1Topo.h
SimController.h
LVL1MUCTPIPHASE1::Configuration
Header files holding configuration items for the MUCTPI.
Definition
Trigger/TrigT1/TrigT1MuctpiPhase1/src/Configuration.h:25
LVL1MUCTPIPHASE1::MUCTPIResults
Definition
MUCTPIResults.h:32
LVL1MUCTPIPHASE1::MuonSectorProcessor
Definition
MuonSectorProcessor.h:37
LVL1MUCTPIPHASE1::SimController::setConfiguration
void setConfiguration(const Configuration &conf)
Definition
SimController.cxx:38
LVL1MUCTPIPHASE1::SimController::m_threshold1Candidate
unsigned int m_threshold1Candidate
Definition
SimController.h:51
LVL1MUCTPIPHASE1::SimController::m_doZeroSuppression
bool m_doZeroSuppression
Definition
SimController.h:50
LVL1MUCTPIPHASE1::SimController::m_maxCandPerPtvalue
unsigned int m_maxCandPerPtvalue
Definition
SimController.h:54
LVL1MUCTPIPHASE1::SimController::processData
std::string processData(LVL1MUONIF::Lvl1MuCTPIInputPhase1 *input, MUCTPIResults &results, int bcid) const
Definition
SimController.cxx:55
LVL1MUCTPIPHASE1::SimController::m_triggerProcessor
TriggerProcessor m_triggerProcessor
Definition
SimController.h:61
LVL1MUCTPIPHASE1::SimController::m_maxCandSendToRoib
unsigned int m_maxCandSendToRoib
Definition
SimController.h:55
LVL1MUCTPIPHASE1::SimController::m_muonSectorProcessors
MuonSectorProcessors m_muonSectorProcessors
Definition
SimController.h:62
LVL1MUCTPIPHASE1::SimController::m_candBcidOffset
unsigned int m_candBcidOffset
Definition
SimController.h:56
LVL1MUCTPIPHASE1::SimController::m_threshold2Candidate
unsigned int m_threshold2Candidate
Definition
SimController.h:52
LVL1MUCTPIPHASE1::SimController::configureTopo
std::vector< std::string > configureTopo(const std::string &barrelFileName, const std::string &ecfFileName, const std::string &side0LUTFileName, const std::string &side1LUTFileName)
Definition
SimController.cxx:22
LVL1MUCTPIPHASE1::SimController::m_l1topoLUT
L1TopoLUT m_l1topoLUT
Definition
SimController.h:59
LVL1MUCTPIPHASE1::SimController::m_suppressionMode
int m_suppressionMode
Definition
SimController.h:53
LVL1MUONIF::Lvl1MuCTPIInputPhase1
Class representing (part of) the input data to the MuCTPI for Phase 1.
Definition
Lvl1MuCTPIInputPhase1.h:34
LVL1MUCTPIPHASE1
Definition
Trigger/TrigT1/TrigT1MuctpiPhase1/src/Configuration.h:11
Generated on
for ATLAS Offline Software by
1.17.0