CbmRoot
|
#include <LitHitDataMuon.h>
Public Member Functions | |
LitHitDataMuon () | |
Constructor. | |
virtual | ~LitHitDataMuon () |
Destructor. | |
void | SetDetectorLayout (const LitDetectorLayoutMuon< T > &layout) |
Set detector layout for which hits are arranged. | |
void | AddHit (int stationGroup, int station, int substation, LitScalPixelHit *hit) |
Add hit using station group, station and substation indices. | |
void | AddHit (unsigned char planeId, LitScalPixelHit *hit) |
Add hit using absolute detector plane (substation) index in the detector. | |
const LitScalPixelHit * | GetHit (int stationGroup, int station, int substation, int hitId) const |
Return hit using station group, station and substation indices. | |
const std::vector< LitScalPixelHit * > & | GetHits (int stationGroup, int station, int substation) |
Return hit vector using station group, station and substation indices. | |
unsigned int | GetNofHits (int stationGroup, int station, int substation) const |
Return number of hits for the specified substation. | |
fscal | GetMaxErr (int stationGroup, int station, int substation) const |
Return maximum hit error in [cm] for the specified substation. | |
void | Clear () |
Clear hit arrays. | |
void | SortHits () |
Sort hits in each substation by X coordinate. | |
std::string | ToString () const |
Return std::string representation for the class. | |
void | StationByPlaneId (unsigned char planeId, unsigned char &stationGroup, unsigned char &station, unsigned char &substation) const |
Calculate station group, station and substation indices using the detector plane number. | |
Public Attributes | |
std::vector< std::vector< std::vector< PixelHitArray > > > | fHits |
std::vector< std::vector< std::vector< fscal > > > | fMaxErr |
LitDetectorLayoutMuon< T > | fLayout |
Friends | |
std::ostream & | operator<< (std::ostream &strm, const LitHitDataMuon &hitData) |
Operator << for convenient output to std::ostream. | |
Definition at line 34 of file LitHitDataMuon.h.
|
inline |
Constructor.
Definition at line 39 of file LitHitDataMuon.h.
|
inlinevirtual |
Destructor.
Definition at line 44 of file LitHitDataMuon.h.
|
inline |
Add hit using station group, station and substation indices.
[in] | stationGroup | Index of the station group in the detector. |
[in] | station | Index of the station in the station group. |
[in] | substation | Index of the substation in the station. |
[in] | hit | Pointer to the hit to be added. |
Definition at line 78 of file LitHitDataMuon.h.
References lit::parallel::LitScalPixelHit::Dx, lit::parallel::LitHitDataMuon< T >::fHits, and lit::parallel::LitHitDataMuon< T >::fMaxErr.
Referenced by lit::parallel::LitHitDataMuon< T >::AddHit().
|
inline |
Add hit using absolute detector plane (substation) index in the detector.
[in] | planeId | Index of the detector plane (substation) in the detector. |
[in] | hit | Pointer to the hit to be added. |
Definition at line 91 of file LitHitDataMuon.h.
References lit::parallel::LitHitDataMuon< T >::AddHit(), and lit::parallel::LitHitDataMuon< T >::StationByPlaneId().
|
inline |
Clear hit arrays.
Definition at line 152 of file LitHitDataMuon.h.
References lit::parallel::LitHitDataMuon< T >::fHits, and lit::parallel::LitHitDataMuon< T >::fMaxErr.
|
inline |
Return hit using station group, station and substation indices.
[in] | stationGroup | Index of the station group in the detector. |
[in] | station | Index of the station in the station group. |
[in] | substation | Index of the substation in the station. |
[in] | hitId | Hit index in the array of hits for the specified substation. |
Definition at line 108 of file LitHitDataMuon.h.
References lit::parallel::LitHitDataMuon< T >::fHits.
|
inline |
Return hit vector using station group, station and substation indices.
[in] | stationGroup | Index of the station group in the detector. |
[in] | station | Index of the station in the station group. |
[in] | substation | Index of the substation in the station. |
Definition at line 120 of file LitHitDataMuon.h.
References lit::parallel::LitHitDataMuon< T >::fHits.
|
inline |
Return maximum hit error in [cm] for the specified substation.
[in] | stationGroup | Index of the station group in the detector. |
[in] | station | Index of the station in the station group. |
[in] | substation | Index of the substation in the station. |
Definition at line 144 of file LitHitDataMuon.h.
References lit::parallel::LitHitDataMuon< T >::fMaxErr.
Referenced by lit::parallel::LitHitDataMuon< T >::ToString().
|
inline |
Return number of hits for the specified substation.
[in] | stationGroup | Index of the station group in the detector. |
[in] | station | Index of the station in the station group. |
[in] | substation | Index of the substation in the station. |
Definition at line 132 of file LitHitDataMuon.h.
References lit::parallel::LitHitDataMuon< T >::fHits.
Referenced by lit::parallel::LitHitDataMuon< T >::ToString().
|
inline |
Set detector layout for which hits are arranged.
[in] | layout | Detector layout. |
Definition at line 50 of file LitHitDataMuon.h.
References lit::parallel::LitHitDataMuon< T >::fHits, lit::parallel::LitHitDataMuon< T >::fLayout, lit::parallel::LitHitDataMuon< T >::fMaxErr, lit::parallel::LitDetectorLayoutMuon< T >::GetNofStationGroups(), lit::parallel::LitDetectorLayoutMuon< T >::GetNofStations(), and lit::parallel::LitDetectorLayoutMuon< T >::GetNofSubstations().
Referenced by lit::parallel::LitTrackFinderNNVecMuon::SetDetectorLayout().
|
inline |
Sort hits in each substation by X coordinate.
Definition at line 168 of file LitHitDataMuon.h.
References lit::parallel::LitHitDataMuon< T >::fHits, and lit::parallel::LitHitDataMuon< T >::fLayout.
|
inline |
Calculate station group, station and substation indices using the detector plane number.
[in] | planeId | Detector plane index. |
[out] | stationGroup | Index of the station group in the detector. |
[out] | station | Index of the station in the station group. |
[out] | subsattion | Index of the substation in the station. |
Definition at line 224 of file LitHitDataMuon.h.
References counter, and lit::parallel::LitHitDataMuon< T >::fLayout.
Referenced by lit::parallel::LitHitDataMuon< T >::AddHit().
|
inline |
Return std::string representation for the class.
Definition at line 189 of file LitHitDataMuon.h.
References lit::parallel::LitHitDataMuon< T >::fLayout, lit::parallel::LitHitDataMuon< T >::GetMaxErr(), lit::parallel::LitHitDataMuon< T >::GetNofHits(), and lit::parallel::ToString().
|
friend |
Operator << for convenient output to std::ostream.
Definition at line 210 of file LitHitDataMuon.h.
std::vector<std::vector<std::vector<PixelHitArray> > > lit::parallel::LitHitDataMuon< T >::fHits |
Definition at line 242 of file LitHitDataMuon.h.
Referenced by lit::parallel::LitHitDataMuon< T >::AddHit(), lit::parallel::LitHitDataMuon< T >::Clear(), lit::parallel::LitHitDataMuon< T >::GetHit(), lit::parallel::LitHitDataMuon< T >::GetHits(), lit::parallel::LitHitDataMuon< T >::GetNofHits(), lit::parallel::LitHitDataMuon< T >::SetDetectorLayout(), and lit::parallel::LitHitDataMuon< T >::SortHits().
LitDetectorLayoutMuon<T> lit::parallel::LitHitDataMuon< T >::fLayout |
Definition at line 246 of file LitHitDataMuon.h.
Referenced by lit::parallel::LitHitDataMuon< T >::SetDetectorLayout(), lit::parallel::LitHitDataMuon< T >::SortHits(), lit::parallel::LitHitDataMuon< T >::StationByPlaneId(), and lit::parallel::LitHitDataMuon< T >::ToString().
std::vector<std::vector<std::vector<fscal> > > lit::parallel::LitHitDataMuon< T >::fMaxErr |
Definition at line 244 of file LitHitDataMuon.h.
Referenced by lit::parallel::LitHitDataMuon< T >::AddHit(), lit::parallel::LitHitDataMuon< T >::Clear(), lit::parallel::LitHitDataMuon< T >::GetMaxErr(), and lit::parallel::LitHitDataMuon< T >::SetDetectorLayout().