This file contains hidden or 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
import os | |
ct = os.getenv("ct", "1000") | |
M = os.getenv("M", "30") | |
decay = os.getenv("decay", "bbbb") | |
#name = "HiddenGluGluH_mH-125_Phi-{M}_ctau-{ct}_{decay}".format(M=M,ct=ct,decay=decay) | |
name = "DisplacedSUSY_stopToBottom_M-800_1000mm" | |
print(name) | |
from WMCore.Configuration import Configuration |
This file contains hidden or 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
#assumes lpc group space | |
theDir=lpclonglived | |
count_files_recursive() { | |
local find_path=$1 | |
local ls_path=$2 | |
local count=0 | |
output=$(eos root://cmseos.fnal.gov find -f "$find_path" 2>&1) | |
if echo "$output" | grep -q "Result is truncated"; then |
This file contains hidden or 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
#include <TFile.h> | |
#include <TH2F.h> | |
#include <TString.h> | |
#include <iostream> | |
#include <fstream> | |
#include <iomanip> | |
#include <cmath> | |
void ExportTH2FRatioToCSV(const char* rootFile, const char* numHistName, const char* denHistName, | |
const char* outputCSV, int significantDigits, bool doErr, |
This file contains hidden or 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
#include "FWCore/FWLite/interface/AutoLibraryLoader.h" | |
#include "DataFormats/FWLite/interface/Handle.h" | |
#include "DataFormats/FWLite/interface/Event.h" | |
#include "DataFormats/HepMCCandidate/interface/GenParticle.h" | |
#include "TCanvas.h" | |
#include "TH1F.h" | |
#include "TFile.h" | |
void explore() { |
This file contains hidden or 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
import ROOT | |
from DataFormats.FWLite import Events, Handle | |
import numpy as np | |
import matplotlib.pyplot as plt | |
events = Events('test.root') | |
# vector<l1t::PFJet> "l1tSC4PFL1PuppiCorrectedEmulator" "" "L1P2GT" | |
# vector<l1t::PFJet> "l1tSC4PFL1PuppiExtendedCorrectedEmulator" "" "L1P2GT" | |
# BXVector<l1t::Jet> "l1tCaloJet" "L1CaloJetCollectionBXV" "L1P2GT" | |
# edm::ValueMap<float> "l1tBJetProducerPuppi" "L1PFBJets" "L1P2GT" |
This file contains hidden or 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
import ROOT | |
from DataFormats.FWLite import Events, Handle | |
import numpy as np | |
events = Events('test.root') | |
# BXVector<l1t::Jet> "l1tCaloJet" "L1CaloJetCollectionBXV" "L1P2GT" | |
# edm::ValueMap<float> "l1tBJetProducerPuppi" "L1PFBJets" "L1P2GT" | |
# edm::ValueMap<float> "l1tBJetProducerPuppiCorrectedEmulator" "L1PFBJets" "L1P2GT" | |
jetsHandle = Handle('BXVector<l1t::Jet>') | |
bJetHandlePuppi = Handle('edm::ValueMap<float>') |
This file contains hidden or 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
function getCSV() { | |
result = "Time," + PeopleNames.join(",")+"\n"; | |
for(let i = 0; i < AvailableAtSlot.length; i++) { | |
let slot = $x(`string(//div[@id="GroupTime${TimeOfSlot[i]}"]/@onmouseover)`); | |
slot = slot.match(/.*"(.*)".*/)[1]; | |
result += slot + ","; | |
result += PeopleIDs.map(id => AvailableAtSlot[i].includes(id) ? 1 : 0).join(","); | |
result+= "\n"; | |
} | |
console.log(result); |