|
ATLAS Offline Software
|
Go to the documentation of this file.
18 const std::string&
name,
31 ATH_MSG_ERROR(
" There are no cuts set (EtaBins property is an empty list)" );
32 return StatusCode::FAILURE;
35 unsigned int nEtaBin =
m_etabin.size();
36 #define CHECK_SIZE( __n) if ( m_##__n.size() != (nEtaBin - 1) ) \
37 { ATH_MSG_DEBUG(" __n size is " << m_##__n.size() << " but needs to be " << (nEtaBin - 1) ); return StatusCode::FAILURE; }
50 return StatusCode::SUCCESS;
67 PassedCuts = PassedCuts + 1;
71 auto roiDescriptor =
input.roi;
74 if ( fabs( roiDescriptor->eta() ) > 2.6 ) {
75 ATH_MSG_DEBUG(
"REJECT The cluster had eta coordinates beyond the EM fiducial volume : " << roiDescriptor->eta() <<
"; stop the chain now" );
81 <<
": Eta = " << roiDescriptor->eta()
82 <<
", Phi = " << roiDescriptor->phi() );
85 double etaRef = roiDescriptor->eta();
86 double phiRef = roiDescriptor->phi();
89 if ( fabs( phiRef ) >
M_PI ) phiRef -= 2*
M_PI;
92 auto pClus =
input.cluster;
96 float absEta = fabs( pClus->eta() );
99 dEta = pClus->eta() - etaRef;
101 dPhi = fabs( pClus->phi() - phiRef );
103 eT_Cluster = pClus->et();
106 <<
" roi eta=" << etaRef <<
" DeltaEta=" <<
dEta
115 PassedCuts = PassedCuts + 1;
119 <<
" roi phi="<< phiRef <<
" DeltaPhi="<<
dPhi
128 PassedCuts = PassedCuts + 1;
131 if ( cutIndex == -1 ) {
137 PassedCuts = PassedCuts + 1;
140 ATH_MSG_DEBUG(
"PrecisionCaloCluster: ET_em=" << eT_Cluster <<
" cut: >" <<
m_eTthr[cutIndex] );
141 if ( eT_Cluster <
m_eTthr[cutIndex] ) {
145 mon_eT_Cluster = eT_Cluster;
160 auto binIterator = std::adjacent_find(
m_etabin.begin(),
m_etabin.end(), [=](
float left,
float right){ return left < absEta and absEta < right; } );
161 if ( binIterator ==
m_etabin.end() ) {
164 return binIterator -
m_etabin.begin();
176 return StatusCode::SUCCESS;
Group
Properties of a chain group.
Scalar phi() const
phi method
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
TrigCompositeUtils::DecisionID numeric() const
numeric ID
Scalar eta() const
pseudorapidity method
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
::StatusCode StatusCode
StatusCode definition for legacy code.
bool dPhi(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
#define CHECK(...)
Evaluate an expression and check for errors.
Header file to be included by clients of the Monitored infrastructure.
bool absEta(const xAOD::TauJet &tau, double &out)
Declare a monitored scalar variable.
bool dEta(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)