00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00018
00019 #ifndef TRIGSTEERINGEVENT_TRIGROIDESCRIPTOR_H
00020 #define TRIGSTEERINGEVENT_TRIGROIDESCRIPTOR_H
00021
00022 #include <stdint.h>
00023 #include <map>
00024 #include <ostream>
00025
00026
00027
00028
00029
00030
00031 #include "xAODCore/CLASS_DEF.h"
00032
00033
00034
00035 #include "RoiDescriptor/RoiDescriptor.h"
00036
00037
00038
00055 class TrigRoiDescriptor : public RoiDescriptor {
00056
00057 public:
00058
00063 TrigRoiDescriptor(bool fullscan=false);
00064
00077 TrigRoiDescriptor(double eta, double etaMinus, double etaPlus,
00078 double phi, double phiMinus, double phiPlus,
00079 double zed=0, double zedMinus=-zedWidthDefault, double zedPlus=zedWidthDefault);
00080
00095 TrigRoiDescriptor(unsigned int l1id, unsigned int id,
00096 double eta, double etaMinus, double etaPlus,
00097 double phi, double phiMinus, double phiPlus,
00098 double zed=0, double zedMinus=-zedWidthDefault, double zedPlus=zedWidthDefault);
00099
00115 TrigRoiDescriptor(unsigned int roiWord, unsigned int l1id, unsigned int id,
00116 double eta, double etaMinus, double etaPlus,
00117 double phi, double phiMinus, double phiPlus,
00118 double zed=0, double zedMinus=-zedWidthDefault, double zedPlus=zedWidthDefault);
00119
00120
00121 TrigRoiDescriptor( const IRoiDescriptor& roi );
00122
00123 TrigRoiDescriptor& operator=( const IRoiDescriptor& roi );
00124
00125
00126 ~TrigRoiDescriptor();
00127
00128 unsigned int roiId() const { return m_roiId; }
00129 unsigned int l1Id() const { return m_l1Id; }
00130 unsigned int roiWord() const { return m_roiWord; }
00131
00132 operator std::string() const;
00133
00134 protected:
00135
00136 unsigned int m_l1Id;
00137 unsigned int m_roiId;
00138 unsigned int m_roiWord;
00139
00140 std::vector<uint32_t> m_serialized;
00141
00142 };
00143
00144
00145 std::string str( const TrigRoiDescriptor& d );
00146 std::ostream& operator<<( std::ostream& m, const TrigRoiDescriptor& d );
00147
00148
00149
00150
00151 CLASS_DEF(TrigRoiDescriptor, 6455, 1)
00152
00153
00154
00155
00156 #include "TrigSteeringEvent/TrigRoiDescriptorCollection.h"
00157
00158 #endif // TRIGROIDESCRIPTOR_H
00159
00160
00161