|
ATLAS Offline Software
|
#include <Csc2dSegmentMaker.h>
|
| Csc2dSegmentMaker (const std::string &, const std::string &, const IInterface *) |
|
| ~Csc2dSegmentMaker ()=default |
|
StatusCode | initialize () |
|
std::unique_ptr< MuonSegmentCombinationCollection > | find (const std::vector< const Muon::CscPrepDataCollection * > &pcols, const EventContext &ctx) const |
|
std::unique_ptr< MuonSegmentCombinationCollection > | find (const MuonSegmentCombinationCollection &, const EventContext &ctx) const |
|
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 |
|
Definition at line 24 of file Csc2dSegmentMaker.h.
◆ ChamberTrkClusters
typedef std::vector<Cluster> ICscSegmentFinder::ChamberTrkClusters[4] |
|
inherited |
◆ MbaseList
◆ RioList
◆ Segments
◆ SegmentVec
◆ StoreGateSvc_t
◆ TrkClusters
◆ Csc2dSegmentMaker()
Csc2dSegmentMaker::Csc2dSegmentMaker |
( |
const std::string & |
type, |
|
|
const std::string & |
aname, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~Csc2dSegmentMaker()
Csc2dSegmentMaker::~Csc2dSegmentMaker |
( |
| ) |
|
|
default |
◆ 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
◆ find() [1/2]
◆ find() [2/2]
Implements ICscSegmentFinder.
Definition at line 85 of file Csc2dSegmentMaker.cxx.
90 for (
unsigned int icol = 0;
icol < pcols.size(); ++
icol) {
92 if (clus->empty())
continue;
96 unsigned int col_count = 0;
98 for (
unsigned int icol = 0;
icol < pcols.size(); ++
icol) {
101 ATH_MSG_VERBOSE(
"** Collection " << col_count <<
" has " << clus->size() <<
" clusters");
103 if (clus->empty())
continue;
106 mpsegs->push_back(pcol);
111 if (!mpsegs->empty())
112 ATH_MSG_DEBUG(
"found " << mpsegs->size() <<
" 2d csc segments");
◆ findSegmentCombination()
Definition at line 121 of file Csc2dSegmentMaker.cxx.
123 if (clus.empty())
return nullptr;
156 for (
int iLay = 0; iLay < 4; iLay++) {
165 ATH_MSG_DEBUG(
"get strip quality for " << isPhi <<
" layer " << iLay <<
" strip " << iStrip);
169 m_idHelperSvc->cscIdHelper().get_channel_hash(stripId, hashID);
180 ATH_MSG_DEBUG(
"final status for eta is " << layStatus[0] <<
" and phi " << layStatus[1]);
182 for (CscPrepDataCollection::const_iterator iclu = clus.begin(); iclu != clus.end(); ++iclu) {
185 int station =
m_idHelperSvc->cscIdHelper().stationName(
id) - 49;
191 if (iclu == clus.begin()) {
192 col_station = station;
198 if (station != col_station ||
eta != col_eta || phisec != col_phisec) {
213 phi_clus[iwlay - 1].emplace_back(lpos, ptclu, measphi);
216 eta_clus[iwlay - 1].emplace_back(lpos, ptclu, measphi);
222 int nHitLayer_eta = 0;
223 int nHitLayer_phi = 0;
224 for (
int i = 0;
i < 4; ++
i) {
225 if (!eta_clus[
i].
empty()) ++nHitLayer_eta;
226 if (!phi_clus[
i].
empty()) ++nHitLayer_phi;
228 ATH_MSG_DEBUG(
"there are " << nHitLayer_eta <<
" eta hit layers and " << nHitLayer_phi <<
" phi hit layers");
232 if (nHitLayer_eta >= 2 || nHitLayer_phi >= 2) {
233 ATH_MSG_DEBUG(
"Csc2dSegment calls get2dMuonSegmentCombination !!!");
234 pcol =
m_segmentTool->get2dMuonSegmentCombination(eta_id, phi_id, eta_clus, phi_clus, lpos000, ctx, layStatus[0], layStatus[1]);
238 for (
unsigned int i = 0;
i < 4; ++
i) {
◆ initialize()
StatusCode Csc2dSegmentMaker::initialize |
( |
| ) |
|
◆ 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& ICscSegmentFinder::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ 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.
◆ 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_cscClusterOnTrackCreator
Initial value:{this, "cscRotCreator",
"Muon::CscClusterOnTrackCreator/CscClusterOnTrackCreator"}
Definition at line 44 of file Csc2dSegmentMaker.h.
◆ m_cscdig_sg_inkey
Gaudi::Property<std::string> Csc2dSegmentMaker::m_cscdig_sg_inkey {this, "scdig_sg_inkey", "CSC_Measurements"} |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_idHelperSvc
◆ m_printer
◆ m_segmentTool
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
constexpr uint8_t stationPhi
station Phi 1 to 8
PublicToolHandle< Muon::MuonEDMPrinterTool > m_printer
virtual const Amg::Vector3D & globalPosition() const override
Returns global position.
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< Cluster > ChamberTrkClusters[4]
virtual Amg::Transform3D GlobalToAmdbLRSTransform() const
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
Gaudi::Property< std::string > m_cscdig_sg_inkey
#define ATH_MSG_VERBOSE(x)
virtual void setOwner(IDataHandleHolder *o)=0
int maxNumberOfStrips(int measuresPhi) const
const std::string & getStationName() const
Class representing clusters from the CSC.
virtual const Amg::Vector3D & globalPosition() const override final
Returns the global position.
Eigen::Affine3d Transform3D
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Identifier identify() const
return the identifier
MuonPrepDataCollection< CscPrepData > CscPrepDataCollection
Eigen::Matrix< double, 3, 1 > Vector3D
Muon::MuonSegmentCombination * findSegmentCombination(const Muon::CscPrepDataCollection &pcol, const EventContext &ctx) const
Class to represent the calibrated clusters created from CSC strips.
#define ATH_MSG_WARNING(x)
ToolHandle< Muon::IMuonClusterOnTrackCreator > m_cscClusterOnTrackCreator
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
ToolHandle< ICscSegmentUtilTool > m_segmentTool
constexpr uint8_t stationEta
1 to 3
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
constexpr int pow(int base, int exp) noexcept
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
int getStationPhi() const
int getStationEta() const
Base class for Muon cluster RIO_OnTracks.