1 #ifndef MILLEPEDEMONITOR_H 2 #define MILLEPEDEMONITOR_H 54 void fillUsedTrack(
const reco::Track *track,
unsigned int nHitX,
unsigned int nHitY);
57 const float *localDerivs,
unsigned int nLocal,
58 const float *globalDerivs,
unsigned int nGlobal,
const int *
labels);
61 float residuum,
float sigma,
bool isY);
66 void fillPxbSurveyHistsChi2(
const float &
chi2);
67 void fillPxbSurveyHistsLocalPars(
const float &a0,
const float &a1,
const float &
S,
const float &phi);
71 bool equidistLogBins(
double*
bins,
int nBins,
double first,
double last)
const;
72 void fillResidualHists(
const std::vector<TH1*> &
hists,
float phiSensToNorm,
73 float residuum,
float sigma);
74 void fillResidualHitHists(
const std::vector<TH1*> &hists,
float angle,
75 float residuum,
float sigma,
unsigned int nHit);
76 void fillTrack(
const reco::Track *track, std::vector<TH1*> &trackHists1D,
77 std::vector<TH2*> &trackHists2D);
79 template <
class OBJECT_TYPE>
80 int GetIndex(
const std::vector<OBJECT_TYPE*> &vec,
const TString &
name);
81 template <
class OBJECT_TYPE>
82 std::vector<OBJECT_TYPE*> cloneHists(
const std::vector<OBJECT_TYPE*> &orgs,
83 const TString &namAd,
const TString &titAd)
const;
84 template <
class OBJECT_TYPE>
85 void addToDirectory(
const std::vector<OBJECT_TYPE*> &objs, TDirectory *
dir)
const;
109 template <
class OBJECT_TYPE>
113 for (
typename std::vector<OBJECT_TYPE*>::const_iterator iter = vec.begin(), iterEnd = vec.end();
114 iter != iterEnd; ++iter, ++
result) {
115 if (*iter && (*iter)->GetName() ==
name)
return result;
117 edm::LogError(
"Alignment") <<
"@SUB=MillePedeMonitor::GetIndex" <<
" could not find " <<
name;
121 template <
class OBJECT_TYPE>
123 const TString &namAd,
124 const TString &titAd)
const 127 std::vector<OBJECT_TYPE*>
result;
128 for (
typename std::vector<OBJECT_TYPE*>::const_iterator iter = orgs.begin(), iterEnd = orgs.end();
129 iter != iterEnd; ++iter) {
130 if (!(*iter))
continue;
131 result.push_back(static_cast<OBJECT_TYPE*>((*iter)->Clone(namAd + (*iter)->GetName())));
132 if (result.back()) result.back()->SetTitle((*iter)->GetTitle() + titAd);
133 else edm::LogError(
"Alignment") <<
"@SUB=MillePedeMonitor::cloneHists" 141 template <
class OBJECT_TYPE>
143 TDirectory *
dir)
const 146 for (
typename std::vector<OBJECT_TYPE*>::const_iterator iter = obs.begin(), iterEnd = obs.end();
147 iter != iterEnd; ++iter) {
148 if (*iter) (*iter)->SetDirectory(dir);
std::vector< TH1 * > myTrackHists1D
int GetIndex(const std::vector< OBJECT_TYPE * > &vec, const TString &name)
std::vector< TH2 * > myDerivHists2D
std::vector< std::vector< TH1 * > > myResidHistsVec1DX
std::vector< TH1 * > myTrajectoryHists1D
const TrackerTopology * trackerTopology
std::vector< TH1 * > myResidHitHists1DY
std::vector< OBJECT_TYPE * > cloneHists(const std::vector< OBJECT_TYPE * > &orgs, const TString &namAd, const TString &titAd) const
void addToDirectory(const std::vector< OBJECT_TYPE * > &objs, TDirectory *dir) const
std::vector< TH2 * > myTrackHists2D
std::vector< TH2 * > myResidHists2D
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
std::vector< TH1 * > myCorrHists
std::vector< TH1 * > myPxbSurveyHists
std::vector< TH1 * > myUsedTrackHists1D
std::vector< TH2 * > myTrajectoryHists2D
std::vector< std::vector< TH1 * > > myResidHistsVec1DY
[0]=all [1]=TPB [2]=TPE [3]=TIB [4]=TID [5]=TOB [6]=TEC
double S(const TLorentzVector &, const TLorentzVector &)
std::vector< TH1 * > myResidHitHists1DX
[0]=all [1]=TPB [2]=TPE [3]=TIB [4]=TID [5]=TOB [6]=TEC
std::vector< TH2 * > myUsedTrackHists2D
std::vector< TH2 * > myFrame2FrameHists2D
T angle(T x1, T y1, T z1, T x2, T y2, T z2)