|
|
Go to the documentation of this file. 1 #ifndef MILLEPEDEMONITOR_H
2 #define MILLEPEDEMONITOR_H
58 const float *localDerivs,
60 const float *globalDerivs,
81 const std::vector<TH1 *> &
hists,
float angle,
float residuum,
float sigma,
unsigned int nHit);
84 template <
class OBJECT_TYPE>
85 int GetIndex(
const std::vector<OBJECT_TYPE *> &vec,
const TString &
name);
86 template <
class OBJECT_TYPE>
87 std::vector<OBJECT_TYPE *>
cloneHists(
const std::vector<OBJECT_TYPE *> &orgs,
89 const TString &titAd)
const;
90 template <
class OBJECT_TYPE>
92 template <
typename T,
size_t SIZE>
94 template <
typename T,
size_t SIZE>
119 template <
class OBJECT_TYPE>
122 for (
typename std::vector<OBJECT_TYPE *>::const_iterator iter = vec.begin(), iterEnd = vec.end(); iter != iterEnd;
124 if (*iter && (*iter)->GetName() ==
name)
127 edm::LogError(
"Alignment") <<
"@SUB=MillePedeMonitor::GetIndex"
128 <<
" could not find " <<
name;
132 template <
class OBJECT_TYPE>
134 const TString &namAd,
135 const TString &titAd)
const {
137 std::vector<OBJECT_TYPE *>
result;
138 for (
typename std::vector<OBJECT_TYPE *>::const_iterator iter = orgs.begin(), iterEnd = orgs.end(); iter != iterEnd;
142 result.push_back(static_cast<OBJECT_TYPE *>((*iter)->Clone(namAd + (*iter)->GetName())));
144 result.back()->SetTitle((*iter)->GetTitle() + titAd);
146 edm::LogError(
"Alignment") <<
"@SUB=MillePedeMonitor::cloneHists"
153 template <
class OBJECT_TYPE>
156 for (
typename std::vector<OBJECT_TYPE *>::const_iterator iter = obs.begin(), iterEnd = obs.end(); iter != iterEnd;
159 (*iter)->SetDirectory(
dir);
163 template <
typename T,
size_t SIZE>
165 std::array<int, SIZE>
result{};
166 for (
size_t i = 0;
i <
SIZE; ++
i) {
172 template <
typename T,
size_t SIZE>
175 std::array<std::array<int, SIZE>,
SIZE>
result{};
176 for (
size_t i = 0;
i <
SIZE; ++
i) {
177 for (
size_t j = 0;
j <
SIZE; ++
j) {
void fillUsedTrack(const reco::Track *track, unsigned int nHitX, unsigned int nHitY)
std::vector< TH1 * > myTrajectoryHists1D
void fillTrack(const reco::Track *track)
std::vector< TH2 * > myFrame2FrameHists2D
std::vector< TH2 * > myTrajectoryHists2D
bool init(TDirectory *directory)
std::vector< TH1 * > myResidHitHists1DY
void fillResidualHists(const std::vector< TH1 * > &hists, float phiSensToNorm, float residuum, float sigma)
void addToDirectory(const std::vector< OBJECT_TYPE * > &objs, TDirectory *dir) const
void fillRefTrajectory(const ReferenceTrajectoryBase::ReferenceTrajectoryPtr &refTrajPtr)
std::array< std::array< int, SIZE >, SIZE > indexArray2D(const std::vector< T * > &hists, const char *title)
std::vector< TH1 * > myTrackHists1D
bool equidistLogBins(double *bins, int nBins, double first, double last) const
std::vector< std::vector< TH1 * > > myResidHistsVec1DY
[0]=all [1]=TPB [2]=TPE [3]=TIB [4]=TID [5]=TOB [6]=TEC
int GetIndex(const std::vector< OBJECT_TYPE * > &vec, const TString &name)
void fillCorrelations2D(float corr, const TransientTrackingRecHit::ConstRecHitPointer &hit)
std::vector< TH1 * > myUsedTrackHists1D
void fillDerivatives(const TransientTrackingRecHit::ConstRecHitPointer &recHit, const float *localDerivs, unsigned int nLocal, const float *globalDerivs, unsigned int nGlobal, const int *labels)
std::vector< std::vector< TH1 * > > myResidHistsVec1DX
void fillPxbSurveyHistsLocalPars(const float &a0, const float &a1, const float &S, const float &phi)
std::vector< TH1 * > myPxbSurveyHists
std::vector< TH1 * > myCorrHists
std::vector< OBJECT_TYPE * > cloneHists(const std::vector< OBJECT_TYPE * > &orgs, const TString &namAd, const TString &titAd) const
void fillResidualHitHists(const std::vector< TH1 * > &hists, float angle, float residuum, float sigma, unsigned int nHit)
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
std::vector< TH2 * > myResidHists2D
Log< level::Error, false > LogError
void fillPxbSurveyHistsChi2(const float &chi2)
std::vector< TH2 * > myDerivHists2D
void fillResiduals(const TransientTrackingRecHit::ConstRecHitPointer &recHit, const TrajectoryStateOnSurface &tsos, unsigned int nHit, float residuum, float sigma, bool isY)
void fillFrameToFrame(const AlignableDetOrUnitPtr &aliDet, const Alignable *ali)
MillePedeMonitor(const TrackerTopology *tTopo, const char *rootFile="trackMonitor.root")
const TrackerTopology * trackerTopology
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
std::vector< TH2 * > myTrackHists2D
std::vector< TH1 * > myResidHitHists1DX
[0]=all [1]=TPB [2]=TPE [3]=TIB [4]=TID [5]=TOB [6]=TEC
static constexpr float a0
std::array< int, SIZE > indexArray1D(const std::vector< T * > &hists, const char *title)
std::vector< TH2 * > myUsedTrackHists2D