Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef RBCPROCESSTESTSIGNAL_H
0002 #define RBCPROCESSTESTSIGNAL_H 1
0003 
0004 // Include files
0005 #include "L1Trigger/RPCTechnicalTrigger/interface/RBCInput.h"
0006 #include "L1Trigger/RPCTechnicalTrigger/interface/RPCInputSignal.h"
0007 #include "L1Trigger/RPCTechnicalTrigger/interface/ProcessInputSignal.h"
0008 
0009 #include <cstdlib>
0010 #include <iostream>
0011 #include <fstream>
0012 #include <ios>
0013 #include <cmath>
0014 #include <memory>
0015 
0016 /** @class RBCProcessTestSignal RBCProcessTestSignal.h
0017  *  
0018  *
0019  *  @author Andres Osorio
0020  *
0021  *  email: aosorio@uniandes.edu.co
0022  *
0023  *  @date   2008-10-10
0024  */
0025 class RBCProcessTestSignal : public ProcessInputSignal {
0026 public:
0027   explicit RBCProcessTestSignal(const char*);
0028 
0029   ~RBCProcessTestSignal() override;  ///< Destructor
0030 
0031   int next() override;
0032 
0033   void rewind();
0034 
0035   void showfirst();
0036 
0037   RPCInputSignal* retrievedata() override { return m_lbin.get(); };
0038 
0039 protected:
0040 private:
0041   std::ifstream m_in;
0042 
0043   RBCInput m_input;
0044 
0045   std::unique_ptr<RPCInputSignal> m_lbin;
0046 };
0047 #endif  // RBCPROCESSTESTSIGNAL_H