SiStripFedIdListReader

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
#ifndef CalibTracker_SiStripCommon_SiStripFedIdListReader_h
#define CalibTracker_SiStripCommon_SiStripFedIdListReader_h

#include <fstream>
#include <ostream>
#include <vector>
#include <cstdint>

class SiStripFedIdListReader;

/** */
std::ostream& operator<<(std::ostream&, const SiStripFedIdListReader&);

/**
   @class SiStripFedIdListReader
   @author R.Bainbridge
*/
class SiStripFedIdListReader {
public:
  /** */
  explicit SiStripFedIdListReader(std::string filePath);

  /** */
  explicit SiStripFedIdListReader(const SiStripFedIdListReader&);

  /** */
  SiStripFedIdListReader& operator=(const SiStripFedIdListReader&);

  /** */
  ~SiStripFedIdListReader();

  /** */
  inline const std::vector<uint16_t>& fedIds() const;

private:
  /** */
  explicit SiStripFedIdListReader() { ; }

  std::ifstream inputFile_;

  std::vector<uint16_t> fedIds_;
};

const std::vector<uint16_t>& SiStripFedIdListReader::fedIds() const { return fedIds_; }

#endif