Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:30:33

0001 #ifndef TTUCONFIGURATOR_H
0002 #define TTUCONFIGURATOR_H 1
0003 
0004 // Include files
0005 
0006 /** @class TTUConfigurator TTUConfigurator.h
0007  *
0008  *  
0009  *  This is an auxiliary class to read an ascii or xml configuration file
0010  *  for the RPC Technical Trigger - to by pass reading configuration from
0011  *  database via EventSetup
0012  *
0013  *
0014  *  @author Andres Felipe Osorio Oliveros
0015  *  @date   2009-06-02
0016  */
0017 
0018 #include <iostream>
0019 #include <fstream>
0020 #include <ios>
0021 
0022 #include "CondFormats/RPCObjects/interface/RBCBoardSpecs.h"
0023 #include "CondFormats/DataRecord/interface/RBCBoardSpecsRcd.h"
0024 #include "CondFormats/RPCObjects/interface/TTUBoardSpecs.h"
0025 #include "CondFormats/DataRecord/interface/TTUBoardSpecsRcd.h"
0026 
0027 #include "L1Trigger/RPCTechnicalTrigger/interface/RBCBoardSpecsIO.h"
0028 #include "L1Trigger/RPCTechnicalTrigger/interface/TTUBoardSpecsIO.h"
0029 
0030 class TTUConfigurator {
0031 public:
0032   TTUConfigurator(const std::string&);
0033 
0034   ~TTUConfigurator();  ///< Destructor
0035 
0036   RBCBoardSpecs* getRbcSpecs() { return &m_rbcspecs; };
0037 
0038   TTUBoardSpecs* getTtuSpecs() { return &m_ttuspecs; };
0039 
0040   void process();
0041 
0042   bool m_hasConfig;
0043 
0044 protected:
0045 private:
0046   std::ifstream m_in;
0047 
0048   void addData(RBCBoardSpecs&);
0049   void addData(TTUBoardSpecs&);
0050 
0051   RBCBoardSpecs m_rbcspecs;
0052   TTUBoardSpecs m_ttuspecs;
0053 };
0054 #endif  // TTUCONFIGURATOR_H