File indexing completed on 2024-04-06 12:21:38
0001 #ifndef RBCPROCESSTESTSIGNAL_H
0002 #define RBCPROCESSTESTSIGNAL_H 1
0003
0004
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
0017
0018
0019
0020
0021
0022
0023
0024
0025 class RBCProcessTestSignal : public ProcessInputSignal {
0026 public:
0027 explicit RBCProcessTestSignal(const char*);
0028
0029 ~RBCProcessTestSignal() override;
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