Skip to content
Snippets Groups Projects
Commit 0dd32264 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

JetTaggingTagTools: delete obsolete TAG maker

parent 908bb7dd
No related branches found
No related tags found
No related merge requests found
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# Declare the package name:
atlas_subdir( JetTaggingTagTools )
# External dependencies:
find_package( CLHEP )
# Component(s) in the package:
atlas_add_library( JetTaggingTagToolsLib
src/*.cxx
PUBLIC_HEADERS JetTaggingTagTools
PRIVATE_INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS}
PRIVATE_DEFINITIONS ${CLHEP_DEFINITIONS}
LINK_LIBRARIES AthenaBaseComps AthenaPoolUtilities TagEvent StoreGateLib
PRIVATE_LINK_LIBRARIES ${CLHEP_LIBRARIES} GaudiKernel JetEvent )
atlas_add_component( JetTaggingTagTools
src/components/*.cxx
LINK_LIBRARIES JetTaggingTagToolsLib )
# Install files from the package:
atlas_install_joboptions( share/*.py )
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef JETTAGGINGTAGTOOL_H
#define JETTAGGINGTAGTOOL_H
/*****************************************************************************
Name : JetTaggingTagTool.h
Package : offline/PhysicsAnalysis/JetTagging/JetTaggingTagTools
Author : Ketevi A. Assamagan
Created : January 2006
Purpose : build the Flavor Tagging Event Tag object - AnalysisTag.h.
The JetTagging Analysis Tag fragment is built here
For example encoding the results of hypotheses on different channels
*****************************************************************************/
#include "AthenaBaseComps/AthAlgTool.h"
#include "StoreGate/StoreGateSvc.h"
#include "TagEvent/TagFragmentCollection.h"
#include "AthenaPoolUtilities/AthenaAttributeSpecification.h"
#include <map>
/** Interface ID for JetTaggingTagTool*/
static const InterfaceID IID_JetTaggingTagTool("JetTaggingTagTool", 1, 0);
class JetTaggingTagTool : public AthAlgTool {
public:
/** Standard Constructor */
JetTaggingTagTool(const std::string& type, const std::string& name, const IInterface*
parent);
/** AlgTool and IAlgTool interface methods */
static const InterfaceID& interfaceID( ) { return IID_JetTaggingTagTool; };
/** Overriding initialize, finalize and execute */
virtual StatusCode initialize();
virtual StatusCode attributeSpecification(std::map<std::string,AthenaAttributeType>& attrMap, const int max);
virtual StatusCode execute(TagFragmentCollection& tauIdTagCol, const int max);
virtual StatusCode finalize();
private:
/** Properties */
std::string m_jetContainerName;
double m_jetPtCut;
};
#endif // JETTAGGINGTAGTOOL_H
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
/**
@page JetTaggingTagTools_page JetTaggingTagTools
@section JetTaggingTagTools_introductionJetTaggingTagTools Introduction
This package contains the alg tools for building the TAG fragment for the flavor tagging process.
@section JetTaggingTagTools_packagecontentJetTaggingTagTools Package Contents
JetTaggingTagTools contains the following tools:
- JetTaggingTagTool ... tool for flavor tagging TAG fragment
- for questions and comments: ketevi@bnl.gov
*/
include.block ("JetTaggingTagTools/JetTaggingTagTool_jobOptions.py")
########### Flavor tagging analysis tag options ################
from JetTaggingTagTools.JetTaggingTagToolsConf import \
JetTaggingTagTool as ConfiguredJetTaggingTagTool
JetTaggingTagTool=ConfiguredJetTaggingTagTool(
JetContainer = "AntiKt4TopoJets",
EtCut = 15.0*GeV)
ToolSvc += JetTaggingTagTool
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
/*****************************************************************************
Name : JetTaggingTagTool.cxx
Package : offline/PhysicsAnalysis/JetTagging/JetTaggingTagTools
Author : Ketevi A. Assamagan
Created : January 2006
Purpose : create a Flavor Tagging Event Tag - a word to encode Flavor Tagging specific
information, perhaps about different tagging options.
*****************************************************************************/
#include "GaudiKernel/MsgStream.h"
#include "Gaudi/Property.h"
#include "CLHEP/Units/SystemOfUnits.h"
#include "StoreGate/StoreGateSvc.h"
#include "JetEvent/JetCollection.h"
#include "JetTaggingTagTools/JetTaggingTagTool.h"
#include "TagEvent/JetTaggingAttributeNames.h"
#include "AthenaPoolUtilities/AthenaAttributeSpecification.h"
/** the constructor */
JetTaggingTagTool::JetTaggingTagTool (const std::string& type, const std::string& name,
const IInterface* parent) :
AthAlgTool( type, name, parent ) {
/** AOD Container Names */
declareProperty("JetContainer", m_jetContainerName = "AntiKt4H1TopoJets");
/** Pt cut on jte - modifiable in job options */
declareProperty("EtCut", m_jetPtCut = 15.0*CLHEP::GeV);
declareInterface<JetTaggingTagTool>( this );
}
/** initialization - called once at the begginning */
StatusCode JetTaggingTagTool::initialize() {
MsgStream mLog(msgSvc(), name());
mLog << MSG::DEBUG << "in intialize()" << endmsg;
return StatusCode::SUCCESS;
}
/** build the attribute list - called in initialize */
StatusCode JetTaggingTagTool::attributeSpecification(std::map<std::string,AthenaAttributeType>& attrMap,
const int max) {
MsgStream mLog(msgSvc(), name());
mLog << MSG::DEBUG << "in attributeSpecification()" << endmsg;
/** specifiy the Jet Tagging the attributes */
attrMap[ JetTaggingAttributeNames[0] ] = AthenaAttributeType("unsigned int",JetTaggingAttributeUnitNames[0], JetTaggingAttributeGroupNames[0]);
/** add more stuff if necessary */
for (int i=0; i<max; ++i) {}
return StatusCode::SUCCESS;
}
/** execute - called on every event */
StatusCode JetTaggingTagTool::execute(TagFragmentCollection& jetTagCol, const int max) {
MsgStream mLog(msgSvc(), name());
mLog << MSG::DEBUG << "in execute()" << endmsg;
/** fill the JetTagging analysis tag */
unsigned int fragment = 0x0;
jetTagCol.insert( JetTaggingAttributeNames[0], fragment );
/** add more stuff if necessary */
for (int i=0; i<max; ++i) {}
return StatusCode::SUCCESS;
}
/** finialize - called once at the end */
StatusCode JetTaggingTagTool::finalize() {
MsgStream mLog(msgSvc(), name());
mLog << MSG::DEBUG << "in finalize()" << endmsg;
return StatusCode::SUCCESS;
}
#include "JetTaggingTagTools/JetTaggingTagTool.h"
DECLARE_COMPONENT( JetTaggingTagTool )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment