|
ATLAS Offline Software
|
Go to the documentation of this file.
29 declareInterface<IDataRetriever>(
this);
40 return StatusCode::SUCCESS;
49 if ( !DriftCircleContainer.
isValid() ) {
51 return StatusCode::RECOVERABLE;
58 if ( !TRTMultiTruthMap.
isValid() ){
65 unsigned long NDriftCircleTotal = 0;
67 for (
const auto DriftCircleColl : *DriftCircleContainer)
68 NDriftCircleTotal += DriftCircleColl->size();
71 ATH_MSG_VERBOSE(
"Reserving space for " << NDriftCircleTotal <<
" entries" );
74 DataVect rhoz; rhoz.reserve(NDriftCircleTotal);
75 DataVect phi; phi.reserve(NDriftCircleTotal);
76 DataVect driftR; driftR.reserve(NDriftCircleTotal);
79 DataVect sub; sub.reserve(NDriftCircleTotal);
82 DataVect bitPattern; bitPattern.reserve(NDriftCircleTotal);
83 DataVect numBarcodes; numBarcodes.reserve(NDriftCircleTotal);
87 for (
const auto DriftCircleColl : *DriftCircleContainer) {
90 for (
const auto driftcircle : *DriftCircleColl){
100 if (!
id.is_valid()) {
101 ATH_MSG_DEBUG(
"Ignoring TRT_DriftCircle with invalid identifier " <<
id );
132 switch (
m_geo->TRTIDHelper()->barrel_ec(
id) ) {
133 case -2 : sub.push_back(
DataType( 0 ));
break;
134 case -1 : sub.push_back(
DataType( 1 ));
break;
135 case 1 : sub.push_back(
DataType( 2 ));
break;
136 case 2 : sub.push_back(
DataType( 3 ));
break;
144 bitPattern.push_back(
DataType(driftcircle->getWord()));
154 using iter = PRD_MultiTruthCollection::const_iterator;
155 std::pair<iter,iter> equalIDRange = TRTMultiTruthMap->equal_range(
id);
156 for ( iter TRTMultiTruthMapItr = equalIDRange.first; TRTMultiTruthMapItr != equalIDRange.second; ++TRTMultiTruthMapItr){
160 numBarcodes.push_back(
DataType(NBarcodes));
174 dataMap[
"bitPattern"]=bitPattern;
177 if ( numBarcodes.size() > 0 ){
179 dataMap[
"numBarcodes"]=numBarcodes;
181 std::string bctag =
"barcodes multiple=\""+
DataType(
barcodes.size()/
double(numBarcodes.size())).toString()+
"\"";
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
std::map< std::string, DataVect > DataMap
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
virtual StatusCode initialize()
initialize only geo model tool
def barcodes(beg, end, sz)
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual TRT_BaseElement::Type type() const =0
Type information: returns BARREL or ENDCAP.
virtual std::string dataTypeName() const
Return the name of the data type.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
bool m_useTRTTruthMap
The StoreGate key for the TRT MultiTruthMap with the track associations.
Eigen::Matrix< double, 3, 1 > Vector3D
const ToolHandle< IInDetGeoModelTool > m_geo
A tool handle to the geo model tool.
const Amg::Transform3D & strawTransform(unsigned int straw) const
Straw transform - fast access in array, in Tracking frame: Amg.
TRTRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
double timeOverThreshold(unsigned int m_word)
Handle class for reading from StoreGate.
SG::ReadHandleKey< InDet::TRT_DriftCircleContainer > m_TRTDriftCircleCollKey
The StoreGate key for the TRT Cluster collection to retrieve.
SG::ReadHandleKey< PRD_MultiTruthCollection > m_TRTTruthMapKey