CMS 3D CMS Logo

RBCBasicConfig.cc
Go to the documentation of this file.
1 // Include files
2 
3 // local
5 
6 //-----------------------------------------------------------------------------
7 // Implementation file for class : RBCBasicConfig
8 //
9 // 2008-10-31 : Andres Osorio
10 //-----------------------------------------------------------------------------
11 
12 //=============================================================================
13 // Standard constructor, initializes variables
14 //=============================================================================
16  : RBCConfiguration(rbcspecs), m_debug{false} {}
17 
18 RBCBasicConfig::RBCBasicConfig(const char* _logic) : RBCConfiguration(_logic) {}
19 
20 //=============================================================================
22  bool status(false);
23 
24  //. read specifications
25 
26  std::vector<RBCBoardSpecs::RBCBoardConfig>::const_iterator itr;
27  itr = m_rbcboardspecs->v_boardspecs.begin();
28 
29  // initialise logic unit
30  m_rbclogic->setlogic((*itr).m_LogicType.c_str());
31  status = m_rbclogic->initialise();
32 
33  m_rbclogic->setBoardSpecs((*itr));
34 
35  // get mask and force vectors
36 
37  m_vecmask.assign((*itr).m_MaskedOrInput.begin(), (*itr).m_MaskedOrInput.end());
38  m_vecforce.assign((*itr).m_ForcedOrInput.begin(), (*itr).m_ForcedOrInput.end());
39 
40  if (!status) {
41  if (m_debug)
42  std::cout << "RBCConfiguration> Problem initialising the logic unit\n";
43  return false;
44  };
45 
46  return true;
47 }
48 
50  if (m_debug)
51  std::cout << "RBCBasicConfig::preprocess> starts here" << std::endl;
52 
53  input.mask(m_vecmask);
54  input.force(m_vecforce);
55 
56  if (m_debug)
57  std::cout << "RBCBasicConfig::preprocess> done" << std::endl;
58 }
input
static const std::string input
Definition: EdmProvDump.cc:48
RBCBasicConfig::preprocess
void preprocess(RBCInput &) override
Definition: RBCBasicConfig.cc:49
mps_update.status
status
Definition: mps_update.py:69
RBCConfiguration::m_rbclogic
std::unique_ptr< RBCLogicUnit > m_rbclogic
Definition: RBCConfiguration.h:38
RBCBasicConfig::m_vecforce
std::vector< int > m_vecforce
Definition: RBCBasicConfig.h:30
gather_cfg.cout
cout
Definition: gather_cfg.py:144
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
RBCBasicConfig::RBCBasicConfig
RBCBasicConfig()
Standard constructor.
Definition: RBCBasicConfig.h:17
RBCConfiguration
Definition: RBCConfiguration.h:20
RBCBasicConfig.h
RBCBoardSpecs::v_boardspecs
std::vector< RBCBoardConfig > v_boardspecs
Definition: RBCBoardSpecs.h:40
RBCBoardSpecs
Definition: RBCBoardSpecs.h:17
RBCConfiguration::m_rbcboardspecs
const RBCBoardSpecs * m_rbcboardspecs
Definition: RBCConfiguration.h:37
itr
std::vector< std::pair< float, float > >::iterator itr
Definition: HGCDigitizer.cc:29
RBCBasicConfig::m_debug
bool m_debug
Definition: RBCBasicConfig.h:32
RBCInput
Definition: RBCInput.h:22
RBCBasicConfig::initialise
bool initialise() override
Definition: RBCBasicConfig.cc:21
RBCBasicConfig::m_vecmask
std::vector< int > m_vecmask
Definition: RBCBasicConfig.h:29
RBCId
Definition: RBCId.h:16