21 #include "GaudiKernel/MsgStream.h"
27 static const double DELTA = 0.001;
51 m_SumPtTracksCone(0.0),
52 m_PtMuTracksCone(0.0),
61 if (
this != &mfeature) {
86 int a =
static_cast<int>(
m_flag/10000);
92 int a =
static_cast<int>(
m_flag/10000);
93 int b =
static_cast<int>(
m_flag-
a*10000);
104 m_sumet01 ( feat->getsumet01() ),
105 m_sumet02 ( feat->getsumet02() ),
106 m_sumet03 ( feat->getsumet03() ),
107 m_sumet04 ( feat->getsumet04() ),
108 m_sumpt01 ( feat->getsumpt01() ),
109 m_sumpt02 ( feat->getsumpt02() ),
110 m_sumpt03 ( feat->getsumpt03() ),
111 m_sumpt04 ( feat->getsumpt04() ),
112 m_PtMuID ( feat->getPtMuID() ),
113 m_MaxPtID ( feat->getMaxPtID() ),
115 m_RoiIdMu ( feat->getRoiIdMu() ),
116 m_PtMu ( feat->
pt() ),
117 m_QMu ( feat->getQMu() ),
118 m_EtaMu ( feat->getEtaMu() ),
119 m_PhiMu ( feat->getPhiMu() ) {}
128 m_sumet01 ( feat.getsumet01() ),
129 m_sumet02 ( feat.getsumet02() ),
130 m_sumet03 ( feat.getsumet03() ),
131 m_sumet04 ( feat.getsumet04() ),
132 m_sumpt01 ( feat.getsumpt01() ),
133 m_sumpt02 ( feat.getsumpt02() ),
134 m_sumpt03 ( feat.getsumpt03() ),
135 m_sumpt04 ( feat.getsumpt04() ),
136 m_PtMuID ( feat.getPtMuID() ),
137 m_MaxPtID ( feat.getMaxPtID() ),
139 m_RoiIdMu ( feat.getRoiIdMu() ),
140 m_PtMu ( feat.
pt() ),
141 m_QMu ( feat.getQMu() ),
142 m_EtaMu ( feat.getEtaMu() ),
143 m_PhiMu ( feat.getPhiMu() ) {}
146 std::cout << std::endl;
147 std::cout <<
"m_sumet01: " <<
m_sumet01 << std::endl;
148 std::cout <<
"m_sumet02: " <<
m_sumet02 << std::endl;
149 std::cout <<
"m_sumet03: " <<
m_sumet03 << std::endl;
150 std::cout <<
"m_sumet04: " <<
m_sumet04 << std::endl;
151 std::cout <<
"m_sumpt01: " <<
m_sumpt01 << std::endl;
152 std::cout <<
"m_sumpt02: " <<
m_sumpt02 << std::endl;
153 std::cout <<
"m_sumpt03: " <<
m_sumpt03 << std::endl;
154 std::cout <<
"m_sumpt04: " <<
m_sumpt04 << std::endl;
155 std::cout <<
"m_PtMuID: " <<
m_PtMuID << std::endl;
156 std::cout <<
"m_MaxPtID: " <<
m_MaxPtID << std::endl;
157 std::cout <<
"m_flag: " <<
m_flag << std::endl;
158 std::cout <<
"m_RoiIdMu: " <<
m_RoiIdMu << std::endl;
159 std::cout <<
"m_PtMu: " <<
m_PtMu << std::endl;
160 std::cout <<
"m_QMu: " <<
m_QMu << std::endl;
161 std::cout <<
"m_EtaMu: " <<
m_EtaMu << std::endl;
162 std::cout <<
"m_PhiMu: " <<
m_PhiMu << std::endl;
163 std::cout << std::endl;
190 std::stringstream
ss;
191 ss <<
"sumet01: " <<
d.getsumet01()
192 <<
"; sumet02: " <<
d.getsumet02()
193 <<
"; sumet03: " <<
d.getsumet03()
194 <<
"; sumet04: " <<
d.getsumet04()
195 <<
"; sumpt01: " <<
d.getsumpt01()
196 <<
"; sumpt02: " <<
d.getsumpt02()
197 <<
"; sumpt03: " <<
d.getsumpt03()
198 <<
"; sumpt04: " <<
d.getsumpt04()
199 <<
"; PtMuID: " <<
d.getPtMuID()
200 <<
"; MaxPtID: " <<
d.getMaxPtID()
201 <<
"; flag: " <<
d.getFlag()
202 <<
"; RoiIdMu: " <<
d.getRoiIdMu()
203 <<
"; RoiIdMu: " <<
d.getRoiIdMu()
204 <<
"; PtMu: " <<
d.pt()
205 <<
"; QMu: " <<
d.getQMu()
206 <<
"; EtaMu: " <<
d.getEtaMu()
207 <<
"; PhiMu: " <<
d.getPhiMu();
214 return (
m <<
str(
d ) );
219 if( std::abs(
a.getsumet01() -
b.getsumet01() ) > DELTA )
221 if( std::abs(
a.getsumet02() -
b.getsumet02() ) > DELTA )
223 if( std::abs(
a.getsumet03() -
b.getsumet03() ) > DELTA )
225 if( std::abs(
a.getsumet04() -
b.getsumet04() ) > DELTA )
227 if( std::abs(
a.getsumpt01() -
b.getsumpt01() ) > DELTA )
229 if( std::abs(
a.getsumpt02() -
b.getsumpt02() ) > DELTA )
231 if( std::abs(
a.getsumpt03() -
b.getsumpt03() ) > DELTA )
233 if( std::abs(
a.getsumpt04() -
b.getsumpt04() ) > DELTA )
235 if( std::abs(
a.getPtMuID() -
b.getPtMuID() ) > DELTA )
237 if( std::abs(
a.getMaxPtID() -
b.getMaxPtID() ) > DELTA )
239 if(
a.getFlag() !=
b.getFlag() )
241 if(
a.getRoiIdMu() !=
b.getRoiIdMu() )
243 if( std::abs(
a.pt() -
b.pt() ) > DELTA )
245 if( std::abs(
a.getQMu() -
b.getQMu() ) > DELTA )
247 if( std::abs(
a.getEtaMu() -
b.getEtaMu() ) > DELTA )
249 if( std::abs(
a.getPhiMu() -
b.getPhiMu() ) > DELTA )
265 std::map< std::string, double >& variableChange ) {
267 if( std::abs(
a.getsumet01() -
b.getsumet01() ) > DELTA ) {
268 variableChange[
"sumet01" ] =
a.getsumet01() -
b.getsumet01();
270 if( std::abs(
a.getsumet02() -
b.getsumet02() ) > DELTA ) {
271 variableChange[
"sumet02" ] =
a.getsumet02() -
b.getsumet02();
273 if( std::abs(
a.getsumet03() -
b.getsumet03() ) > DELTA ) {
274 variableChange[
"sumet03" ] =
a.getsumet03() -
b.getsumet03();
276 if( std::abs(
a.getsumet04() -
b.getsumet04() ) > DELTA ) {
277 variableChange[
"sumet04" ] =
a.getsumet04() -
b.getsumet04();
279 if( std::abs(
a.getsumpt01() -
b.getsumpt01() ) > DELTA ) {
280 variableChange[
"sumpt01" ] =
a.getsumpt01() -
b.getsumpt01();
282 if( std::abs(
a.getsumet02() -
b.getsumet02() ) > DELTA ) {
283 variableChange[
"sumet02" ] =
a.getsumet02() -
b.getsumpt02();
285 if( std::abs(
a.getsumpt03() -
b.getsumpt03() ) > DELTA ) {
286 variableChange[
"sumpt03" ] =
a.getsumpt03() -
b.getsumpt03();
288 if( std::abs(
a.getsumpt04() -
b.getsumpt04() ) > DELTA ) {
289 variableChange[
"sumpt04" ] =
a.getsumpt04() -
b.getsumpt04();
291 if(
a.getFlag() !=
b.getFlag() ) {
292 variableChange[
"flag" ] =
static_cast< double >(
a.getFlag() -
295 if(
a.getRoiIdMu() !=
b.getRoiIdMu() ) {
296 variableChange[
"RoiIdMu" ] =
static_cast< double >(
a.getRoiIdMu() -
299 if( std::abs(
a.pt() -
b.pt() ) > DELTA ) {
300 variableChange[
"PtMu" ] =
a.pt() -
b.pt();
302 if( std::abs(
a.getQMu() -
b.getQMu() ) > DELTA ) {
303 variableChange[
"QMu" ] =
a.getQMu() -
b.getQMu();
305 if( std::abs(
a.getEtaMu() -
b.getEtaMu() ) > DELTA ) {
306 variableChange[
"EtaMu" ] =
a.getEtaMu() -
b.getEtaMu();
308 if( std::abs(
a.getPhiMu() -
b.getPhiMu() ) > DELTA ) {
309 variableChange[
"PhiMu" ] =
a.getPhiMu() -
b.getPhiMu();