|
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"
36 const IInterface*
p ):
39 declareInterface<ITRT_DriftCircleTool>(
this);
61 return StatusCode::FAILURE;
68 return StatusCode::FAILURE;
75 if (
sc.isFailure() ) {
82 ATH_MSG_DEBUG(
"Luminosity conditions data key not set. No mu correction." );
105 bool foundInterval =
false;
106 unsigned mask = 0x02000000;
108 while ( !foundInterval && (
i < 24) ) {
110 float thisTime = ((0.5+
i)*3.125)-t0;
111 if (thisTime >= lowGate && thisTime <= highGate) foundInterval =
true;
114 if (
i == 7 ||
i == 15)
118 return foundInterval;
130 const EventContext& ctx,
132 const bool getTRTBadChannel)
const
145 if (not trtDetEleHandle.
isValid() or elements==
nullptr) {
162 rio->setIdentifier(rdo->
identify());
169 bool isArgonStraw =
false;
170 bool isGasSet =
false;
178 int LTbin = (*r)->driftTimeBin();
182 unsigned int word = (*r)->getWord();
196 rawTime -=
m_driftFunctionTool->driftTimeToTCorrection((*r)->timeOverThreshold(),
id, isArgonStraw);
205 if( LTbin==0 || LTbin==24) {
212 if(!isOK) word &= 0xF7FFFFFF;
213 else word |= 0x08000000;
216 rawTime = (0.5+LTbin)*3.125;
255 if (!isOK ||
Mode > 1) {
258 error = 4. / sqrt(12.);
287 << MSG::dec <<
" data word raw " << MSG::hex << (*r)->getWord()
288 << MSG::dec <<
" radius " <<
radius <<
" err " <<
error);
291 <<
" raw time " << (0.5 + LTbin) * 3.125
293 <<
" OK? " << isOK <<
" Noise? "
294 << tdc->
isNoise() <<
" isArgon? "
297 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.
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Eigen::Matrix< double, 2, 1 > Vector2D
double timeOverThreshold() const
returns Time over threshold in ns
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 std::string & key() const
Return the StoreGate ID for the referenced object.
bool empty() const
Test if the key is blank.
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
bool isNoise() const
returns true if the hit is caused by noise with a high probability.
void setHashAndIndex(unsigned short collHash, unsigned short objIndex)
TEMP for testing: might make some classes friends later ...
::StatusCode StatusCode
StatusCode definition for legacy code.
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
int straw_layer(const Identifier &id) const
pointer nextElementPtr()
obtain the next available element in pool by pointer pool is resized if its limit has been reached On...
int layer_or_wheel(const Identifier &id) const
float lbAverageInteractionsPerCrossing() const
Trk::PrepRawDataCollection< TRT_DriftCircle > TRT_DriftCircleCollection
StatusCode initialize(bool used=true)
int phi_module(const Identifier &id) const
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.
double rawDriftTime() const
returns the raw driftTime
unsigned int getWord() const
returns the TRT dataword
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.