|
ATLAS Offline Software
|
This class compares two sets of TileRawChannels.
More...
#include <TileRawChannelVerify.h>
|
| TileRawChannelVerify (const std::string &name, ISvcLocator *pSvcLocator) |
| Constructor. More...
|
|
virtual | ~TileRawChannelVerify () |
| Destructor
More...
|
|
StatusCode | initialize () |
| initialize method More...
|
|
StatusCode | execute () |
| execute method More...
|
|
StatusCode | finalize () |
| finalize method More...
|
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. 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 | 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 |
|
This class compares two sets of TileRawChannels.
It is meant to check if both sets of TileRawChannels contain the same information, since the output is just one line confirming that. Optionally the differences are simply dumped to the screen. They TileRawChannels may have been obtained from different input data or from the same data reconstructed by different methods.
Definition at line 50 of file TileRawChannelVerify.h.
◆ StoreGateSvc_t
◆ TileRawChannelVerify()
TileRawChannelVerify::TileRawChannelVerify |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~TileRawChannelVerify()
TileRawChannelVerify::~TileRawChannelVerify |
( |
| ) |
|
|
virtual |
◆ 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]
◆ execute()
StatusCode TileRawChannelVerify::execute |
( |
| ) |
|
execute method
Definition at line 86 of file TileRawChannelVerify.cxx.
102 for (; rawItr1 != end1; ++rawItr1) ++nSize1;
105 for (; rawItr2 != end2; ++rawItr2) ++nSize2;
110 if (nSize1 != nSize2) {
111 ATH_MSG_ERROR(
"The number of rawChannels is not equal in the two containers" );
112 return (StatusCode::SUCCESS);
116 vector<const TileRawChannel*> rawChannels1;
117 vector<const TileRawChannel*> rawChannels2;
121 rawItr1 = selAll1.begin();
122 end1 = selAll1.end();
123 for (; rawItr1 != end1; ++rawItr1)
124 rawChannels1.push_back((*rawItr1));
128 rawItr2 = selAll2.begin();
129 end2 = selAll2.end();
130 for (; rawItr2 != end2; ++rawItr2)
131 rawChannels2.push_back((*rawItr2));
136 rawItr1 = selAll1.begin();
137 end1 = selAll1.end();
139 rawItr2 = selAll2.begin();
140 end2 = selAll2.end();
143 bool bErrorFlag =
false;
144 bool bHeaderFlag =
true;
145 for (
int i = 0;
i < nSize1; ++
i) {
147 rawChannel1 = rawChannels1[
i];
148 rawChannel2 = rawChannels2[
i];
150 rawChannel1 = (*rawItr1);
152 rawChannel2 = (*rawItr2);
155 HWIdentifier id1 = rawChannel1->
adc_HWID();
159 double diff = fabs(amp1 - amp2);
166 msg(
MSG::VERBOSE) <<
"--------------------------------------------------------------------------------" <<
endmsg;
170 <<
" " << setw(12) << amp1
172 <<
" | " << setw(12) << amp2
181 }
else if (bErrorFlag) {
186 msg(
MSG::VERBOSE) <<
"--------------------------------------------------------------------------------" <<
endmsg;
197 ATH_MSG_INFO(
"TileRawChannelVerify execution completed successfully" );
199 return StatusCode::SUCCESS;
◆ 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
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode TileRawChannelVerify::finalize |
( |
| ) |
|
◆ initialize()
StatusCode TileRawChannelVerify::initialize |
( |
| ) |
|
◆ 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.
◆ 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()
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ 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_dumpRawChannels
bool TileRawChannelVerify::m_dumpRawChannels |
|
private |
if true=> Differences found in the TileRawChannels are dumped on the screen
Definition at line 75 of file TileRawChannelVerify.h.
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_precision
double TileRawChannelVerify::m_precision |
|
private |
maximum difference between the amplitudes of the TileRawChannels to be compared
Definition at line 73 of file TileRawChannelVerify.h.
◆ m_rawChannelContainer1Key
Initial value:{this, "TileRawChannelContainer1",
"", "Input Tile raw channel container 1 key"}
Definition at line 65 of file TileRawChannelVerify.h.
◆ m_rawChannelContainer2Key
Initial value:{this, "TileRawChannelContainer2",
"", "Input Tile raw channel container 2 key"}
Definition at line 69 of file TileRawChannelVerify.h.
◆ m_sortFlag
bool TileRawChannelVerify::m_sortFlag |
|
private |
◆ m_tileHWID
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
bool m_sortFlag
if true=> TileRawChannels are sorted by amplitude
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
bool m_dumpRawChannels
if true=> Differences found in the TileRawChannels are dumped on the screen
const TileHWID * m_tileHWID
Pointer to TileHWID
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool msgLvl(const MSG::Level lvl) const
SG::ReadHandleKey< TileRawChannelContainer > m_rawChannelContainer2Key
const std::string & key() const
Return the StoreGate ID for the referenced object.
double m_precision
maximum difference between the amplitudes of the TileRawChannels to be compared
HWIdentifier adc_HWID(void) const
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
float amplitude(int ind=0) const
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
SG::ReadHandleKey< TileRawChannelContainer > m_rawChannelContainer1Key
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
DataObjIDColl m_extendedExtraObjects
Small class holding a single method to compare two different TileRawChannel
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
std::string to_string(const HWIdentifier &id, int level=0) const
extract all fields from HW identifier HWIdentifier get_all_fields ( const HWIdentifier & id,...
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>