![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "CLHEP/Units/SystemOfUnits.h"
24 declareInterface<IDataRetriever>(
this);
27 "Collection to be first in output, shown in Atlantis without switching");
29 "Other collections to be retrieved. If list left empty, all available retrieved");
31 declareProperty(
"WeightCut",
m_weightCut = 2.4,
"Weight cut flavourTagWeight, to assign lhSig = 1. Currently: JetFitterCOMBNN");
50 if (
sc.isFailure() ) {
64 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING) <<
"Unable to retrieve iterator for Jet collection" <<
endmsg;
70 std::string::size_type position =
iterator.key().find(
"HLTAutoKey",0);
80 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING) <<
"Collection " <<
iterator.key() <<
" not found in SG " <<
endmsg;
89 std::vector<std::string>::const_iterator keyIter;
91 if ( !
evtStore()->contains<JetCollection>( (*keyIter) ) ){
continue; }
93 if (!
sc.isFailure()) {
96 if ( FormatTool->AddToEvent(
dataTypeName(), (*keyIter)+
"_AOD", &
data).isFailure()){
97 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING) <<
"Collection " << (*keyIter) <<
" not found in SG " <<
endmsg;
105 return StatusCode::SUCCESS;
137 float dummyLhSig = 0.;
139 std::string myLabel =
"none";
141 if (
jets->size() == 0 ){
145 for (; itr !=
jets->end(); ++itr) {
154 if ( (*itr)->getFlavourTagWeight(
"JetFitterCOMBNN") >
m_weightCut ){
159 std::string myLabel =
"none";
161 "weight_JetFitterCOMBNN=" +
DataType( (*itr)->getFlavourTagWeight(
"JetFitterCOMBNN") ).toString() +
"_"
162 +
"WeightJetFitterTagNN=" +
DataType( (*itr)->getFlavourTagWeight(
"JetFitterTagNN") ).toString() +
"_"
163 +
"WeightIP3DSV1=" +
DataType( (*itr)->getFlavourTagWeight() ).toString() +
"_"
164 +
"WeightIP2D=" +
DataType( (*itr)->getFlavourTagWeight(
"IP2D") ).toString() +
"_"
165 +
"WeightIP3D=" +
DataType( (*itr)->getFlavourTagWeight(
"IP3D") ).toString() +
"_"
166 +
"WeightSV1=" +
DataType( (*itr)->getFlavourTagWeight(
"SV1") ).toString() +
"_"
167 +
"WeightSV2=" +
DataType( (*itr)->getFlavourTagWeight(
"SV2") ).toString() +
"_";
177 weight.push_back(
DataType((*itr)->getFlavourTagWeight(
"JetFitterCOMBNN")));
178 lhSig.push_back(
DataType( dummyLhSig ));
203 msg(
MSG::DEBUG) <<
" retrieved with " <<
phi.size() <<
" entries, weight cut set to: "
JetConstituentVector::iterator iterator
char data[hepevt_bytes_allocation_ATLAS]
Const iterator class for DataVector/DataList.
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.
bool msgLvl(const MSG::Level lvl) const
std::map< std::string, DataVect > DataMap
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual std::string dataTypeName() const
Return the name of the data type.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< std::string > m_otherKeys
BJetRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
double charge(const T &p)
const DataMap getData(const JetCollection *)
Retrieve basic parameters, mainly four-vectors.
std::string m_sgKeyFavourite
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.