5#ifndef MUONR4_MUONFASTRECOEVENT_GLOBALPATTERN__H
6#define MUONR4_MUONFASTRECOEVENT_GLOBALPATTERN__H
19 using HitCollection = std::unordered_map<StIndex, std::vector<HitType>>;
81 void print(std::ostream& ostr)
const;
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
std::pair< std::vector< unsigned int >, bool > res
double m_theta
average global theta of the pattern
void setSector(std::int8_t sector)
Set the main sector of the pattern.
unsigned m_nPrecisionLayers
Number of precision layers.
void setNPrecisionLayers(unsigned n)
Set the number of precision layers in the pattern.
void setPhi(double phi)
Set the average phi of the pattern.
unsigned nTriggerLayers() const
Return the number of trigger layers in the pattern.
friend std::ostream & operator<<(std::ostream &ostr, const GlobalPattern &gp)
The print-out operator.
const SpacePoint * HitType
std::unordered_map< StIndex, std::vector< HitType > > HitCollection
Muon::MuonStationIndex::StIndex StIndex
GlobalPattern(HitCollection &&hitPerStation)
c-tor consuming the hit collection per station
std::vector< StIndex > getStations() const
Return the associated stations to the pattern.
double m_phi
average global phi of the pattern
unsigned nPrecisionLayers() const
Return the number of precision layers in the pattern.
unsigned nPhiLayers() const
Return the number of phi layers in the pattern.
const HitCollection & hitsPerStation() const
Return the hits per station.
double m_meanNormResidual2
Mean over eta hits of the square of their residual divided by acceptance window from pattern finding.
unsigned secondarySector() const
Return the associated sector to the bucket.
void setMeanNormResidual2(double res)
Set the mean over eta hits of the square of their residual divided by acceptance window from pattern ...
unsigned sector() const
Return the main sector where the pattern is located.
bool isSectorOverlap() const
Return whether the pattern is located in the overlap region between two sectors.
void print(std::ostream &ostr) const
double phi() const
Return the average global phi of the pattern.
unsigned m_nTriggerLayers
Number of trigger layers.
double sectorPhi() const
Return the sector phi of the pattern. It is the central phi of the sector or the the value at the edg...
void setNTriggerLayers(unsigned n)
Set the number of trigger layers in the pattern.
double meanNormResidual2() const
Return the mean over eta hits of the square of their residual divided by acceptance window from patte...
bool operator==(const GlobalPattern &other) const
Equality operator.
GlobalPattern(const GlobalPattern &other)=default
Copy c-tor.
double theta() const
Return the average global theta of the pattern.
void setTheta(double theta)
Set the average theta of the pattern.
const std::vector< HitType > & hitsInStation(StIndex station) const
Return the pattern hits in the given station.
unsigned m_nPhiLayers
Number of phi layers.
void setNPhiLayers(unsigned n)
Set the number of phi layers in the pattern.
const HitCollection m_hitsInStation
Hits of the pattern organized per station.
The muon space point is the combination of two uncalibrated measurements one of them measures the eta...
This header ties the generic definitions in this package.
DataVector< GlobalPattern > GlobalPatternContainer
Abrivation of the GlobalPattern container type.
StIndex
enum to classify the different station layers in the muon spectrometer