 |
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, V, H > &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 |
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
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);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ 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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ 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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ 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 32 of file TriggerInfoRetriever.cxx.
40 return StatusCode::SUCCESS;
43 if (trigger_info == 0){
45 return StatusCode::SUCCESS;
49 std::string triggerInfoStrL1=
"0";
50 std::string triggerInfoStrL2=
"0";
51 std::string triggerInfoStrEF=
"0";
52 std::string triggerInfoStreamTag=
"0";
75 triggerInfoStrL1 =
"-";
83 triggerInfoStrL2 =
"-";
91 triggerInfoStrEF =
"-";
98 triggerInfoStreamTag =
"-";
102 <<
" type " << trigger_info->
streamTags()[
i].type()
103 <<
" ObeysLumi " << trigger_info->
streamTags()[
i].obeysLumiblock();
105 triggerInfoStreamTag += trigger_info->
streamTags()[
i].name() +
"_" +
107 if ( trigger_info->
streamTags()[
i].obeysLumiblock() ){
108 triggerInfoStreamTag +=
"ObeysLumi";
110 triggerInfoStreamTag +=
"notObeysLumi";
112 if ( eventInfo->
event_ID()->lumi_block() ){
113 triggerInfoStreamTag +=
"_lumiBlock";
114 triggerInfoStreamTag +=
DataType(eventInfo->
event_ID()->lumi_block()).toString();
116 triggerInfoStreamTag +=
"_lumiBlockUnknown";
118 triggerInfoStreamTag +=
"-";
126 trigInfoL1Vec.emplace_back(std::move(triggerInfoStrL1));
127 trigInfoL2Vec.emplace_back(std::move(triggerInfoStrL2 ));
128 trigInfoEFVec.emplace_back(std::move( triggerInfoStrEF ));
129 trigInfoStreamTagVec.emplace_back(std::move( triggerInfoStreamTag ));
140 energySumEtVec.push_back(
DataType( -1. ) );
141 energyExVec.push_back(
DataType( -1. ) );
142 energyEyVec.push_back(
DataType( -1. ) );
143 energyEtMissVec.push_back(
DataType( -1. ) );
150 for (; itES != itESe; ++itES){
154 energySumEtVec.push_back(
DataType( Et ) );
155 energyExVec.push_back(
DataType( Ex ) );
156 energyEyVec.push_back(
DataType( Ey ) );
157 float EtMiss =
static_cast<long>(sqrt(
static_cast<double>(Ex*Ex + Ey*Ey)));
158 energyEtMissVec.push_back(
DataType( EtMiss ) );
161 << Ey <<
", T:" << Et <<
", ETMiss:" << EtMiss <<
endmsg;
166 energySumEtVec.push_back(
DataType(
"-1" ) );
167 energyExVec.push_back(
DataType(
"-1" ) );
168 energyEyVec.push_back(
DataType(
"-1" ) );
169 energyEtMissVec.push_back(
DataType(
"-1" ) );
174 const int nEntries = trigInfoStatusVec.size();
175 myDataMap[
"energySumEt"] = std::move(energySumEtVec);
176 myDataMap[
"energyEx"] = std::move(energyExVec);
177 myDataMap[
"energyEy"] = std::move(energyEyVec);
178 myDataMap[
"energyEtMiss"] = std::move(energyEtMissVec);
179 myDataMap[
"trigInfoStatus"] = std::move(trigInfoStatusVec);
180 myDataMap[
"trigInfoExtL1ID"] = std::move(trigInfoExtL1IDVec);
181 myDataMap[
"trigInfoLvl1Type"] = std::move(trigInfoLvl1TypeVec);
182 myDataMap[
"trigInfoL1"] = std::move(trigInfoL1Vec);
183 myDataMap[
"trigInfoL2"] = std::move(trigInfoL2Vec);
184 myDataMap[
"trigInfoEF"] = std::move(trigInfoEFVec);
185 myDataMap[
"trigInfoStreamTag"] = std::move(trigInfoStreamTagVec);
190 std::string emptyStr=
"";
191 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.
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
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
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
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
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