 |
ATLAS Offline Software
|
#include <TgcDataPreparator.h>
|
virtual StatusCode | initialize () override |
|
StatusCode | prepareData (const EventContext &ctx, const xAOD::MuonRoI *p_roi, TrigL2MuonSA::TgcHits &tgcHits) const |
|
void | setRoIBasedDataAccess (bool use_RoIBasedDataAccess) |
|
| AthAlgTool (const std::string &type, const std::string &name, const IInterface *parent) |
| Constructor with parameters: 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, V, H > &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 |
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
Definition at line 29 of file TgcDataPreparator.h.
◆ StoreGateSvc_t
◆ AthAlgTool()
◆ 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
◆ initialize()
StatusCode TrigL2MuonSA::TgcDataPreparator::initialize |
( |
| ) |
|
|
overridevirtual |
◆ 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.
◆ 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.
◆ prepareData()
Definition at line 25 of file TgcDataPreparator.cxx.
29 float roi_eta = p_roi->
eta();
30 float roi_phi = p_roi->
phi();
31 if (roi_phi < 0) roi_phi += 2.0 *
M_PI;
49 tgcPrepContainer = tgcContainerHandle.cptr();
50 if (!tgcContainerHandle.isValid()) {
52 return StatusCode::FAILURE;
58 float min_dphi_wire=1000.;
59 float second_dphi_wire=1000.;
60 std::vector<float> ov_dphi;
69 if (stationNumWi==-1) stationNumWi=3;
70 if (stationNumWi<3 && std::abs(prepDataWi.
globalPosition().eta() - roi_eta) < mid_eta_test ) {
73 for (
unsigned int ov=0;
ov<ov_dphi.size();
ov++)
74 if (std::abs(dphi-ov_dphi[
ov])<1
e-5) overlap=
true;
75 if (overlap)
continue;
76 ov_dphi.push_back(dphi);
77 if (dphi<second_dphi_wire){
78 second_dphi_wire=dphi;
80 if (dphi<min_dphi_wire) {
81 second_dphi_wire=min_dphi_wire;
91 int num_second_hits=0;
99 if (stationNumHit==-1) stationNumHit=3;
100 if (stationNumHit<3 && std::abs(prepDataHit.
globalPosition().eta() - roi_eta) < mid_eta_test ) {
102 if (std::abs(dphi-min_dphi_wire)<1
e-5) num_min_hits++;
103 if (std::abs(dphi-second_dphi_wire)<1
e-5) num_second_hits++;
109 float dphi_wire=min_dphi_wire;
110 bool useDefault=
false;
111 if (num_min_hits<5) {
112 if (num_second_hits>5) dphi_wire=second_dphi_wire;
113 else useDefault=
true;
122 bool isInRoad =
false;
124 if (stationNum==-1) stationNum=3;
126 double dphi = std::abs(prepData.
globalPosition().phi() - roi_phi);
127 if( dphi >
M_PI*2 ) dphi = dphi -
M_PI*2;
128 if( dphi >
M_PI ) dphi =
M_PI*2 - dphi;
130 if ( stationNum < 3 && dphi < mid_phi_test ) { isInRoad =
true; }
131 else if( stationNum == 3 && dphi < inn_phi_test ) { isInRoad =
true; }
136 if ( stationNum < 3 && std::abs(prepData.
globalPosition().eta() - roi_eta) < mid_eta_test ) {
137 if (useDefault) isInRoad =
true;
138 else if (std::abs(dphi-dphi_wire)<1
e-5) isInRoad =
true;
140 else if( stationNum == 3 && std::abs(prepData.
globalPosition().eta() - roi_eta) < inn_eta_test ) { isInRoad =
true; }
142 if( ! isInRoad )
continue;
154 lutDigit.
sta = stationNum;
166 tgcHits.push_back(lutDigit);
171 return StatusCode::SUCCESS;
◆ renounce()
◆ renounceArray()
◆ setRoIBasedDataAccess()
void TrigL2MuonSA::TgcDataPreparator::setRoIBasedDataAccess |
( |
bool |
use_RoIBasedDataAccess | ) |
|
|
inline |
◆ 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_detStore
◆ m_evtStore
◆ m_idHelperSvc
◆ m_options
◆ m_recMuonRoIUtils
◆ m_tgcContainerKey
Initial value:{
this, "TGCPrepDataContainer", "TGC_Measurements", "Name of the TGCContainer to read in"}
Definition at line 62 of file TgcDataPreparator.h.
◆ m_use_RoIBasedDataAccess
bool TrigL2MuonSA::TgcDataPreparator::m_use_RoIBasedDataAccess = false |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
bool m_use_RoIBasedDataAccess
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
float eta() const
The pseudorapidity ( ) of the muon candidate.
std::vector< SG::VarHandleKeyArray * > m_vhka
virtual const MuonGM::TgcReadoutElement * detectorElement() const override final
Returns the detector element corresponding to this PRD The pointer will be zero if the det el is not ...
double deltaPhiAtInner() const
virtual void setOwner(IDataHandleHolder *o)=0
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const TgcDataPreparatorRoadParameters & roadParameters() const
virtual size_t numberOfCollections() const override final
return number of collections
double stripWidth(int gasGap, int strip) const
Returns the width of a given strip in the gasGap i.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
double deltaEtaAtMiddleForLowPt() const
A TgcReadoutElement corresponds to a single TGC chamber; therefore typically a TGC station contains s...
SG::ReadHandleKey< Muon::TgcPrepDataContainer > m_tgcContainerKey
double gangRadialLength(int gasGap, int gang) const
Returns the length of the wire gang along the radial direction [pitch x N_{wire}^{gang}].
double deltaEtaAtMiddleForHighPt() const
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
double deltaEtaAtInnerForLowPt() const
Template to hold collections of MuonPrepRawData objects.
double deltaPhiAtMiddle() const
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Identifier identify() const
return the identifier
TrigL2MuonSA::TgcDataPreparatorOptions m_options
double deltaEtaAtInnerForHighPt() const
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
TrigL2MuonSA::RecMuonRoIUtils m_recMuonRoIUtils
Class to represent TGC measurements.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
virtual const Amg::Vector3D & globalPosition() const override final
Returns the global position.
bool isLowPt(const LVL1::RecMuonRoI *p_roi) const
float phi() const
The azimuthal angle ( ) of the muon candidate.