#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(), run_AlCaRecoTriggerBitsUpdateWorkflow::IOV, submitPVValidationJobs::run, test_db_connect::runlist, and runlistfromlumifile().
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(), validate-o2o-wbm::f, lut2db_cfg::filename, groupFilesInBlocks::fout, g, relativeConstraints::geom, relativeConstraints::geometry, getName(), timingPdfMaker::histo, mps_fire::i, utils::is_empty(), label, phase1PixelTopology::layer, Geometry::Mu(), Geometry::MuMinus(), Geometry::MuPlus(), dqmiodumpmetadata::n, mergeVDriftHistosByStation::name, nlayers, numberOfLayers(), DeadROCCounter_Phase1::outname, point, Geometry::Run(), Geometry::Sigma(), Geometry::SigmaDeltaMu(), Geometry::SigmaMinus(), Geometry::SigmaPlus(), and L1TEGammaDiff_cfi::variables.
Referenced by DMRtrends().
TH1F * ConvertToHist | ( | TGraphErrors * | g | ) |
Definition at line 761 of file DMRtrends.cc.
References timingPdfMaker::histo, mps_fire::i, N, and funct::pow().
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(), fed_dqm_sourceclient-live_cfg::path, and PlotDMRTrends().
Referenced by main().
double getintegratedlumiuptorun | ( | int | run, |
TString | Year = "2018" , |
||
double | min = 0. |
||
) |
Definition at line 634 of file DMRtrends.cc.
References dqmiolumiharvest::j, dqmdumpme::lumi, lumiFactor, lumifileperyear(), min(), and pileupReCalc_HLTpaths::scale.
Referenced by PixelUpdateLines().
TString getName | ( | TString | structure, |
int | layer, | ||
TString | geometry | ||
) |
Definition at line 236 of file DMRtrends.cc.
References phase1PixelTopology::layer, and mergeVDriftHistosByStation::name.
Referenced by CaloTowersClient::CaloTowersEndjob(), CaloTowersDQMClient::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, dqmdumpme::lumi, lumifileperyear(), N, submitPVValidationJobs::run, and pileupReCalc_HLTpaths::scale.
Referenced by PlotDMRTrends().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 1053 of file DMRtrends.cc.
References gather_cfg::cout, DMRtrends(), mps_fire::i, HLT_FULL_cff::labels, and test_db_connect::runlist.
const map< TString, int > numberOfLayers | ( | TString | Year = "2018" | ) |
Definition at line 254 of file DMRtrends.cc.
Referenced by RealisticSimClusterMapper::buildClusters(), compileDMRTrends(), and PlotDMRTrends().
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 getintegratedlumiuptorun(), label, HLT_FULL_cff::labels, geometryCSVtoXML::line, dqmdumpme::lumi, 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 checkrunlist(), ConvertToHist(), gather_cfg::cout, lut2db_cfg::filename, g, relativeConstraints::geometry, getName(), h, mps_fire::i, recoMuon::in, fwlog::kWarning, label, phase1PixelTopology::layer, lumiperIOV(), SiStripPI::max, min(), mergeVDriftHistosByStation::name, nlayers, numberOfLayers(), PixelUpdateLines(), sistrip::SpyUtilities::range(), scalebylumi(), 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(), lut2db_cfg::filename, mps_fire::i, utils::is_empty(), lumifileperyear(), N, fed_dqm_sourceclient-live_cfg::path, gather_cfg::runs, and pileupReCalc_HLTpaths::scale.
Referenced by checkrunlist().
void scalebylumi | ( | TGraphErrors * | g, |
vector< pair< int, double >> | lumiIOVpairs | ||
) |
Definition at line 659 of file DMRtrends.cc.
References DUMMY, mps_fire::i, dqmiolumiharvest::j, lumiFactor, N, and submitPVValidationJobs::run.
Referenced by PlotDMRTrends().