![]() |
ATLAS Offline Software
|
oh dear, just the (too many!) histogram variables (we will need these for the test and reference, so these should go inside test, and ref structs like the TrackParaters etc More...
Public Types | |
| enum | HitPar { NHitPars } |
| ugly, but it gets the jobs done - this is the price you pay for have SO MANY STUPIDLY LONG NAMED PARAMETERS ... More... | |
Public Member Functions | |
| size_t | nHitParNames () const |
| const std::string & | hitParName (int i) const |
| void | initialize (SiHitPlots *p, const std::string &s="") |
| void | fill (const TrackView *t) const |
Public Attributes | |
| std::vector< std::string > | m_hitParNames |
| probably should use an std::array<string,NparNames> | |
| TIDA::Histogram< float > | m_hits [NHitPars] |
| actual stored histograms | |
| TIDA::Histogram< float > | m_hits_vs_pt [NHitPars] |
| for theis "2D" histograms, could use yet another enum, and some parname vector, but prefer to keep it explicit for a low number of entries std::string m_parName[4] = { "pt", "eta", "phi", "d0" }; | |
| TIDA::Histogram< float > | m_hits_vs_eta [NHitPars] |
| TIDA::Histogram< float > | m_hits_vs_phi [NHitPars] |
| TIDA::Histogram< float > | m_hits_vs_d0 [NHitPars] |
oh dear, just the (too many!) histogram variables (we will need these for the test and reference, so these should go inside test, and ref structs like the TrackParaters etc
can esily add histograms vs mu if required
Definition at line 93 of file SiHitPlots.h.
ugly, but it gets the jobs done - this is the price you pay for have SO MANY STUPIDLY LONG NAMED PARAMETERS ...
if we want them all with proper names, rather than just filling histograms with numbers ...
| Enumerator | |
|---|---|
| NHitPars | |
Definition at line 101 of file SiHitPlots.h.
need a mechanism to get the TrackParticle from say an xAOD::Electron say by an or of t.is<xAOD::TrackParticle>() || ( t.hashChild() && t.child(0).is<sADO::TrackParticle>() )
actually, if we are using the TrackTracks access we don't need to test if it is a TrackParticle
there are far, far too many "hit type" parameters on the tracks, the bloated tracks classes with the ludicrously long names are really not nice and do not lead to nice code ...
I mean 28 !!! how mamny layers might a track go through ? with a max os say 20 layers it would be more efficient storing a status for each layer - so for each layer you could could have a number or bits - hit | hole | ... then you could store say 1 uint8_t per layer rather than all these individual (28) uint8_t counters for all the variables. or just store the hit patterns and let people work out what they wanted themselves. With all this bloat, no wonder the tracks are so large
Compute hit parameters
Definition at line 57 of file SiHitPlots.cxx.
|
inline |
Definition at line 117 of file SiHitPlots.h.
| void IDTPM2::SiHitPlots::Histograms::initialize | ( | SiHitPlots * | p, |
| const std::string & | s = "" ) |
should use Resplots for these really, as profiles are affected by outlyera...
Definition at line 35 of file SiHitPlots.cxx.
|
inline |
Definition at line 115 of file SiHitPlots.h.
| std::vector<std::string> IDTPM2::SiHitPlots::Histograms::m_hitParNames |
probably should use an std::array<string,NparNames>
Definition at line 109 of file SiHitPlots.h.
| TIDA::Histogram<float> IDTPM2::SiHitPlots::Histograms::m_hits[NHitPars] |
actual stored histograms
Definition at line 126 of file SiHitPlots.h.
| TIDA::Histogram<float> IDTPM2::SiHitPlots::Histograms::m_hits_vs_d0[NHitPars] |
Definition at line 136 of file SiHitPlots.h.
| TIDA::Histogram<float> IDTPM2::SiHitPlots::Histograms::m_hits_vs_eta[NHitPars] |
Definition at line 134 of file SiHitPlots.h.
| TIDA::Histogram<float> IDTPM2::SiHitPlots::Histograms::m_hits_vs_phi[NHitPars] |
Definition at line 135 of file SiHitPlots.h.
| TIDA::Histogram<float> IDTPM2::SiHitPlots::Histograms::m_hits_vs_pt[NHitPars] |
for theis "2D" histograms, could use yet another enum, and some parname vector, but prefer to keep it explicit for a low number of entries std::string m_parName[4] = { "pt", "eta", "phi", "d0" };
Definition at line 133 of file SiHitPlots.h.