|
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"
41 const IInterface*
p ):
43 m_driftFunctionTool(
"TRT_DriftFunctionTool"),
44 m_ConditionsSummary(
"TRT_StrawStatusSummaryTool",this),
45 m_useConditionsStatus(false),
48 m_useToTCorrection(false),
49 m_useHTCorrection(false)
52 declareInterface<ITRT_DriftCircleTool>(
this);
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)
103 return StatusCode::FAILURE;
109 if (
sc.isFailure() ) {
117 return StatusCode::FAILURE;
146 const EventContext& ctx,
163 if (not trtDetEleHandle.
isValid() or elements==
nullptr) {
172 << theComTime.
key() <<
" found! Time="<<timecor);
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 !");
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
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.
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.