CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 }
static const TGPicture * info(bool iBackgroundIsBlack)
RBCBasicConfig()
Standard constructor.
std::vector< int > m_vecforce
void preprocess(RBCInput &) override
static std::string const input
Definition: EdmProvDump.cc:47
Definition: RBCId.h:16
std::unique_ptr< RBCLogicUnit > m_rbclogic
std::vector< int > m_vecmask
std::vector< RBCBoardConfig > v_boardspecs
Definition: RBCBoardSpecs.h:40
bool initialise() override
const RBCBoardSpecs * m_rbcboardspecs