ATLAS Offline Software
Classes | Functions
ClearStorePolicy.h File Reference
#include "GaudiKernel/MsgStream.h"
#include <string>
Include dependency graph for ClearStorePolicy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ClearStorePolicy
 

Functions

ClearStorePolicy::Type clearStorePolicy (const std::string &policyName, MsgStream &msg)
 returns the enum-version of the policy (by name) More...
 

Function Documentation

◆ clearStorePolicy()

ClearStorePolicy::Type clearStorePolicy ( const std::string &  policyName,
MsgStream &  msg 
)

returns the enum-version of the policy (by name)

Definition at line 7 of file ClearStorePolicy.cxx.

9 {
10  if ( "BeginEvent" == policyName ) { return ClearStorePolicy::BeginEvent;
11  } else if ( "EndEvent" == policyName ) { return ClearStorePolicy::EndEvent;
12  } else {
13  msg << MSG::WARNING
14  << "Unknown policy [" << policyName << "] for the 'clear-store' "
15  << "policy !! We'll use 'BeginEvent' instead !!"
16  << endmsg;
18  }
19 }
ClearStorePolicy::EndEvent
@ EndEvent
Definition: ClearStorePolicy.h:15
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
ClearStorePolicy::BeginEvent
@ BeginEvent
Definition: ClearStorePolicy.h:14
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7