![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
#include <TRT_DriftCircleToolCosmics.h>
|
| TRT_DriftCircleToolCosmics (const std::string &, const std::string &, const IInterface *) |
| constructor More...
|
|
virtual | ~TRT_DriftCircleToolCosmics () |
| constructor More...
|
|
virtual StatusCode | initialize () |
| initialize needed services More...
|
|
virtual StatusCode | finalize () |
| finalize More...
|
|
virtual InDet::TRT_DriftCircleCollection * | convert (int, const InDetRawDataCollection< TRT_RDORawData > *, const EventContext &ctx, DataPool< TRT_DriftCircle > *dataItemsPool, const bool CTBBadChannels) const |
| make the conversion from RDOs to DriftCircles More...
|
|
virtual bool | passValidityGate (unsigned int word, float lowGate, float highGate, float t0) const |
| test validity gate for corrected drift times 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 |
|
Class for converting a RDO collection to a DriftCircle collection Performs trigger phase corrections for in-cavern cosmics
Definition at line 43 of file TRT_DriftCircleToolCosmics.h.
◆ StoreGateSvc_t
◆ TRT_DriftCircleToolCosmics()
InDet::TRT_DriftCircleToolCosmics::TRT_DriftCircleToolCosmics |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~TRT_DriftCircleToolCosmics()
InDet::TRT_DriftCircleToolCosmics::~TRT_DriftCircleToolCosmics |
( |
| ) |
|
|
virtualdefault |
◆ convert()
make the conversion from RDOs to DriftCircles
Implements InDet::ITRT_DriftCircleTool.
Definition at line 144 of file TRT_DriftCircleToolCosmics.cxx.
163 if (not trtDetEleHandle.isValid() or elements==
nullptr) {
169 if (theComTime.isValid()) {
172 << theComTime.key() <<
" found! Time="<<timecor);
174 ATH_MSG_VERBOSE(
"Event phase not found with name "<<theComTime.key()<<
"!!!");
185 rio->setIdentifier(rdo->
identify());
195 int LTbin = (*r)->driftTimeBin();
201 unsigned int word = (*r)->getWord();
211 if(!strawstat)
continue;
219 bool isArgonStraw=
true;
224 if( LTbin==0 || LTbin==24 ) {
231 if(!isOK) word &= 0xF7FFFFFF;
232 else word |= 0x08000000;
239 <<
" time bin " << LTbin
240 <<
" timecor " << timecor
241 <<
" corrected time " << rawTime );
256 error = 4./sqrt(12.);
287 ATH_MSG_ERROR(
"Could not create InDet::TRT_DriftCircle object !");
◆ 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
◆ finalize()
StatusCode InDet::TRT_DriftCircleToolCosmics::finalize |
( |
| ) |
|
|
virtual |
◆ initialize()
StatusCode InDet::TRT_DriftCircleToolCosmics::initialize |
( |
| ) |
|
|
virtual |
initialize needed services
Definition at line 94 of file TRT_DriftCircleToolCosmics.cxx.
103 return StatusCode::FAILURE;
109 if (
sc.isFailure() ) {
117 return StatusCode::FAILURE;
◆ 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()
static const InterfaceID& InDet::ITRT_DriftCircleTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
Return method for the InterfaceID.
Definition at line 44 of file ITRT_DriftCircleTool.h.
44 {
return IID_ITRT_DriftCircleTool; };
◆ 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.
◆ passValidityGate()
bool InDet::TRT_DriftCircleToolCosmics::passValidityGate |
( |
unsigned int |
word, |
|
|
float |
lowGate, |
|
|
float |
highGate, |
|
|
float |
t0 |
|
) |
| const |
|
virtual |
test validity gate for corrected drift times
Implements InDet::ITRT_DriftCircleTool.
Definition at line 71 of file TRT_DriftCircleToolCosmics.cxx.
73 bool foundInterval =
false;
74 unsigned mask = 0x02000000;
76 while ( !foundInterval && (
i < 24) ) {
78 float thisTime = ((0.5+
i)*3.125)-
t0;
79 if (thisTime >= lowGate && thisTime <= highGate) foundInterval =
true;
82 if (
i == 7 ||
i == 15)
◆ renounce()
◆ renounceArray()
◆ 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_ConditionsSummary
◆ m_detStore
◆ m_driftFunctionTool
◆ m_evtPhaseKey
SG::ReadHandleKey<ComTime> InDet::TRT_DriftCircleToolCosmics::m_evtPhaseKey {this,"TRT_Phase","TRT_Phase","RHK to retrieve TRT Phase"} |
|
private |
◆ m_evtStore
◆ m_global_offset
float InDet::TRT_DriftCircleToolCosmics::m_global_offset |
|
private |
◆ m_trtDetEleContKey
◆ m_trtid
const TRT_ID* InDet::TRT_DriftCircleToolCosmics::m_trtid |
|
private |
◆ m_useConditionsStatus
bool InDet::TRT_DriftCircleToolCosmics::m_useConditionsStatus |
|
private |
◆ m_useHTCorrection
bool InDet::TRT_DriftCircleToolCosmics::m_useHTCorrection |
|
private |
◆ m_useToTCorrection
bool InDet::TRT_DriftCircleToolCosmics::m_useToTCorrection |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Const iterator class for DataVector/DataList.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Eigen::Matrix< double, 2, 1 > Vector2D
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< ALFA_RawData_p1 > t0
virtual Identifier identify() const override final
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
#define ATH_MSG_VERBOSE(x)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
virtual IdentifierHash identifyHash() const override final
int straw(const Identifier &id) const
void setHashAndIndex(unsigned short collHash, unsigned short objIndex)
TEMP for testing: might make some classes friends later ...
::StatusCode StatusCode
StatusCode definition for legacy code.
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.
int straw_layer(const Identifier &id) const
int layer_or_wheel(const Identifier &id) const
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Trk::PrepRawDataCollection< TRT_DriftCircle > TRT_DriftCircleCollection
StatusCode initialize(bool used=true)
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const boost::regex re(r_e)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Class to hold collection of TRT detector elements.
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.