41 rho_(
TMath::Sqrt(x_ * x_ + y_ * y_)),
51 rho_(
TMath::Sqrt(x_ * x_ + y_ * y_)),
57 double adc()
const {
return adc_; }
58 double eta()
const {
return eta_; }
59 double rho()
const {
return rho_; }
60 double phi()
const {
return phi_; }
61 double sizex()
const {
return sizex_; }
62 double sizey()
const {
return sizey_; }
63 double x()
const {
return x_; }
64 double y()
const {
return y_; }
65 double z()
const {
return z_; }
68 double x_, y_,
z_, rho_, eta_, phi_;
73 Tracklet() : i1_(-1), i2_(-2), deta_(0), dphi_(0) {}
75 : p1_(p1), p2_(p2), i1_(-1), i2_(-1), deta_(p1.
eta() - p2.
eta()), dphi_(
Geom::
deltaPhi(p1.phi(), p2.phi())) {}
76 double deta()
const {
return deta_; }
77 double dphi()
const {
return dphi_; }
78 int i1()
const {
return i1_; }
79 int i2()
const {
return i2_; }
80 double eta()
const {
return p1_.eta(); }
93 Vertex(
double x = 0,
double y = 0,
double z = 0,
double xs = 0,
double ys = 0,
double zs = 0,
int n = 0)
94 : x_(x), y_(y), z_(z), xs_(xs), ys_(ys), zs_(zs), n_(
n) {}
95 int n()
const {
return n_; }
96 double x()
const {
return x_; }
97 double y()
const {
return y_; }
98 double z()
const {
return z_; }
99 double xs()
const {
return xs_; }
100 double ys()
const {
return ys_; }
101 double zs()
const {
return zs_; }
102 void set(
int n,
double z,
double zs) {
107 void set(
int n,
double x,
double y,
double z,
double xs,
double ys,
double zs) {
118 double x_, y_, z_, xs_, ys_,
zs_;
134 std::vector<MonitorElement *> &mes,
143 std::vector<MonitorElement *> &mes,
154 void create1D(std::vector<TH1F *> &mes,
162 void create2D(std::vector<TH2F *> &mes,
173 void fill1D(std::vector<TH1F *> &hs,
double val,
double w = 1.);
174 void fill1D(std::vector<MonitorElement *> &mes,
double val,
double w = 1.);
175 void fill2D(std::vector<TH2F *> &hs,
double valx,
double valy,
double w = 1.);
176 void fill2D(std::vector<MonitorElement *> &mes,
double valx,
double valy,
double w = 1.);
177 void fill3D(std::vector<TH3F *> &hs,
int gbin,
double w = 1.);
178 void filldNdeta(
const TH3F *AlphaTracklets,
179 const std::vector<TH3F *> &NsigTracklets,
180 const std::vector<TH3F *> &NbkgTracklets,
181 const std::vector<TH1F *> &NEvsPerEta,
182 std::vector<MonitorElement *> &hdNdEtaRawTrkl,
183 std::vector<MonitorElement *> &hdNdEtaSubTrkl,
184 std::vector<MonitorElement *> &hdNdEtaTrklets);
188 void fillPixelClusterInfos(
const double vz,
189 const std::vector<Pixel> &pix,
190 std::vector<MonitorElement *> &hClusterYSize,
191 std::vector<MonitorElement *> &hClusterADC);
193 void fillTracklets(std::vector<Tracklet> &tracklets,
194 const std::vector<Pixel> &pix1,
195 const std::vector<Pixel> &pix2,
197 void fillTracklets(
const std::vector<Tracklet> &tracklets,
198 const std::vector<Pixel> &pixels,
200 const TH3F *AlphaTracklets,
201 std::vector<TH3F *> &NsigTracklets,
202 std::vector<TH3F *> &NbkgTracklets,
203 std::vector<TH1F *> &eventpereta,
204 std::vector<MonitorElement *> &detaphi,
205 std::vector<MonitorElement *> &deta,
206 std::vector<MonitorElement *> &dphi,
207 std::vector<MonitorElement *> &etavsvtx);
208 template <
typename TYPE>
210 template <
typename TYPE>
214 void reallyPrint(
int level,
const char *
msg);
216 void trackletVertexUnbinned(std::vector<Pixel> &pix1, std::vector<Pixel> &pix2,
Vertex &
vtx);
217 double vertexZFromClusters(
const std::vector<Pixel> &pix)
const;
218 void yieldAlphaHistogram(
int which = 12);
343 template <
typename TYPE>
352 <<
"Collection with label " << name <<
" is not valid" << std::endl;
356 template <
typename TYPE>
381 if (level >= verbose_)
382 reallyPrint(level, msg);
Pixel(double x=0, double y=0, double z=0, double eta=0, double phi=0, double adc=0, double sx=0, double sy=0)
std::vector< std::string > hltProcNames_
std::vector< MonitorElement * > hdNdPhiHitsL2_
std::vector< Tracklet > btracklets23_
std::vector< MonitorElement * > hNhitsL3_
std::vector< MonitorElement * > hTrkRawDetaDphi13_
HLTConfigProvider hltConfig_
std::vector< TH3F * > NbkgTracklets12_
std::vector< MonitorElement * > hdNdEtaRawTrkl13_
std::vector< MonitorElement * > hdNdEtaRawTrkl23_
std::vector< bool > hltTrgDeci_
T const * getProduct(RefCore const &ref)
std::vector< MonitorElement * > hRawTrkEtaVtxZ12_
std::vector< TH3F * > NsigTracklets12_
void print(int level, const std::string &msg)
std::vector< TH1F * > hEvtCountsPerEta12_
std::vector< MonitorElement * > hNhitsL2z_
Pixel(const GlobalPoint &p, double adc=0, double sx=0, double sy=0)
std::vector< TH3F * > NsigTracklets23_
std::vector< MonitorElement * > hTrkRawDeta23_
std::vector< MonitorElement * > hdNdEtaHitsL1_
S & print(S &os, JobReport::InputFile const &f)
std::vector< MonitorElement * > hdNdEtaSubTrkl23_
std::vector< MonitorElement * > hClusterADC1_
std::vector< TH3F * > NsigTracklets13_
std::vector< MonitorElement * > hRawTrkEtaVtxZ23_
std::vector< MonitorElement * > hClusterYSize2_
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * repSummary_
std::vector< MonitorElement * > hTrkVtxZ12_
std::vector< MonitorElement * > hTrkVtxZ13_
std::vector< TH3F * > NbkgTracklets13_
std::vector< Tracklet > btracklets12_
std::vector< MonitorElement * > hTrkRawDeta12_
std::vector< MonitorElement * > hdNdEtaHitsL2_
std::vector< MonitorElement * > hdNdEtaSubTrkl13_
void getProduct(const std::string name, edm::Handle< TYPE > &prod, const edm::Event &event) const
MonitorElement * repSumMap_
std::vector< MonitorElement * > hClusterVertexZ_
std::vector< std::string > hltTrgUsedNames_
std::vector< MonitorElement * > hNhitsL1_
std::vector< MonitorElement * > hTrkRawDphi23_
std::vector< Pixel > bpix3_
std::vector< MonitorElement * > hNhitsL1z_
std::vector< MonitorElement * > hTrkRawDphi12_
std::vector< MonitorElement * > hClusterYSize3_
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
std::vector< MonitorElement * > hdNdEtaTrklets23_
std::vector< MonitorElement * > hTrkRawDetaDphi12_
std::vector< MonitorElement * > hClusterADC3_
bool getProductSafe(const std::string name, edm::Handle< TYPE > &prod, const edm::Event &event) const
void print(int level, const char *msg)
std::string clusterVtxName_
std::vector< MonitorElement * > hdNdEtaTrklets13_
std::vector< MonitorElement * > hTrkRawDetaDphi23_
std::vector< MonitorElement * > hdNdPhiHitsL1_
std::vector< MonitorElement * > hdNdEtaTrklets12_
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
std::vector< MonitorElement * > hRawTrkEtaVtxZ13_
MonitorElement * h2TrigCorr_
std::vector< MonitorElement * > hNhitsL3z_
std::vector< MonitorElement * > hdNdEtaRawTrkl12_
std::vector< MonitorElement * > hClusterADC2_
std::vector< MonitorElement * > hdNdEtaHitsL3_
std::vector< MonitorElement * > hClusterYSize1_
const TrackerGeometry * tgeo_
Tracklet(const Pixel &p1, const Pixel &p2)
std::vector< Pixel > bpix2_
Vertex(double x=0, double y=0, double z=0, double xs=0, double ys=0, double zs=0, int n=0)
std::string hltUsedResName_
std::vector< Pixel > bpix1_
std::vector< TH1F * > hEvtCountsPerEta23_
std::vector< MonitorElement * > hTrkRawDeta13_
std::vector< MonitorElement * > hdNdPhiHitsL3_
std::vector< std::string > hltTrgNames_
std::vector< MonitorElement * > hTrkRawDphi13_
std::vector< TH1F * > hEvtCountsPerEta13_
std::vector< Tracklet > btracklets13_
std::vector< MonitorElement * > hdNdEtaSubTrkl12_
std::vector< TH3F * > NbkgTracklets23_
std::vector< MonitorElement * > hNhitsL2_
std::vector< int > hltTrgBits_
std::vector< MonitorElement * > hTrkVtxZ23_