|
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 130 of file TRT_DriftCircleToolCosmics.cxx.
149 if (not trtDetEleHandle.isValid() or elements==
nullptr) {
155 if (theComTime.isValid()) {
158 << theComTime.key() <<
" found! Time="<<timecor);
160 ATH_MSG_VERBOSE(
"Event phase not found with name "<<theComTime.key()<<
"!!!");
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 !");
◆ 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);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ 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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ 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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ 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 80 of file TRT_DriftCircleToolCosmics.cxx.
89 return StatusCode::FAILURE;
95 if (
sc.isFailure() ) {
103 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 57 of file TRT_DriftCircleToolCosmics.cxx.
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)
◆ 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
Initial value:{this, "ConditionsSummaryTool", "TRT_StrawStatusSummaryTool",
"The ConditionsSummaryTool"}
Definition at line 83 of file TRT_DriftCircleToolCosmics.h.
◆ m_detStore
◆ m_driftFunctionTool
◆ m_evtPhaseKey
◆ m_evtStore
◆ m_global_offset
FloatProperty InDet::TRT_DriftCircleToolCosmics::m_global_offset |
|
private |
◆ m_trtDetEleContKey
Initial value:{this, "TRTDetEleContKey", "TRT_DetElementContainer",
"Key of TRT_DetElementContainer for TRT"}
Definition at line 77 of file TRT_DriftCircleToolCosmics.h.
◆ m_trtid
const TRT_ID* InDet::TRT_DriftCircleToolCosmics::m_trtid = nullptr |
|
private |
◆ m_useConditionsStatus
BooleanProperty InDet::TRT_DriftCircleToolCosmics::m_useConditionsStatus |
|
private |
Initial value:{this, "UseConditionsStatus", false,
"Shall the ConditionsSummaryTool be used?"}
Definition at line 87 of file TRT_DriftCircleToolCosmics.h.
◆ m_useHTCorrection
BooleanProperty InDet::TRT_DriftCircleToolCosmics::m_useHTCorrection |
|
private |
Initial value:{this, "useDriftTimeHTCorrection", false,
"Shall the High Threshold correction be used?"}
Definition at line 94 of file TRT_DriftCircleToolCosmics.h.
◆ m_useToTCorrection
BooleanProperty InDet::TRT_DriftCircleToolCosmics::m_useToTCorrection |
|
private |
Initial value:{this, "useDriftTimeToTCorrection", false,
"Shall the Time over Threshold correction be used?"}
Definition at line 92 of file TRT_DriftCircleToolCosmics.h.
◆ 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.
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
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.