#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <iomanip>
#include <experimental/filesystem>
#include "TPad.h"
#include "TCanvas.h"
#include "TGraph.h"
#include "TGraphErrors.h"
#include "TMultiGraph.h"
#include "TH1.h"
#include "THStack.h"
#include "TROOT.h"
#include "TFile.h"
#include "TColor.h"
#include "TLegend.h"
#include "TLegendEntry.h"
#include "TMath.h"
#include "TRegexp.h"
#include "TPaveLabel.h"
#include "TPaveText.h"
#include "TStyle.h"
#include "TLine.h"
Go to the source code of this file.
Classes | |
class | Geometry |
Class Geometry Contains vector for fit parameters (mean, sigma, etc.) obtained from multiple IOVs See Structure Point for description of the parameters. More... | |
struct | Point |
Structure Point Contains parameters of Gaussian fits to DMRs. More... | |
Macros | |
#define | DMRFactor 10000. |
#define | DUMMY -999. |
#define | lumiFactor 1000. |
Functions | |
bool | checkrunlist (vector< int > runs, vector< int > IOVlist={}, TString Year="2018") |
void | compileDMRTrends (vector< int > IOVlist, vector< string >labels={"MB"}, TString Year="2018", string myValidation="/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/data/commonValidation/results/acardini/DMRs/", vector< string > geometries={"GT","SG","MP pix LBL","PIX HLS+ML STR fix"}, bool showlumi=false, bool FORCE=false) |
TH1F * | ConvertToHist (TGraphErrors *g) |
void | DMRtrends (vector< int > IOVlist, vector< string >labels={"MB"}, TString Year="2018", string myValidation="/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/data/commonValidation/results/acardini/DMRs/", vector< string > geometries={"GT","SG","MP pix LBL","PIX HLS+ML STR fix"}, vector< Color_t > colours={kBlue, kRed, kGreen, kCyan}, TString outputdir="/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/data/commonValidation/alignmentObjects/acardini/DMRsTrends/", bool pixelupdate=false, vector< int > pixelupdateruns={314881, 316758, 317527, 318228, 320377}, bool showlumi=false, bool FORCE=false) |
double | getintegratedlumiuptorun (int run, TString Year="2018", double min=0.) |
TString | getName (TString structure, int layer, TString geometry) |
TString | lumifileperyear (TString Year="2018", string RunOrIOV="IOV") |
int | main (int argc, char *argv[]) |
void | PixelUpdateLines (TCanvas *c, TString Year="2018", bool showlumi=false, vector< int >pixelupdateruns={314881, 316758, 317527, 318228, 320377}) |
void | PlotDMRTrends (vector< string >labels={"MB"}, TString Year="2018", string myValidation="/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/data/commonValidation/results/acardini/DMRs/", vector< string > geometries={"GT","SG","MP pix LBL","PIX HLS+ML STR fix"}, vector< Color_t > colours={kBlue, kRed, kGreen, kCyan}, TString outputdir="/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/data/commonValidation/alignmentObjects/acardini/DMRsTrends/", bool pixelupdate=false, vector< int > pixelupdateruns={314881, 316758, 317527, 318228, 320377}, bool showlumi=false) |
vector< int > | runlistfromlumifile (TString Year="2018") |
void | scalebylumi (TGraphErrors *g, TString Year="2018", double min=0.) |
#define DMRFactor 10000. |
Definition at line 41 of file DMRtrends.cc.
Referenced by Point::GetDeltaMu(), Point::GetMu(), Point::GetMuMinus(), Point::GetMuPlus(), Point::GetSigma(), Point::GetSigmaDeltaMu(), Point::GetSigmaMinus(), and Point::GetSigmaPlus().
#define DUMMY -999. |
Definition at line 33 of file DMRtrends.cc.
Referenced by Point::GetDeltaMu(), Point::GetSigmaDeltaMu(), and scalebylumi().
#define lumiFactor 1000. |
Definition at line 37 of file DMRtrends.cc.
Referenced by getintegratedlumiuptorun(), and scalebylumi().
bool checkrunlist | ( | vector< int > | runs, |
vector< int > | IOVlist = {} , |
||
TString | Year = "2018" |
||
) |
Definition at line 211 of file DMRtrends.cc.
References gather_cfg::cout, spr::find(), writedatasetfile::run, lumiPlot::runlist, and runlistfromlumifile().
Referenced by compileDMRTrends(), Point::GetSigmaDeltaMu(), and PlotDMRTrends().
void compileDMRTrends | ( | vector< int > | IOVlist, |
vector< string > | labels = {"MB"} , |
||
TString | Year = "2018" , |
||
string | myValidation = "/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/data/commonValidation/results/acardini/DMRs/" , |
||
vector< string > | geometries = {"GT","SG", "MP pix LBL","PIX HLS+ML STR fix"} , |
||
bool | showlumi = false , |
||
bool | FORCE = false |
||
) |
Definition at line 260 of file DMRtrends.cc.
References checkrunlist(), gather_cfg::cout, Geometry::DeltaMu(), mps_splice::entry, cmsRelvalreport::exit, f, corrVsCorr::filename, cmsPerfCommons::filenames, groupFilesInBlocks::fout, g, relativeConstraints::geom, getName(), trackerHits::histo, mps_fire::i, utils::is_empty(), label, Geometry::Mu(), Geometry::MuMinus(), Geometry::MuPlus(), gen::n, dataset::name, nlayers, point, fetchall_from_DQM_v2::regexp, Geometry::Run(), writedatasetfile::runs, Geometry::Sigma(), Geometry::SigmaDeltaMu(), Geometry::SigmaMinus(), Geometry::SigmaPlus(), and objects.autophobj::variables.
Referenced by DMRtrends(), and Point::GetSigmaDeltaMu().
TH1F * ConvertToHist | ( | TGraphErrors * | g | ) |
Definition at line 526 of file DMRtrends.cc.
References create_public_pileup_plots::bins, trackerHits::histo, mps_fire::i, N, and funct::pow().
Referenced by Point::GetSigmaDeltaMu(), and PlotDMRTrends().
void DMRtrends | ( | vector< int > | IOVlist, |
vector< string > | labels = {"MB"} , |
||
TString | Year = "2018" , |
||
string | myValidation = "/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/data/commonValidation/results/acardini/DMRs/" , |
||
vector< string > | geometries = {"GT","SG", "MP pix LBL","PIX HLS+ML STR fix"} , |
||
vector< Color_t > | colours = {kBlue, kRed, kGreen, kCyan} , |
||
TString | outputdir = "/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/data/commonValidation/alignmentObjects/acardini/DMRsTrends/" , |
||
bool | pixelupdate = false , |
||
vector< int > | pixelupdateruns = {314881, 316758, 317527, 318228, 320377} , |
||
bool | showlumi = false , |
||
bool | FORCE = false |
||
) |
Definition at line 249 of file DMRtrends.cc.
References compileDMRTrends(), gather_cfg::cout, and PlotDMRTrends().
Referenced by Point::GetSigmaDeltaMu(), and main().
double getintegratedlumiuptorun | ( | int | run, |
TString | Year = "2018" , |
||
double | min = 0. |
||
) |
Definition at line 451 of file DMRtrends.cc.
References csvLumiCalc::lumi, lumiFactor, lumifileperyear(), min(), Scenarios_cff::scale, and matplotRender::yscale.
Referenced by Point::GetSigmaDeltaMu(), and PixelUpdateLines().
TString getName | ( | TString | structure, |
int | layer, | ||
TString | geometry | ||
) |
Definition at line 167 of file DMRtrends.cc.
References dataset::name.
Referenced by MuonAlignment::analyze(), CaloTowersClient::CaloTowersEndjob(), CaloTowersDQMClient::CaloTowersEndjob(), ESDaqInfoTask::cleanup(), jsoncollector::FastMonitor::commit(), compileDMRTrends(), FWGUIManager::createHelpGLPopup(), FWGUIManager::createShortcutPopup(), HGCalDigiClient::digisEndjob(), JetMETHLTOfflineClient::dqmEndJob(), MonitorElementsDb::endJob(), HGCalGeometryClient::geometryEndjob(), HGCalHitClient::geometryEndjob(), cscdqm::HistoDef::getFullPath(), Point::GetSigmaDeltaMu(), HcalDigisClient::HcalDigisEndjob(), HcalRecHitsDQMClient::HcalRecHitsEndjob(), NoiseRatesClient::NoiseRatesEndjob(), HcalNoiseRatesClient::NoiseRatesEndjob(), GenericMVAComputer::TaggingVariableIterator< Iter_t >::Value::operator PhysicsTools::Variable::Value(), PlotDMRTrends(), HGCalRecHitsClient::recHitsEndjob(), HcalSimHitsClient::SimHitsEndjob(), HGCalSimHitsClient::simHitsEndjob(), and PhysicsTools::TrainerMonitoring::RootObject< T >::write().
TString lumifileperyear | ( | TString | Year = "2018" , |
string | RunOrIOV = "IOV" |
||
) |
Definition at line 183 of file DMRtrends.cc.
References gather_cfg::cout.
Referenced by getintegratedlumiuptorun(), Point::GetSigmaDeltaMu(), runlistfromlumifile(), and scalebylumi().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 701 of file DMRtrends.cc.
References gather_cfg::cout, DMRtrends(), mps_fire::i, tablePrinter::labels, and lumiPlot::runlist.
void PixelUpdateLines | ( | TCanvas * | c, |
TString | Year = "2018" , |
||
bool | showlumi = false , |
||
vector< int > | pixelupdateruns = {314881, 316758, 317527, 318228, 320377} |
||
) |
Definition at line 393 of file DMRtrends.cc.
References getintegratedlumiuptorun(), label, tablePrinter::labels, mps_splice::line, csvLumiCalc::lumi, Min(), and corrVsCorr::rx.
Referenced by Point::GetSigmaDeltaMu(), and PlotDMRTrends().
void PlotDMRTrends | ( | vector< string > | labels = {"MB"} , |
TString | Year = "2018" , |
||
string | myValidation = "/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/data/commonValidation/results/acardini/DMRs/" , |
||
vector< string > | geometries = {"GT","SG", "MP pix LBL","PIX HLS+ML STR fix"} , |
||
vector< Color_t > | colours = {kBlue, kRed, kGreen, kCyan} , |
||
TString | outputdir = "/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/data/commonValidation/alignmentObjects/acardini/DMRsTrends/" , |
||
bool | pixelupdate = false , |
||
vector< int > | pixelupdateruns = {314881, 316758, 317527, 318228, 320377} , |
||
bool | showlumi = false |
||
) |
Definition at line 554 of file DMRtrends.cc.
References EnergyCorrector::c, checkrunlist(), ConvertToHist(), corrVsCorr::filename, g, utils::gErrorIgnoreLevel, getName(), h, mps_fire::i, recoMuon::in, fwlog::kWarning, label, listHistos::legend, SiStripPI::max, min(), dataset::name, nlayers, PixelUpdateLines(), scalebylumi(), taus_updatedMVAIds_cff::variable, and objects.autophobj::variables.
Referenced by DMRtrends(), and Point::GetSigmaDeltaMu().
vector< int > runlistfromlumifile | ( | TString | Year = "2018" | ) |
Definition at line 198 of file DMRtrends.cc.
References mps_fire::i, lumifileperyear(), N, writedatasetfile::runs, and Scenarios_cff::scale.
Referenced by checkrunlist(), and Point::GetSigmaDeltaMu().
void scalebylumi | ( | TGraphErrors * | g, |
TString | Year = "2018" , |
||
double | min = 0. |
||
) |
Definition at line 477 of file DMRtrends.cc.
References DUMMY, mps_fire::i, lumiFactor, lumifileperyear(), min(), N, writedatasetfile::run, Scenarios_cff::scale, and matplotRender::yscale.
Referenced by Point::GetSigmaDeltaMu(), and PlotDMRTrends().