CMS 3D CMS Logo

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