ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
LVL1MUCTPIPHASE1::SimController Class Reference

#include <SimController.h>

Collaboration diagram for LVL1MUCTPIPHASE1::SimController:

Public Types

typedef std::array< MuonSectorProcessor, LVL1MUONIF::Lvl1MuCTPIInputPhase1::NumberOfMuonSubSystemMuonSectorProcessors
 

Public Member Functions

 SimController ()=default
 
std::vector< std::string > configureTopo (const std::string &barrelFileName, const std::string &ecfFileName, const std::string &side0LUTFileName, const std::string &side1LUTFileName)
 
std::string processData (LVL1MUONIF::Lvl1MuCTPIInputPhase1 *input, MUCTPIResults &results, int bcid) const
 
void setConfiguration (const Configuration &conf)
 
TriggerProcessorgetTriggerProcessor ()
 
MuonSectorProcessorsgetMuonSectorProcessors ()
 

Private Attributes

bool m_doZeroSuppression {true}
 
unsigned int m_threshold1Candidate {1}
 
unsigned int m_threshold2Candidate {1}
 
int m_suppressionMode {0}
 
unsigned int m_maxCandPerPtvalue {64}
 
unsigned int m_maxCandSendToRoib {14}
 
unsigned int m_candBcidOffset {0}
 
std::vector< std::vector< unsigned int > > m_ptSorterBuckets
 
L1TopoLUT m_l1topoLUT
 
TriggerProcessor m_triggerProcessor
 
MuonSectorProcessors m_muonSectorProcessors
 

Detailed Description

Definition at line 28 of file SimController.h.

Member Typedef Documentation

◆ MuonSectorProcessors

Definition at line 33 of file SimController.h.

Constructor & Destructor Documentation

◆ SimController()

LVL1MUCTPIPHASE1::SimController::SimController ( )
default

Member Function Documentation

◆ configureTopo()

std::vector< std::string > LVL1MUCTPIPHASE1::SimController::configureTopo ( const std::string &  barrelFileName,
const std::string &  ecfFileName,
const std::string &  side0LUTFileName,
const std::string &  side1LUTFileName 
)

Definition at line 22 of file SimController.cxx.

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  }

◆ getMuonSectorProcessors()

MuonSectorProcessors& LVL1MUCTPIPHASE1::SimController::getMuonSectorProcessors ( )
inline

Definition at line 46 of file SimController.h.

46 { return m_muonSectorProcessors; }

◆ getTriggerProcessor()

TriggerProcessor& LVL1MUCTPIPHASE1::SimController::getTriggerProcessor ( )
inline

Definition at line 45 of file SimController.h.

45 { return m_triggerProcessor; }

◆ processData()

std::string LVL1MUCTPIPHASE1::SimController::processData ( LVL1MUONIF::Lvl1MuCTPIInputPhase1 input,
MUCTPIResults results,
int  bcid 
) const

Definition at line 55 of file SimController.cxx.

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
68  if ((ret = m_triggerProcessor.computeMultiplicities(mergedInputs, bcid, results)) != "") return ret;
69  return "";
70  }

◆ setConfiguration()

void LVL1MUCTPIPHASE1::SimController::setConfiguration ( const Configuration conf)

Definition at line 38 of file SimController.cxx.

38  {
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  }

Member Data Documentation

◆ m_candBcidOffset

unsigned int LVL1MUCTPIPHASE1::SimController::m_candBcidOffset {0}
private

Definition at line 56 of file SimController.h.

◆ m_doZeroSuppression

bool LVL1MUCTPIPHASE1::SimController::m_doZeroSuppression {true}
private

Definition at line 50 of file SimController.h.

◆ m_l1topoLUT

L1TopoLUT LVL1MUCTPIPHASE1::SimController::m_l1topoLUT
private

Definition at line 59 of file SimController.h.

◆ m_maxCandPerPtvalue

unsigned int LVL1MUCTPIPHASE1::SimController::m_maxCandPerPtvalue {64}
private

Definition at line 54 of file SimController.h.

◆ m_maxCandSendToRoib

unsigned int LVL1MUCTPIPHASE1::SimController::m_maxCandSendToRoib {14}
private

Definition at line 55 of file SimController.h.

◆ m_muonSectorProcessors

MuonSectorProcessors LVL1MUCTPIPHASE1::SimController::m_muonSectorProcessors
private
Initial value:

