#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"
#include "Alignment/OfflineValidation/plugins/ColorParser.C"
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, TString Variable="median", 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 > Variables={"median", "DrmsNR"}, 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") |
vector< pair< int, double > > | lumiperIOV (vector< int > IOVlist, TString Year="2018") |
int | main (int argc, char *argv[]) |
const map< TString, int > | numberOfLayers (TString Year="2018") |
void | PixelUpdateLines (TCanvas *c, TString Year="2018", bool showlumi=false, vector< int > pixelupdateruns={314881, 316758, 317527, 318228, 320377}) |
void | PlotDMRTrends (vector< int > IOVlist, TString Variable="median", 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, vector< pair< int, double >> lumiIOVpairs) |
#define DMRFactor 10000. |
Definition at line 42 of file DMRtrends.cc.
Referenced by compileDMRTrends().
#define DUMMY -999. |
Definition at line 34 of file DMRtrends.cc.
Referenced by Point::GetDeltaMu(), Point::GetSigmaDeltaMu(), and scalebylumi().
#define lumiFactor 1000. |
Definition at line 38 of file DMRtrends.cc.
Referenced by getintegratedlumiuptorun(), and scalebylumi().
bool checkrunlist | ( | vector< int > | runs, |
vector< int > | IOVlist = {} , |
||
TString | Year = "2018" |
||
) |
Definition at line 308 of file DMRtrends.cc.
References gather_cfg::cout, spr::find(), writedatasetfile::run, test_db_connect::runlist, runlistfromlumifile(), writedatasetfile::runs, jetUpdater_cfi::sort, and cond::impl::to_string().
Referenced by compileDMRTrends(), and PlotDMRTrends().
void compileDMRTrends | ( | vector< int > | IOVlist, |
TString | Variable = "median" , |
||
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 395 of file DMRtrends.cc.
References checkrunlist(), gather_cfg::cout, Geometry::DeltaMu(), DMRFactor, mps_splice::entry, beamvalidation::exit(), f, corrVsCorr::filename, groupFilesInBlocks::fout, g, relativeConstraints::geom, getName(), timingPdfMaker::histo, mps_fire::i, utils::is_empty(), label, SummaryClient_cfi::labels, phase1PixelTopology::layer, Geometry::Mu(), Geometry::MuMinus(), Geometry::MuPlus(), dqmiodumpmetadata::n, Skims_PA_cff::name, nlayers, numberOfLayers(), DeadROCCounter_Phase1::outname, point, fetchall_from_DQM_v2::regexp, writedatasetfile::runs, Geometry::Sigma(), Geometry::SigmaDeltaMu(), Geometry::SigmaMinus(), Geometry::SigmaPlus(), jetUpdater_cfi::sort, and L1TEGammaDiff_cfi::variables.
Referenced by DMRtrends().
TH1F * ConvertToHist | ( | TGraphErrors * | g | ) |
Definition at line 761 of file DMRtrends.cc.
References trigObjTnPSource_cfi::bins, g, timingPdfMaker::histo, mps_fire::i, N, funct::pow(), and x.
Referenced by PlotDMRTrends().
void DMRtrends | ( | vector< int > | IOVlist, |
vector< string > | Variables = {"median", "DrmsNR"} , |
||
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 350 of file DMRtrends.cc.
References compileDMRTrends(), gather_cfg::cout, beamvalidation::exit(), SummaryClient_cfi::labels, dtNoiseDBValidation_cfg::outputdir, castor_dqm_sourceclient_file_cfg::path, PlotDMRTrends(), and TagProbeFitTreeAnalyzer_cfi::Variables.
Referenced by main().
double getintegratedlumiuptorun | ( | int | run, |
TString | Year = "2018" , |
||
double | min = 0. |
||
) |
Definition at line 634 of file DMRtrends.cc.
References dqmiolumiharvest::j, BXlumiParameters_cfi::lumi, lumiFactor, lumifileperyear(), SiStripPI::min, writedatasetfile::run, and L1EGammaClusterEmuProducer_cfi::scale.
Referenced by PixelUpdateLines().
TString getName | ( | TString | structure, |
int | layer, | ||
TString | geometry | ||
) |
Definition at line 236 of file DMRtrends.cc.
References phase1PixelTopology::layer, and Skims_PA_cff::name.
Referenced by CaloTowersDQMClient::CaloTowersEndjob(), CaloTowersClient::CaloTowersEndjob(), jsoncollector::FastMonitor::commit(), compileDMRTrends(), FWGUIManager::createHelpGLPopup(), FWGUIManager::createShortcutPopup(), HGCalDigiClient::digisEndjob(), JetMETHLTOfflineClient::dqmEndJob(), StraightTrackAlignment::finish(), HGCalGeometryClient::geometryEndjob(), HGCalHitClient::geometryEndjob(), HcalDigisClient::HcalDigisEndjob(), HcalRecHitsDQMClient::HcalRecHitsEndjob(), NoiseRatesClient::NoiseRatesEndjob(), HcalNoiseRatesClient::NoiseRatesEndjob(), GenericMVAComputer::TaggingVariableIterator< Iter_t >::Value::operator PhysicsTools::Variable::Value(), PlotDMRTrends(), StraightTrackAlignment::printAlgorithmsLine(), HGCalRecHitsClient::recHitsEndjob(), HcalSimHitsClient::SimHitsEndjob(), and HGCalSimHitsClient::simHitsEndjob().
TString lumifileperyear | ( | TString | Year = "2018" , |
string | RunOrIOV = "IOV" |
||
) |
Definition at line 267 of file DMRtrends.cc.
References gather_cfg::cout, and beamvalidation::exit().
Referenced by getintegratedlumiuptorun(), lumiperIOV(), and runlistfromlumifile().
vector< pair< int, double > > lumiperIOV | ( | vector< int > | IOVlist, |
TString | Year = "2018" |
||
) |
Definition at line 710 of file DMRtrends.cc.
References funct::abs(), gather_cfg::cout, beamvalidation::exit(), mps_fire::i, dqmiolumiharvest::j, BXlumiParameters_cfi::lumi, lumifileperyear(), N, writedatasetfile::run, and L1EGammaClusterEmuProducer_cfi::scale.
Referenced by PlotDMRTrends().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 1053 of file DMRtrends.cc.
References dir2webdir::argc, cmsBatch::argv, gather_cfg::cout, DMRtrends(), mps_fire::i, SummaryClient_cfi::labels, test_db_connect::runlist, and TagProbeFitTreeAnalyzer_cfi::Variables.
const map< TString, int > numberOfLayers | ( | TString | Year = "2018" | ) |
Definition at line 254 of file DMRtrends.cc.
Referenced by RealisticSimClusterMapper::buildClusters(), compileDMRTrends(), RealisticHitToClusterAssociator::init(), PlotDMRTrends(), and RealisticCluster::setLayersNum().
void PixelUpdateLines | ( | TCanvas * | c, |
TString | Year = "2018" , |
||
bool | showlumi = false , |
||
vector< int > | pixelupdateruns = {314881, 316758, 317527, 318228, 320377} |
||
) |
Definition at line 569 of file DMRtrends.cc.
References c, getintegratedlumiuptorun(), label, SummaryClient_cfi::labels, mps_splice::line, BXlumiParameters_cfi::lumi, METSkim_cff::Min, and corrVsCorr::rx.
Referenced by PlotDMRTrends().
void PlotDMRTrends | ( | vector< int > | IOVlist, |
TString | Variable = "median" , |
||
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 789 of file DMRtrends.cc.
References c, checkrunlist(), ConvertToHist(), gather_cfg::cout, corrVsCorr::filename, g, utils::gErrorIgnoreLevel, getName(), h, mps_fire::i, recoMuon::in, fwlog::kWarning, label, SummaryClient_cfi::labels, phase1PixelTopology::layer, compareTotals::legend, lumiperIOV(), SiStripPI::max, SiStripPI::min, Skims_PA_cff::name, nlayers, numberOfLayers(), dtNoiseDBValidation_cfg::outputdir, PixelUpdateLines(), FastTimerService_cff::range, scalebylumi(), taus_updatedMVAIds_cff::variable, and L1TEGammaDiff_cfi::variables.
Referenced by DMRtrends().
vector< int > runlistfromlumifile | ( | TString | Year = "2018" | ) |
Definition at line 288 of file DMRtrends.cc.
References gather_cfg::cout, beamvalidation::exit(), corrVsCorr::filename, mps_fire::i, utils::is_empty(), lumifileperyear(), N, castor_dqm_sourceclient_file_cfg::path, writedatasetfile::runs, and L1EGammaClusterEmuProducer_cfi::scale.
Referenced by checkrunlist().
void scalebylumi | ( | TGraphErrors * | g, |
vector< pair< int, double >> | lumiIOVpairs | ||
) |
Definition at line 659 of file DMRtrends.cc.
References DUMMY, g, mps_fire::i, dqmiolumiharvest::j, lumiFactor, N, writedatasetfile::run, and x.
Referenced by PlotDMRTrends().