#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.
#define DUMMY -999. |
Definition at line 34 of file DMRtrends.cc.
#define lumiFactor 1000. |
Definition at line 38 of file DMRtrends.cc.
bool checkrunlist | ( | vector< int > | runs, |
vector< int > | IOVlist = {} , |
||
TString | Year = "2018" |
||
) |
Definition at line 307 of file DMRtrends.cc.
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 394 of file DMRtrends.cc.
TH1F * ConvertToHist | ( | TGraphErrors * | g | ) |
Definition at line 760 of file DMRtrends.cc.
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 349 of file DMRtrends.cc.
double getintegratedlumiuptorun | ( | int | run, |
TString | Year = "2018" , |
||
double | min = 0. |
||
) |
Definition at line 633 of file DMRtrends.cc.
TString getName | ( | TString | structure, |
int | layer, | ||
TString | geometry | ||
) |
Definition at line 235 of file DMRtrends.cc.
Referenced by trklet::Sector::addStub(), CaloTowersClient::CaloTowersEndjob(), CaloTowersDQMClient::CaloTowersEndjob(), jsoncollector::FastMonitor::commit(), 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(), StraightTrackAlignment::printAlgorithmsLine(), HGCalRecHitsClient::recHitsEndjob(), HcalSimHitsClient::SimHitsEndjob(), and HGCalSimHitsClient::simHitsEndjob().
TString lumifileperyear | ( | TString | Year = "2018" , |
string | RunOrIOV = "IOV" |
||
) |
Definition at line 266 of file DMRtrends.cc.
vector< pair< int, double > > lumiperIOV | ( | vector< int > | IOVlist, |
TString | Year = "2018" |
||
) |
Definition at line 709 of file DMRtrends.cc.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 1052 of file DMRtrends.cc.
const map< TString, int > numberOfLayers | ( | TString | Year = "2018" | ) |
Definition at line 253 of file DMRtrends.cc.
Referenced by RealisticSimClusterMapper::buildClusters(), RealisticHitToClusterAssociator::init(), and RealisticCluster::setLayersNum().
void PixelUpdateLines | ( | TCanvas * | c, |
TString | Year = "2018" , |
||
bool | showlumi = false , |
||
vector< int > | pixelupdateruns = {314881, 316758, 317527, 318228, 320377} |
||
) |
Definition at line 568 of file DMRtrends.cc.
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 788 of file DMRtrends.cc.
vector< int > runlistfromlumifile | ( | TString | Year = "2018" | ) |
Definition at line 287 of file DMRtrends.cc.
void scalebylumi | ( | TGraphErrors * | g, |
vector< pair< int, double >> | lumiIOVpairs | ||
) |
Definition at line 658 of file DMRtrends.cc.