|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include <boost/algorithm/string.hpp>
22 m_trigDecTool(
"Trig::TrigDecisionTool/TrigDecisionTool")
39 return StatusCode::SUCCESS;
44 double dphi = fabs(phi1 - phi2) < TMath::Pi() ? fabs(phi1 - phi2) : 2*TMath:: \
45 Pi() - fabs(phi1 - phi2);
46 return sqrt(deta*deta + dphi*dphi);
74 for(
const auto el : *cont){
86 if(dRMax <
m_dR)
return elEF;
97 for(
const auto ph : *cont){
109 if(dRMax <
m_dR)
return phEF;
128 #endif // XAOD_ANALYSIS
130 for(
const auto& feat :
vec){
132 if(cont ==
nullptr) {
136 for(
const auto el : *cont){
149 std::string
key =
"egamma_Photons";
158 #endif // XAOD_ANALYSIS
159 for(
const auto& feat :
vec){
161 if(cont ==
nullptr) {
165 for(
const auto ph : *cont){
184 auto fc = (
m_trigDecTool->features(trigger,TrigDefs::alsoDeactivateTEs));
185 std::string
key =
"egamma_Photons";
194 #endif // XAOD_ANALYSIS
197 for(
auto feat :
vec){
199 if(cont ==
nullptr) {
204 for(
const auto ph : *cont){
211 finalFC = (feat.te());
223 auto fc = (
m_trigDecTool->features(trigger,TrigDefs::alsoDeactivateTEs));
229 #endif // XAOD_ANALYSIS
232 for(
auto feat :
vec){
234 if(cont ==
nullptr) {
239 for(
const auto el : *cont){
246 finalFC = (feat.te());
252 ATH_MSG_DEBUG(
"Reached the end in matchHLTElectron. So didn't match!");
259 auto fc = (
m_trigDecTool->features(trigger,TrigDefs::alsoDeactivateTEs));
264 #endif // XAOD_ANALYSIS
268 for(
auto feat :
vec){
271 if(cont ==
nullptr) {
275 for(
const auto clus : *cont){
276 if(clus ==
nullptr) {
280 deltaR =
dR(
eg->eta(),
eg->phi(), clus->eta(),clus->phi());
282 finalFC = (feat.te());
294 auto fc = (
m_trigDecTool->features(trigger,TrigDefs::alsoDeactivateTEs));
303 for(
auto feat :
vec){
305 if(cont ==
nullptr) {
310 for(
const auto l2 : *cont){
317 finalFC = (feat.te());
328 auto fc = (
m_trigDecTool->features(trigger,TrigDefs::alsoDeactivateTEs));
336 for(
auto feat :
vec){
338 if(cont ==
nullptr) {
343 for(
const auto l2 : *cont){
350 finalFC = (feat.te());
361 auto fc = (
m_trigDecTool->features(trigger,TrigDefs::alsoDeactivateTEs));
363 ATH_MSG_DEBUG(
"No matching for TrigEMCluster in AnalysisBase");
369 for(
auto feat :
vec){
379 finalFC = (feat.te());
395 auto fc = (
m_trigDecTool->features(trigger,TrigDefs::alsoDeactivateTEs));
397 if ( initRois.size() < 1 )
return false;
398 for (
auto initRoi: initRois) {
408 finalFC = (itEmTau.te());
479 if(
matchL1(
eg,trigger,finalFC) )
return true;
489 if(
match(
eg,trigger,finalFC) ){
490 if( finalFC ==
nullptr)
return false;
virtual double phi() const
The azimuthal angle ( ) of the particle.
Electron_v1 Electron
Definition of the current "egamma version".
float eta() const
get Eta (calibrated)
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
The common trigger namespace for trigger analysis tools.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
std::vector< Feature< CONTAINER > > containerFeature(const std::string &label="", unsigned int condition=TrigDefs::Physics, const std::string &teName="") const
const T * get(size_type n) const
Access an element, as an rvalue.
setEt setPhi setE277 setWeta2 eta1
const xAOD::TrackParticle * trackParticle(size_t index=0) const
Pointer to the xAOD::TrackParticle/s that match the electron candidate.
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_AN...
std::vector< size_t > vec
float phi() const
get Phi (calibrated)
virtual double eta() const
The pseudorapidity ( ) of the particle.
Class describing a LVL1 em/tau region of interest.
::StatusCode StatusCode
StatusCode definition for legacy code.
bool isElectron(const xAOD::Egamma *eg)
is the object an electron (not Fwd)
TriggerElement is the basic ingreedient of the interface between HLT algorithms and the navigation It...
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring
const xAOD::CaloCluster * caloCluster(size_t index=0) const
Pointer to the xAOD::CaloCluster/s that define the electron candidate.
virtual double phi() const override final
The azimuthal angle ( ) of the particle.
const std::vector< Trig::Feature< T > > get(const std::string &label="", unsigned int condition=TrigDefs::Physics, const std::string &teName="") const
returns flattened vector of Features of given type This method is in fact sullied by 3 arguments.
Photon_v1 Photon
Definition of the current "egamma version".
#define ATH_MSG_WARNING(x)
bool isPhoton(const xAOD::Egamma *eg)
is the object a photon
float et() const
get Et (calibrated)
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
Description of a trigger EM cluster.
size_type size() const noexcept
Returns the number of elements in the collection.
virtual double phi() const override final
The azimuthal angle ( ) of the particle (has range to .)