Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "boost/tokenizer.hpp"
7 #include <boost/algorithm/string.hpp>
27 m_vtxContainer(nullptr), m_vtxAuxContainer(nullptr),
28 m_cachedRun(-1), m_cachedEvent(-1),
29 m_eventsForBlindingSeen(0),
30 m_candidatesForBlindingSeen(0),
31 m_eventsForUnblindingSeen(0),
32 m_candidatesForUnblindingSeen(0),
34 m_candidatesBlinded(0),
36 m_candidatesUnblinded(0) {
39 declareInterface< IBPhysBlindingTool >(
this );
40 #endif // ASGTOOL_ATHENA
88 ATH_MSG_ERROR(
"You must at least set a key for blinding or unblinding!");
141 return StatusCode::SUCCESS;
157 ATH_MSG_INFO(Form(
"N_candidatesForBlindingSeen : %10ld",
161 ATH_MSG_INFO(Form(
"N_candidatesForUnblindingSeen : %10ld",
167 return StatusCode::SUCCESS;
187 const bool& negativeSign,
189 const float& factor) {
197 if (negativeSign) bval *= -1.;
200 <<
val << Form(
" (%a) -> ",
val)
201 << cval << Form(
" (%a)", cval));
210 const bool& negativeSign,
212 const float& factor) {
214 float bval(
val), cval(
val);
215 if (negativeSign) bval *= -1.;
217 if ( bval > 0. || !std::isnormal(bval) ) {
220 if ( factor != 0. ) {
221 cval = (cval -
offset)/factor;
224 <<
val << Form(
" (%a)",
val));
228 <<
val << Form(
" (%a) -> ",
val)
229 << bval << Form(
" (%a)", bval));
246 return StatusCode::SUCCESS;
260 return StatusCode::SUCCESS;
283 long candidatesBlinded(0);
284 long candidatesUnblinded(0);
301 ++candidatesUnblinded;
310 float val = floatDec(*vtx);
317 << Form(
" (%a)", floatDec(*vtx)));
324 << Form(
" (%a)", floatDec(*vtx)));
343 return StatusCode::SUCCESS;
390 for (
const xAOD::Vertex* constVtx : *constVtxContainer) {
409 return StatusCode::SUCCESS;
417 if ( !hypo.starts_with(
"passed_") )
418 hypo =
"passed_" + hypo;
420 return flagAcc.
isAvailable(em) && flagAcc(em) != 0;
425 std::vector<std::string>
428 std::vector<std::string>
tokens;
429 boost::char_separator<char>
sep(seperators.c_str());
430 typedef boost::tokenizer<boost::char_separator<char> > Tokenizer_t;
431 Tokenizer_t tokenizer(input,
sep);
432 for (
auto& token : tokenizer) {
442 std::string
str(
"[");
443 for (
unsigned int i=0;
i<
v.size(); ++
i) {
445 if (
i <
v.size()-1 )
str +=
",";
455 std::string
str(
"[");
456 for (
unsigned int i=0;
i<
v.size(); ++
i) {
458 if (
i <
v.size()-1 )
str +=
",";
def retrieve(aClass, aKey=None)
virtual ULLI_t encrypt(ULLI_t x)
Encrypt a positive integer value.
Const iterator class for DataVector/DataList.
Temporary container used until we have I/O for AuxStoreInternal.
Vertex_v1 Vertex
Define the latest version of the vertex class.
Helper class to provide type-safe access to aux data.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Base class for elements of a container that can have aux data.
virtual void setPubKey(std::string keystr)
Set public key.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
virtual void setPrivKey(std::string keystr)
Set private key.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Helper class to provide type-safe access to aux data.
VertexAuxContainer_v1 VertexAuxContainer
Definition of the current jet auxiliary container.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::string str(const TrigT2MbtsBits_v1 &trigT2MbtsBits)
std::string to_string(const DetectorType &type)
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Class describing the basic event information.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
Class describing a Vertex.
virtual ULLI_t decrypt(ULLI_t x)
Decrypt a positive integer value.
#define ATH_MSG_WARNING(x)
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.