Skip to content

Instantly share code, notes, and snippets.

View mconcas's full-sized avatar
:octocat:

Matteo Concas mconcas

:octocat:
View GitHub Profile
@mconcas
mconcas / run_raw_msk_sq3_suite.sh
Last active October 24, 2022 15:26
Run three different configuration of reconstruction
#! /bin/bash
# global params
DATA_LIST="${1}"
# global arguments
GLO_ARG="--shm-segment-size 24000000000"
# raw arguments
CLPAR_RAW=" --configKeyValues ITSClustererParam.maxBCDiffToMaskBias=-10;ITSClustererParam.maxBCDiffToSquashBias=-10;fastMultConfig.cutMultClusLow=-1;fastMultConfig.cutMultClusHigh=-1;fastMultConfig.cutMultVtxHigh=-1;ITSVertexerParam.phiCut=0.5;ITSVertexerParam.clusterContributorsCut=3;ITSVertexerParam.tanLambdaCut=0.2;"
# mask arguments
CLPAR_MSK=" --configKeyValues ITSClustererParam.maxBCDiffToMaskBias=10;ITSClustererParam.maxBCDiffToSquashBias=-10;ITSClustererParam.maxSOTMUS=8.;fastMultConfig.cutMultClusLow=-1;fastMultConfig.cutMultClusHigh=-1;fastMultConfig.cutMultVtxHigh=-1;ITSVertexerParam.phiCut=0.5;ITSVertexerParam.clusterContributorsCut=3;ITSVertexerParam.tanLambdaCut=0.2;"
#if !defined(__CLING__) || defined(__ROOTCLING__)
//#define ENABLE_UPGRADES
#include "DetectorsCommonDataFormats/DetID.h"
#include "DetectorsCommonDataFormats/NameConf.h"
#include "DetectorsCommonDataFormats/AlignParam.h"
#include "DetectorsBase/GeometryManager.h"
#include "CCDB/CcdbApi.h"
#include "ITSBase/GeometryTGeo.h"
#include <TRandom.h>
#include <TFile.h>
@mconcas
mconcas / run.sh
Last active October 15, 2021 17:34
#!/usr/bin/bash -x
wget http://alimonitor.cern.ch/download/local.jar
rm -Rf data
rm ITSdictionary.root o2*.root
mkdir -p data
export FILE_REPOSITORY_LOCATION=$PWD/data
@mconcas
mconcas / Makefile
Last active February 19, 2021 13:20
[OpenCL2.0][reproducer] error: taking address of function is not allowed
DEFINES="-DNDEBUG -D__OPENCLCPP__"
FLAGS="-Xclang -fdenormal-fp-math-f32=ieee -cl-mad-enable -cl-no-signed-zeros -ferror-limit=1000 -Xclang -finclude-default-header -Dcl_clang_storage_class_specifiers"
COMPILER=/opt/clang/bin/clang++
reproducer: reproducer.cl
$(COMPILER) -O0 -cl-std=clc++ -x cl -emit-llvm --target=spir64-unknown-unknown $(DEFINES) $(FLAGS) -c reproducer.cl -o reproducer.bc
workaround: workaround.cl
$(COMPILER) -O0 -cl-std=clc++ -x cl -emit-llvm --target=spir64-unknown-unknown $(DEFINES) $(FLAGS) -c workaround.cl -o workaround.bc
@mconcas
mconcas / clusterer.py
Last active January 18, 2018 09:16
Usare con: `./clusterer.py [filename] [epsilon] [min_samples]`
#! /usr/bin/env python
import numpy as np
import sys
import pprint
from sklearn.cluster import dbscan
pars = sys.argv
if len(pars) != 5:
print("\tUsage: ./clusterer.py [filename] [epsilon] [min_samples] [output]")
print(__doc__)
import numpy as np
from sklearn.cluster import DBSCAN
from sklearn import metrics
from sklearn.datasets.samples_generator import make_blobs
from sklearn.preprocessing import StandardScaler
print(__doc__)
import numpy as np
from sklearn.cluster import DBSCAN
from sklearn import metrics
from sklearn.datasets.samples_generator import make_blobs
from sklearn.preprocessing import StandardScaler
print(__doc__)
import numpy as np
from sklearn.cluster import DBSCAN
from sklearn import metrics
from sklearn.datasets.samples_generator import make_blobs
from sklearn.preprocessing import StandardScaler
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0 0x00007fa2dd025dbc in waitpid () from /lib64/libc.so.6
#1 0x00007fa2dcfa8cc2 in do_system () from /lib64/libc.so.6
#2 0x00007fa2de050a22 in TUnixSystem::Exec (shellcmd=<optimized out>, this=0xe588e0) at /home/concas/alice/sw/SOURCES/ROOT/v6-10-08/v6-10-08/core/unix/src/TUnixSystem.cxx:2118
#3 TUnixSystem::StackTrace (this=0xe588e0) at /home/concas/alice/sw/SOURCES/ROOT/v6-10-08/v6-10-08/core/unix/src/TUnixSystem.cxx:2412
#4 0x00007fa2de052e8c in TUnixSystem::DispatchSignals (this=0xe588e0, sig=kSigSegmentationViolation) at /home/concas/alice/sw/SOURCES/ROOT/v6-10-08/v6-10-08/core/unix/src/TUnixSystem.cxx:3643
#5 <signal handler called>
root [1] using o2::ITS::CA::Layer;
root [2] Layer layer(2)
(o2::ITS::CA::Layer &) @0x7fe459098020
root [3] layer.addCluster(80103, 39.336300, -2.570910, 71.787003, 8935)
*** Break *** segmentation violation
===========================================================