14 #include "TLorentzVector.h" 17 #include <fmt/printf.h> 49 : folderName_(ps.getUntrackedParameter<
std::
string>(
"folderName",
"TrackRefitting")),
51 minTracksEta_(ps.getUntrackedParameter<double>(
"minTracksEtaInput", 0.0)),
52 maxTracksEta_(ps.getUntrackedParameter<double>(
"maxTracksEtaInput", 2.2)),
53 minTracksPt_(ps.getUntrackedParameter<double>(
"minTracksPtInput", 15.0)),
54 maxTracksPt_(ps.getUntrackedParameter<double>(
"maxTracksPtInput", 99999.9)),
55 maxDr_(ps.getUntrackedParameter<double>(
"maxDrInput", 0.01)),
56 tracksTag_(ps.getUntrackedParameter<
edm::
InputTag>(
"tracksInputTag",
edm::
InputTag(
"generalTracks",
"",
"DQM"))),
74 fmt::sprintf(
"Short Track p_{T} / Full Track p_{T} - %s layers;p_{T}^{short}/p_{T}^{full};n. tracks",
103 const auto &tracks_rereco =
iEvent.getHandle(
token);
105 for (
const auto &track_rereco : *tracks_rereco) {
106 TLorentzVector trerecovec;
107 trerecovec.SetPtEtaPhiM(track_rereco.pt(), track_rereco.eta(), track_rereco.phi(), 0.0);
108 double deltaR = tvec.DeltaR(trerecovec);
126 desc.addUntracked<std::vector<std::string>>(
"hitsRemainInput", {});
127 desc.addUntracked<
double>(
"minTracksEtaInput", 0.0);
128 desc.addUntracked<
double>(
"maxTracksEtaInput", 2.2);
129 desc.addUntracked<
double>(
"minTracksPtInput", 15.0);
130 desc.addUntracked<
double>(
"maxTracksPtInput", 99999.9);
131 desc.addUntracked<
double>(
"maxDrInput", 0.01);
133 desc.addUntracked<std::vector<edm::InputTag>>(
"tracksRerecoInputTag", {});
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
const std::vector< edm::EDGetTokenT< std::vector< reco::Track > > > tracksRerecoToken_
const double minTracksPt_
virtual void setCurrentFolder(std::string const &fullpath)
const double maxTracksPt_
const double minTracksEta_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const double maxTracksEta_
Log< level::Error, false > LogError
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
const std::string folderName_
ShortenedTrackResolution(const edm::ParameterSet &)
const edm::EDGetTokenT< std::vector< reco::Track > > tracksToken_
const std::vector< edm::InputTag > tracksRerecoTag_
Abs< T >::type abs(const T &t)
#define DEFINE_FWK_MODULE(type)
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
const std::vector< std::string > hitsRemain_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
const edm::InputTag tracksTag_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
std::vector< MonitorElement * > histsPtAll_