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
|
#ifndef PixelTBMChannel_h
#define PixelTBMChannel_h
/*! \file CalibFormats/SiPixelObjects/interface/PixelTBMChannel.h
* \brief Simple class to hold either "A" or "B" for the TBM channel
*
* A longer explanation will be placed here later
*/
#include <string>
#include <iostream>
namespace pos {
/*! \class PixelTBMChannel PixelTBMChannel.h "interface/PixelTBMChannel.h"
* \brief Simple class to hold either "A" or "B" for the TBM channel
*
* A longer explanation will be placed here later
*/
class PixelTBMChannel {
public:
PixelTBMChannel() { ; }
PixelTBMChannel(std::string TBMChannel);
std::string string() const;
friend std::ostream& operator<<(std::ostream& s, const PixelTBMChannel& TBMChannel);
const bool operator<(const PixelTBMChannel& aTBMChannel) const {
return (isChannelB_ == false && aTBMChannel.isChannelB_ == true);
}
const bool operator==(const PixelTBMChannel& aTBMChannel) const { return isChannelB_ == aTBMChannel.isChannelB_; }
private:
bool isChannelB_;
};
std::ostream& operator<<(std::ostream& s, const PixelTBMChannel& TBMChannel);
} // namespace pos
#endif
|