Definition at line 62 of file SimController.h.

◆ m_ptSorterBuckets

std::vector< std::vector< unsigned int > > LVL1MUCTPIPHASE1::SimController::m_ptSorterBuckets
private

Definition at line 57 of file SimController.h.

◆ m_suppressionMode

int LVL1MUCTPIPHASE1::SimController::m_suppressionMode {0}
private

Definition at line 53 of file SimController.h.

◆ m_threshold1Candidate

unsigned int LVL1MUCTPIPHASE1::SimController::m_threshold1Candidate {1}
private

Definition at line 51 of file SimController.h.

◆ m_threshold2Candidate

unsigned int LVL1MUCTPIPHASE1::SimController::m_threshold2Candidate {1}
private

Definition at line 52 of file SimController.h.

◆ m_triggerProcessor

TriggerProcessor LVL1MUCTPIPHASE1::SimController::m_triggerProcessor
private

Definition at line 61 of file SimController.h.


The documentation for this class was generated from the following files:
LVL1MUCTPIPHASE1::TriggerProcessor::mergeInputs
LVL1MUONIF::Lvl1MuCTPIInputPhase1 mergeInputs(const std::vector< const LVL1MUONIF::Lvl1MuCTPIInputPhase1 * > &inputs) const
Definition: TriggerProcessor.cxx:32
LVL1MUONIF::Lvl1MuCTPIInputPhase1
Class representing (part of) the input data to the MuCTPI for Phase 1.
Definition: Lvl1MuCTPIInputPhase1.h:33
LVL1MUCTPIPHASE1::TriggerProcessor::computeMultiplicities
std::string computeMultiplicities(LVL1MUONIF::Lvl1MuCTPIInputPhase1 &mergedInputs, int bcid, MUCTPIResults &results) const
Definition: TriggerProcessor.cxx:40
LVL1MUCTPIPHASE1::SimController::m_threshold1Candidate
unsigned int m_threshold1Candidate
Definition: SimController.h:51
LVL1MUCTPIPHASE1::SimController::m_l1topoLUT
L1TopoLUT m_l1topoLUT
Definition: SimController.h:59
python.ConfigurableDb.conf
def conf
Definition: ConfigurableDb.py:282
ret
T ret(T t)
Definition: rootspy.cxx:260
LVL1MUONIF::Lvl1MuCTPIInputPhase1::idSideA
static size_t idSideA()
Definition: Lvl1MuCTPIInputPhase1.h:140
LVL1MUCTPIPHASE1::SimController::m_candBcidOffset
unsigned int m_candBcidOffset
Definition: SimController.h:56
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
LVL1MUCTPIPHASE1::SimController::m_doZeroSuppression
bool m_doZeroSuppression
Definition: SimController.h:50
LVL1MUCTPIPHASE1::SimController::m_triggerProcessor
TriggerProcessor m_triggerProcessor
Definition: SimController.h:61
mergePhysValFiles.errors
list errors
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:43
LVL1MUCTPIPHASE1::SimController::m_muonSectorProcessors
MuonSectorProcessors m_muonSectorProcessors
Definition: SimController.h:62
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
python.ami.results
def results
Definition: ami.py:386
LVL1MUCTPIPHASE1::L1TopoLUT::getErrors
std::vector< std::string > getErrors() const
Definition: L1TopoLUT.h:55
LVL1MUCTPIPHASE1::SimController::m_maxCandPerPtvalue
unsigned int m_maxCandPerPtvalue
Definition: SimController.h:54
LVL1MUONIF::Lvl1MuCTPIInputPhase1::idSideC
static size_t idSideC()
Definition: Lvl1MuCTPIInputPhase1.h:141
LVL1MUCTPIPHASE1::L1TopoLUT::initializeLUT
bool initializeLUT(const std::string &barrelFileName, const std::string &ecfFileName, const std::string &side0LUTFileName, const std::string &side1LUTFileName)
Definition: L1TopoLUT.cxx:101
LVL1MUCTPIPHASE1::SimController::m_threshold2Candidate
unsigned int m_threshold2Candidate
Definition: SimController.h:52
LVL1MUCTPIPHASE1::SimController::m_suppressionMode
int m_suppressionMode
Definition: SimController.h:53
LVL1MUCTPIPHASE1::SimController::m_maxCandSendToRoib
unsigned int m_maxCandSendToRoib
Definition: SimController.h:55