|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #include "GaudiKernel/ISvcLocator.h"
16 #include "GaudiKernel/DataSvc.h"
17 #include "GaudiKernel/SmartDataPtr.h"
40 (
const std::string&
t,
42 const IInterface*
p ):
45 declareInterface<ITRT_DriftCircleTool>(
this);
59 bool foundInterval =
false;
60 unsigned mask = 0x02000000;
62 while ( !foundInterval && (
i < 24) ) {
64 float thisTime = ((0.5+
i)*3.125)-t0;
65 if (thisTime >= lowGate && thisTime <= highGate) foundInterval =
true;
68 if (
i == 7 ||
i == 15)
89 return StatusCode::FAILURE;
95 if (
sc.isFailure() ) {
103 return StatusCode::FAILURE;
132 const EventContext& ctx,
149 if (not trtDetEleHandle.
isValid() or elements==
nullptr) {
158 << theComTime.
key() <<
" found! Time="<<timecor);
171 rio->setIdentifier(rdo->
identify());
181 int LTbin = (*r)->driftTimeBin();
187 unsigned int word = (*r)->getWord();
197 if(!strawstat)
continue;
205 bool isArgonStraw=
true;
210 if( LTbin==0 || LTbin==24 ) {
217 if(!isOK) word &= 0xF7FFFFFF;
218 else word |= 0x08000000;
225 <<
" time bin " << LTbin
226 <<
" timecor " << timecor
227 <<
" corrected time " << rawTime );
242 error = 4./sqrt(12.);
273 ATH_MSG_ERROR(
"Could not create InDet::TRT_DriftCircle object !");
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
virtual Identifier identify() const override final
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
#define ATH_MSG_VERBOSE(x)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
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.
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 bool isValid() override final
Can the handle be successfully dereferenced?
Trk::PrepRawDataCollection< TRT_DriftCircle > TRT_DriftCircleCollection
StatusCode initialize(bool used=true)
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const TRT_BaseElement * getDetectorElement(const IdentifierHash &hash) const
const boost::regex re(r_e)
a typed memory pool that saves time spent allocation small object. This is typically used by containe...
const TRT_DetElementCollection * getElements() const
Class to hold collection of TRT detector elements.
Handle class for reading from StoreGate.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.