|
ATLAS Offline Software
|
Tool to cluster several trigger measurements in different gas-gaps of the same detector module.
More...
#include <TriggerChamberClusterOnTrackCreator.h>
|
| TriggerChamberClusterOnTrackCreator (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~TriggerChamberClusterOnTrackCreator ()=default |
|
StatusCode | initialize () |
|
std::unique_ptr< CompetingMuonClustersOnTrack > | createBroadCluster (const std::list< const Trk::PrepRawData * > &, const double) const |
| method to create a CompetingMuonClustersOnTrack using the PrepRawData hits and a scaled factor for the errors 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 |
|
|
void | applyClusterConsistency (std::list< int > &limitingChannels, std::list< const Muon::MuonClusterOnTrack * > &limitingRots) const |
|
std::vector< const Muon::MuonClusterOnTrack * > | createPrdRots (const std::list< const Trk::PrepRawData * > &prds) const |
|
void | makeClustersBySurface (std::list< int > &limitingChannels, std::list< const Muon::MuonClusterOnTrack * > &limitingRots, const std::list< const Trk::PrepRawData * > &prds, const std::vector< const Muon::MuonClusterOnTrack * > &rots) const |
|
void | makeOverallParameters (Trk::LocalParameters ¶meters, Amg::MatrixX &errorMatrix, Trk::Surface *&surface, std::list< int > &limitingChannels, std::list< const Muon::MuonClusterOnTrack * > &limitingRots) const |
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
Tool to cluster several trigger measurements in different gas-gaps of the same detector module.
Definition at line 32 of file TriggerChamberClusterOnTrackCreator.h.
◆ StoreGateSvc_t
◆ TriggerChamberClusterOnTrackCreator()
Muon::TriggerChamberClusterOnTrackCreator::TriggerChamberClusterOnTrackCreator |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~TriggerChamberClusterOnTrackCreator()
virtual Muon::TriggerChamberClusterOnTrackCreator::~TriggerChamberClusterOnTrackCreator |
( |
| ) |
|
|
virtualdefault |
◆ applyClusterConsistency()
void Muon::TriggerChamberClusterOnTrackCreator::applyClusterConsistency |
( |
std::list< int > & |
limitingChannels, |
|
|
std::list< const Muon::MuonClusterOnTrack * > & |
limitingRots |
|
) |
| const |
|
private |
Definition at line 108 of file TriggerChamberClusterOnTrackCreator.cxx.
113 int numClusters = limitingChannels.size()/2;
117 l != limitingChannels.end() &&
l != std::prev(limitingChannels.end());
129 l != limitingChannels.end() &&
l != std::prev(limitingChannels.end());
139 if (discard == limitingChannels.begin())
142 limitingRots.pop_front();
143 limitingRots.pop_front();
144 limitingChannels.pop_front();
145 limitingChannels.pop_front();
147 else if (discard != limitingChannels.end())
150 limitingRots.pop_back();
151 limitingRots.pop_back();
152 limitingChannels.pop_back();
153 limitingChannels.pop_back();
◆ createBroadCluster()
method to create a CompetingMuonClustersOnTrack using the PrepRawData hits and a scaled factor for the errors
Implements Muon::IMuonCompetingClustersOnTrackCreator.
Definition at line 39 of file TriggerChamberClusterOnTrackCreator.cxx.
40 ATH_MSG_VERBOSE(
"enter createBroadCluster: number of prds " << prds.size() );
47 if (!(*prds.begin())) {
63 for (std::list<const Trk::PrepRawData*>::const_iterator
p = prds.begin();
p != prds.end(); ++
p) {
73 if ((**p).detectorElement() != detectorElement) {
80 std::vector<const Muon::MuonClusterOnTrack*> rots =
createPrdRots(prds);
81 auto assocProbs = std::vector<double>(rots.size(), 0.);
85 std::list<int> limitingChannels;
86 std::list<const Muon::MuonClusterOnTrack*> limitingRots;
99 limitingChannels.clear();
103 return std::make_unique<CompetingMuonClustersOnTrack>(
104 std::move(
parameters), std::move(errorMatrix), surface, std::move(rots), std::move(assocProbs));
◆ createPrdRots()
Definition at line 157 of file TriggerChamberClusterOnTrackCreator.cxx.
159 auto rots = std::vector<const Muon::MuonClusterOnTrack*>();
164 if (!(*prds.begin())) {
168 for (std::list<const Trk::PrepRawData*>::const_iterator
p = prds.begin();
p != prds.end(); ++
p) {
177 rots.push_back(cluster);
◆ 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 Muon::TriggerChamberClusterOnTrackCreator::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()
const InterfaceID & Muon::IMuonCompetingClustersOnTrackCreator::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ makeClustersBySurface()
Definition at line 183 of file TriggerChamberClusterOnTrackCreator.cxx.
188 if (!(*prds.begin())) {
189 ATH_MSG_WARNING(
"makeClustersBySurface - first element of RPD list is nullptr");
192 std::vector<const Trk::PrepRawData*> usedPrd;
193 std::vector<const Muon::MuonClusterOnTrack*>::const_iterator
r = rots.begin();
194 for (std::list<const Trk::PrepRawData*>::const_iterator
p = prds.begin();
p != prds.end(); ++
p, ++
r) {
196 ATH_MSG_WARNING(
"makeClustersBySurface - current PrepRawData is nullptr, continuing");
199 if (
std::find(usedPrd.begin(),usedPrd.end(),*
p) != usedPrd.end())
continue;
200 usedPrd.push_back(*
p);
220 std::list<const Trk::PrepRawData*>::const_iterator
q =
p;
221 std::vector<const Muon::MuonClusterOnTrack*>::const_iterator
s =
r;
222 for (++
q, ++
s;
q != prds.end(); ++
q, ++
s) {
224 ATH_MSG_WARNING(
"makeClustersBySurface - current PrepRawData is nullptr, continuing");
230 usedPrd.push_back(*
q);
251 limitingChannels.push_back(channelMin);
252 limitingChannels.push_back(channelMax);
253 limitingRots.push_back(rotMin);
254 limitingRots.push_back(rotMax);
260 std::list<int>::const_iterator
l = limitingChannels.begin();
261 std::list<int>::const_iterator
m = limitingChannels.begin();
263 int size = abs(*
l - *(++
m));
264 for (std::vector<const Trk::PrepRawData*>::const_iterator
q = usedPrd.begin();
274 << std::setiosflags(std::ios::fixed)
276 << std::setw(8) << std::setprecision(1) << (**q).localPosition()[
Trk::locX]
277 << std::setw(8) << std::setprecision(1) << (**q).localPosition()[
Trk::locY]
283 <<
" station " <<
m_idHelperSvc->rpcIdHelper().stationNameString(stationIndex)
290 << std::setiosflags(std::ios::fixed)
292 << std::setw(8) << std::setprecision(1) << (**q).localPosition()[
Trk::locX]
293 << std::setw(8) << std::setprecision(1) << (**q).localPosition()[
Trk::locY]
296 <<
" station " <<
m_idHelperSvc->tgcIdHelper().stationNameString(stationIndex)
302 <<
" between channels " << *
l <<
" and " << *
m );
303 if (++
m != limitingChannels.end())
306 size = 1 + abs(*(++
l) - *(++
m));
◆ makeOverallParameters()
Definition at line 314 of file TriggerChamberClusterOnTrackCreator.cxx.
323 std::list<const Muon::MuonClusterOnTrack*>::const_iterator
r = limitingRots.begin();
332 r != limitingRots.end();
335 centre += (**r).associatedSurface().center();
336 covariance += (**r).localCovariance();
340 norm /=
static_cast<double>(limitingRots.size());
342 int firstChannel = *
l;
343 double width =
static_cast<double>(1 + abs(*(++
l) - firstChannel));
344 if (limitingRots.size() > 2)
346 int offset = abs(*(++
l) - firstChannel);
347 if (!isRpc &&
offset < 2) {
362 const Trk::Surface& surf = (**limitingRots.begin()).associatedSurface();
364 std::string shape =
"";
372 shape =
" RPC rectangle ";
377 shape =
" TGC trapezoid ";
384 shape =
" TGC rotatedTrapezoid ";
387 rottrapbds->
clone());
400 i != limitingChannels.end();
◆ 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_chooseBroadestCluster
bool Muon::TriggerChamberClusterOnTrackCreator::m_chooseBroadestCluster |
|
private |
◆ m_clusterCreator
◆ m_detStore
◆ m_evtStore
◆ m_idHelperSvc
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
const Identifier & identify(const UncalibratedMeasurement *meas)
Returns the associated identifier from the muon measurement.
bool m_chooseBroadestCluster
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
std::string find(const std::string &s)
return a remapped string
ToolHandle< Muon::IMuonClusterOnTrackCreator > m_clusterCreator
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool msgLvl(const MSG::Level lvl) const
#define ATH_MSG_VERBOSE(x)
virtual RotatedTrapezoidBounds * clone() const override
Virtual constructor.
virtual void setOwner(IDataHandleHolder *o)=0
virtual TrapezoidBounds * clone() const override
Virtual constructor.
void makeOverallParameters(Trk::LocalParameters ¶meters, Amg::MatrixX &errorMatrix, Trk::Surface *&surface, std::list< int > &limitingChannels, std::list< const Muon::MuonClusterOnTrack * > &limitingRots) const
Eigen::Affine3d Transform3D
std::vector< const Muon::MuonClusterOnTrack * > createPrdRots(const std::list< const Trk::PrepRawData * > &prds) const
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
virtual const SurfaceBounds & bounds() const =0
Surface Bounds method.
void applyClusterConsistency(std::list< int > &limitingChannels, std::list< const Muon::MuonClusterOnTrack * > &limitingRots) const
Eigen::Matrix< double, 3, 1 > Vector3D
#define ATH_MSG_WARNING(x)
virtual RectangleBounds * clone() const override
Virtual constructor.
void makeClustersBySurface(std::list< int > &limitingChannels, std::list< const Muon::MuonClusterOnTrack * > &limitingRots, const std::list< const Trk::PrepRawData * > &prds, const std::vector< const Muon::MuonClusterOnTrack * > &rots) const
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
const Amg::Transform3D & transform() const
Returns HepGeom::Transform3D by reference.
virtual const Amg::Vector3D & center() const =0
Return the center of the element.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Base class for Muon cluster RIO_OnTracks.