ATLAS Offline Software
Macros | Functions
xAODMissingETAuxAssociationMapCnv_v1.cxx File Reference
#include <stdexcept>
#include "GaudiKernel/MsgStream.h"
#include "AthContainers/tools/copyAuxStoreThinned.h"
#include "xAODMissingET/MissingETAssociationMap.h"
#include "xAODMissingET/versions/MissingETAssociationMap_v1.h"
#include "xAODMissingETAuxAssociationMapCnv_v1.h"
#include <utility>
#include <algorithm>
Include dependency graph for xAODMissingETAuxAssociationMapCnv_v1.cxx:

Go to the source code of this file.

Macros

#define MSGLVL   MSG::VERBOSE
 Convenience macro for setting the level of output messages. More...
 
#define ATH_MSG(MSG)
 Another convenience macro for printing messages in the converter. More...
 

Functions

bool maskSumptSort (const std::pair< bitmask_t, constvec_t > &p1, const std::pair< bitmask_t, constvec_t > &p2)
 

Macro Definition Documentation

◆ ATH_MSG

#define ATH_MSG (   MSG)
Value:
do { \
if( log.level() <= MSGLVL ) { \
log << MSGLVL << MSG << endmsg; \
} \
} while( 0 )

Another convenience macro for printing messages in the converter.

Definition at line 29 of file xAODMissingETAuxAssociationMapCnv_v1.cxx.

◆ MSGLVL

#define MSGLVL   MSG::VERBOSE

Convenience macro for setting the level of output messages.

Definition at line 26 of file xAODMissingETAuxAssociationMapCnv_v1.cxx.

Function Documentation

◆ maskSumptSort()

bool maskSumptSort ( const std::pair< bitmask_t, constvec_t > &  p1,
const std::pair< bitmask_t, constvec_t > &  p2 
)

Definition at line 42 of file xAODMissingETAuxAssociationMapCnv_v1.cxx.

42  {
43  if(MissingETBase::Numerical::isEqual(p1.second.sumpt(),p2.second.sumpt())) {
44  return p1.first>p2.first;
45  }
46  return p1.second.sumpt()<p2.second.sumpt();
47 }
TRTCalib_cfilter.p1
p1
Definition: TRTCalib_cfilter.py:130
TRTCalib_cfilter.p2
p2
Definition: TRTCalib_cfilter.py:131
MSG
Definition: MsgLevel.h:28
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
MissingETBase::Numerical::isEqual
static bool isEqual(double x, double y)
Test of equality.
Definition: MissingETBase.h:119
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MSGLVL
#define MSGLVL
Convenience macro for setting the level of output messages.
Definition: xAODMissingETAuxAssociationMapCnv_v1.cxx:25