6 outfilecore(cfgMonitor.getParameter<
std::
string>(
"outfile")),
7 maxEventsPerJob(cfgMonitor.getParameter<
int>(
"maxEventsPerJob")),
8 fillTrackMonitoring(cfgMonitor.getParameter<
bool>(
"fillTrackMonitoring")),
10 trackmonitorvars(maxEventsPerJob,
maxTracks),
11 fillTrackHitMonitoring(cfgMonitor.getParameter<
bool>(
"fillTrackHitMonitoring")),
12 maxHits(cfgMonitor.getParameter<
int>(
"maxHits")),
39 tree->Branch(
"Ntracks", &m_Ntracks);
40 tree->Branch(
"Nhits", &m_Nhits);
42 tree->Branch(
"nhPXB", &m_nhPXB);
43 tree->Branch(
"nhPXF", &m_nhPXF);
44 tree->Branch(
"nhTIB", &m_nhTIB);
45 tree->Branch(
"nhTOB", &m_nhTOB);
46 tree->Branch(
"nhTID", &m_nhTID);
47 tree->Branch(
"nhTEC", &m_nhTEC);
48 tree->Branch(
"Pt", &m_Pt);
49 tree->Branch(
"P", &m_P);
50 tree->Branch(
"Eta", &m_Eta);
51 tree->Branch(
"Phi", &m_Phi);
52 tree->Branch(
"Chi2n", &m_Chi2n);
53 tree->Branch(
"d0", &m_d0);
54 tree->Branch(
"dz", &m_dz);
55 tree->Branch(
"wt", &m_wt);
60 tree->Branch(
"Id", &m_detId,
"Id/i");
61 tree->Branch(
"sinTheta", &m_sinTheta);
62 tree->Branch(
"impactAngle", &m_angle);
63 tree->Branch(
"wt", &m_hitwt);
64 tree->Branch(
"probPresent", &m_hasHitProb);
65 tree->Branch(
"probXY", &m_probXY);
66 tree->Branch(
"probQ", &m_probQ);
67 tree->Branch(
"qualityWord", &m_rawQualityWord);
71 if (
tree==
nullptr)
return;
72 if (maxNEvents>=0 &&
nEvents>=maxNEvents)
return;
75 m_Ntracks=m_Pt.size();
76 if (m_Ntracks==0)
return;
78 if (maxTracksRcd<0) doFill=
true;
80 if ((
nTracks+m_Ntracks)<maxTracksRcd) doFill=
true;
82 int NewSize = maxTracksRcd -
nTracks;
83 if ((
int)m_Pt.size()<NewSize) NewSize=m_Pt.size();
86 resizeVectors(NewSize);
93 int tmpNtracks = m_Ntracks;
109 if (
tree==
nullptr)
return;
111 bool doFill=(maxHitsRcd<0 || nHits<maxHitsRcd);
T getParameter(std::string const &) const
const unsigned int nTracks(const reco::Vertex &sv)
const bool fillTrackHitMonitoring
const edm::ParameterSet cfgMonitor
const int maxEventsPerJob
const bool fillTrackMonitoring
const std::string outfilecore
HIPMonitorConfig(const edm::ParameterSet &cfg)