-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into update_disptrkjet_cuts_master
- Loading branch information
Showing
739 changed files
with
32,174 additions
and
17,938 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
Alignment/HIPAlignmentAlgorithm/test/hippysubmitterscript.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#! /bin/bash | ||
|
||
hipName="$(grep -m 1 "alignmentname=" $1 | cut -d= -f2)" | ||
|
||
if [ -z "$hipName" ] | ||
then | ||
echo "Value for 'alignmentname' not found in template. Please check your submission template." | ||
else | ||
nohup ./$1 >> ../$hipName.log 2>&1 & | ||
echo $hipName $! >> ../pid.nohup | ||
echo "Please follow the log in '../$hipName.log'. To track progress live, use 'tail -f ../$hipName.log'." | ||
echo "The nohup job PID is appended to '../pid.nohup' in case the submission should be killed." | ||
echo "You can also use 'ps -ef | grep submit_' to find PIDs of currently running alignments." | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
Alignment/MillePedeAlignmentAlgorithm/test/test_payload_sanity.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/bin/bash | ||
function die { echo $1: status $2; exit $2; } | ||
|
||
INPUTFILE=${SCRAM_TEST_PATH}/alignments_MP.db | ||
(cmsRun ${SCRAM_TEST_PATH}/AlignmentRcdChecker_cfg.py inputSqliteFile=${INPUTFILE}) || die 'failed running AlignmentRcdChecker' | ||
echo -e "Content of the current directory is: "`ls .` | ||
INPUTFILE=alignments_MP.db | ||
(cmsRun ${SCRAM_TEST_PATH}/AlignmentRcdChecker_cfg.py inputSqliteFile=${INPUTFILE}) || die 'failed running AlignmentRcdChecker' $? | ||
rm $INPUTFILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## MTS (Muon Track Splitting) validation | ||
|
||
### General info | ||
|
||
``` | ||
validations: | ||
MTS: | ||
<step_type>: | ||
<step_name>: | ||
<options> | ||
``` | ||
|
||
MTS validation runs in 1 possible type of steps: | ||
- single (validation analysis by MTS_cfg.py) | ||
Step name is arbitrary string which will be used as a reference for consequent steps. | ||
Merge and trend jobs are not yet implemented. | ||
|
||
### Single MTS jobs | ||
|
||
Single jobs can be specified per run (IoV as well). | ||
|
||
**Parameters below to be updated** | ||
Variable | Default value | Explanation/Options | ||
-------- | ------------- | -------------------- | ||
IOV | None | List of IOVs/runs defined by integer value. IOV 1 is reserved for MC. | ||
Alignments | None | List of alignments. Will create separate directory for each. | ||
dataset | See defaultInputFiles_cff.py | Path to txt file containing list of datasets to be used. If file is missing at EOS or is corrupted - job will eventually fail (most common issue). | ||
goodlumi | cms.untracked.VLuminosityBlockRange() | Path to json file containing lumi information about selected IoV - must contain list of runs under particular IoV with lumiblock info. Format: `IOV_Vali_{}.json` | ||
maxevents | 1 | Maximum number of events before cmsRun terminates. | ||
trackcollection | "generalTracks" | Track collection to be specified here, e.g. "ALCARECOTkAlMuonIsolated" or "ALCARECOTkAlMinBias" ... | ||
tthrbuilder | "WithAngleAndTemplate" | Specify TTRH Builder | ||
usePixelQualityFlag | True | Use pixel quality flag? | ||
cosmicsZeroTesla | False | Is this validation for cosmics with zero magnetic field? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
#include <cstdlib> | ||
#include <string> | ||
#include <iostream> | ||
#include <numeric> | ||
#include <functional> | ||
|
||
#include "exceptions.h" | ||
#include "toolbox.h" | ||
#include "Options.h" | ||
|
||
#include "boost/filesystem.hpp" | ||
#include "boost/property_tree/ptree.hpp" | ||
#include "boost/property_tree/json_parser.hpp" | ||
#include "boost/optional.hpp" | ||
|
||
#include "TString.h" | ||
#include "TASImage.h" | ||
|
||
#include "Alignment/OfflineValidation/macros/trackSplitPlot.h" | ||
#include "Alignment/OfflineValidation/macros/trackSplitPlot.C" | ||
#include "Alignment/OfflineValidation/interface/TkAlStyle.h" | ||
|
||
using namespace std; | ||
using namespace AllInOneConfig; | ||
|
||
namespace pt = boost::property_tree; | ||
|
||
int merge(int argc, char* argv[]) { | ||
// parse the command line | ||
|
||
Options options; | ||
options.helper(argc, argv); | ||
options.parser(argc, argv); | ||
|
||
//Read in AllInOne json config | ||
pt::ptree main_tree; | ||
pt::read_json(options.config, main_tree); | ||
|
||
pt::ptree alignments = main_tree.get_child("alignments"); | ||
pt::ptree validation = main_tree.get_child("validation"); | ||
pt::ptree global_style; | ||
pt::ptree merge_style; | ||
|
||
int iov = validation.count("IOV") ? validation.get<int>("IOV") : 1; | ||
std::string rlabel = validation.count("customrighttitle") ? validation.get<std::string>("customrighttitle") : ""; | ||
rlabel = merge_style.count("Rlabel") ? merge_style.get<std::string>("Rlabel") : rlabel; | ||
std::string cmslabel = merge_style.count("CMSlabel") ? merge_style.get<std::string>("CMSlabel") : "INTERNAL"; | ||
if (TkAlStyle::toStatus(cmslabel) == CUSTOM) | ||
TkAlStyle::set(CUSTOM, NONE, cmslabel, rlabel); | ||
else | ||
TkAlStyle::set(TkAlStyle::toStatus(cmslabel), NONE, "", rlabel); | ||
|
||
TString filesAndLabels; | ||
for (const auto& childTree : alignments) { | ||
// Print node name and its attributes | ||
std::cout << "Node: " << childTree.first << std::endl; | ||
for (const auto& attr : childTree.second) { | ||
std::cout << " Attribute: " << attr.first << " = " << attr.second.data() << std::endl; | ||
} | ||
|
||
//std::cout << childTree.second.get<string>("file") << std::endl; | ||
//std::cout << childTree.second.get<string>("title") << std::endl; | ||
//std::cout << childTree.second.get<int>("color") << std::endl; | ||
//std::cout << childTree.second.get<int>("style") << std::endl; | ||
|
||
std::string toAdd = childTree.second.get<string>("file") + | ||
Form("/MTSValidation_%s_%d.root=", childTree.first.c_str(), iov) + | ||
childTree.second.get<string>("title") + | ||
Form("|%i|%i,", childTree.second.get<int>("color"), childTree.second.get<int>("style")); | ||
filesAndLabels += toAdd; | ||
} | ||
|
||
std::cout << "filesAndLabels: " << filesAndLabels << std::endl; | ||
|
||
TkAlStyle::legendheader = ""; | ||
TkAlStyle::legendoptions = "all"; | ||
outliercut = -1.0; | ||
//fillmatrix(); | ||
subdetector = "PIXEL"; | ||
makePlots(filesAndLabels, "./"); | ||
|
||
return EXIT_SUCCESS; | ||
} | ||
|
||
#ifndef DOXYGEN_SHOULD_SKIP_THIS | ||
int main(int argc, char* argv[]) { return exceptions<merge>(argc, argv); } | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.