![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
#include <TriggerInfoRetriever.h>
|
| TriggerInfoRetriever (const std::string &type, const std::string &name, const IInterface *parent) |
| Standard Constructor. More...
|
|
virtual StatusCode | retrieve (ToolHandle< IFormatTool > &FormatTool) |
| Retrieve all the data. More...
|
|
virtual std::string | dataTypeName () const |
| Return the name of the data type. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Definition at line 17 of file TriggerInfoRetriever.h.
◆ StoreGateSvc_t
◆ TriggerInfoRetriever()
JiveXML::TriggerInfoRetriever::TriggerInfoRetriever |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ dataTypeName()
virtual std::string JiveXML::TriggerInfoRetriever::dataTypeName |
( |
| ) |
const |
|
inlinevirtual |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
const InterfaceID & JiveXML::IDataRetriever::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
Return the interface identifier.
Definition at line 40 of file IDataRetriever.h.
40 {
return IID_IDataRetriever; }
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ retrieve()
StatusCode JiveXML::TriggerInfoRetriever::retrieve |
( |
ToolHandle< IFormatTool > & |
FormatTool | ) |
|
|
virtual |
Retrieve all the data.
Implements JiveXML::IDataRetriever.
Definition at line 31 of file TriggerInfoRetriever.cxx.
39 return StatusCode::SUCCESS;
42 if (trigger_info == 0){
44 return StatusCode::SUCCESS;
48 std::string triggerInfoStrL1=
"0";
49 std::string triggerInfoStrL2=
"0";
50 std::string triggerInfoStrEF=
"0";
51 std::string triggerInfoStreamTag=
"0";
81 triggerInfoStrL1 =
"-";
90 triggerInfoStrL2 =
"-";
99 triggerInfoStrEF =
"-";
107 triggerInfoStreamTag =
"-";
111 <<
" type " << trigger_info->
streamTags()[
i].type()
112 <<
" ObeysLumi " << trigger_info->
streamTags()[
i].obeysLumiblock();
128 triggerInfoStreamTag += trigger_info->
streamTags()[
i].name() +
"_" +
130 if ( trigger_info->
streamTags()[
i].obeysLumiblock() ){
131 triggerInfoStreamTag +=
"ObeysLumi";
133 triggerInfoStreamTag +=
"notObeysLumi";
135 if ( eventInfo->
event_ID()->lumi_block() ){
136 triggerInfoStreamTag +=
"_lumiBlock";
137 triggerInfoStreamTag +=
DataType(eventInfo->
event_ID()->lumi_block()).toString();
139 triggerInfoStreamTag +=
"_lumiBlockUnknown";
141 triggerInfoStreamTag +=
"-";
149 trigInfoL1Vec.push_back(
DataType( triggerInfoStrL1 ));
150 trigInfoL2Vec.push_back(
DataType( triggerInfoStrL2 ));
151 trigInfoEFVec.push_back(
DataType( triggerInfoStrEF ));
152 trigInfoStreamTagVec.push_back(
DataType( triggerInfoStreamTag ));
164 energySumEtVec.push_back(
DataType( -1. ) );
165 energyExVec.push_back(
DataType( -1. ) );
166 energyEyVec.push_back(
DataType( -1. ) );
167 energyEtMissVec.push_back(
DataType( -1. ) );
174 for (; itES != itESe; ++itES){
178 energySumEtVec.push_back(
DataType( Et ) );
179 energyExVec.push_back(
DataType( Ex ) );
180 energyEyVec.push_back(
DataType( Ey ) );
181 float EtMiss =
static_cast<long>(sqrt(
static_cast<double>(Ex*Ex + Ey*Ey)));
182 energyEtMissVec.push_back(
DataType( EtMiss ) );
185 << Ey <<
", T:" << Et <<
", ETMiss:" << EtMiss <<
endmsg;
190 energySumEtVec.push_back(
DataType(
"-1" ) );
191 energyExVec.push_back(
DataType(
"-1" ) );
192 energyEyVec.push_back(
DataType(
"-1" ) );
193 energyEtMissVec.push_back(
DataType(
"-1" ) );
198 myDataMap[
"energySumEt"] = energySumEtVec;
199 myDataMap[
"energyEx"] = energyExVec;
200 myDataMap[
"energyEy"] = energyEyVec;
201 myDataMap[
"energyEtMiss"] = energyEtMissVec;
202 myDataMap[
"trigInfoStatus"] = trigInfoStatusVec;
203 myDataMap[
"trigInfoExtL1ID"] = trigInfoExtL1IDVec;
204 myDataMap[
"trigInfoLvl1Type"] = trigInfoLvl1TypeVec;
205 myDataMap[
"trigInfoL1"] = trigInfoL1Vec;
206 myDataMap[
"trigInfoL2"] = trigInfoL2Vec;
207 myDataMap[
"trigInfoEF"] = trigInfoEFVec;
208 myDataMap[
"trigInfoStreamTag"] = trigInfoStreamTagVec;
213 std::string emptyStr=
"";
214 return FormatTool->AddToEvent(
dataTypeName(), emptyStr, &myDataMap);
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_detStore
◆ m_evtStore
◆ m_typeName
const std::string JiveXML::TriggerInfoRetriever::m_typeName |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
const std::vector< StreamTag > & streamTags() const
get stream tags
virtual std::string dataTypeName() const
Return the name of the data type.
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.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool msgLvl(const MSG::Level lvl) const
std::map< std::string, DataVect > DataMap
virtual void setOwner(IDataHandleHolder *o)=0
const std::vector< number_type > & level1TriggerInfo() const
get level1 trigger info
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const std::vector< number_type > & level2TriggerInfo() const
get level2 trigger info
EventID * event_ID()
the unique identification of the event.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
number_type level1TriggerType() const
get level1 trigger type
Top level AOD object storing LVL1 RoIs.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
const std::string m_typeName
The data type that is generated by this retriever.
This class contains trigger related information.
const energysums_type & getEnergySumROIs() const
Get all the energy sum RoIs in the event.
This class provides general information about an event. Event information is provided by the accessor...
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
number_type extendedLevel1ID() const
get extended level1 ID
const std::vector< number_type > & eventFilterInfo() const
get event filter trigger info
TriggerInfo * trigger_info()
trigger information (ptr may be NULL)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
number_type statusElement() const
get status element
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>