-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from JPETTomography/develop
Release of Unpacker2 version 4.0.0
- Loading branch information
Showing
7 changed files
with
703 additions
and
25 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
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,30 @@ | ||
#ifndef __UNPACKER2D__ | ||
#define __UNPACKER2D__ | ||
|
||
#include <TObject.h> | ||
#include <map> | ||
#include <string> | ||
|
||
#include "Unpacker2.h" | ||
|
||
class Unpacker2D : public Unpacker2 | ||
{ | ||
public: | ||
void UnpackSingleStep(std::string inputFile, std::string inputPath, std::string outputPath, std::string configFile, int numberOfEvents, | ||
int refChannelOffset, std::string TDCcalibFile); | ||
|
||
protected: | ||
void ParseConfigFile(); | ||
void DistributeEventsSingleStep(); | ||
void BuildEvent(EventIII* e, std::map<UInt_t, std::vector<UInt_t>>* m, std::map<UInt_t, UInt_t>* refTimes); | ||
bool loadTDCcalibFile(const char* calibFile); | ||
|
||
const double kCoarseConstant = 2.5; | ||
const double kFineConstant = 0.0201612903; | ||
const int kModularOffset = 2100; | ||
const int kNumberOfChannels = 105; | ||
const int kNumberOfModules = 24; | ||
const int kReferenceChannel = 104; | ||
}; | ||
|
||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
pipeline { | ||
agent any | ||
|
||
stages { | ||
stage('BuildMatrix') { | ||
matrix { | ||
agent any | ||
axes { | ||
axis { | ||
name 'ROOT' | ||
values 'root611', 'root612', 'root616', 'root618' | ||
} | ||
axis { | ||
name 'GCC' | ||
values 'default_gcc' | ||
} | ||
axis { | ||
name 'BOOST' | ||
values 'boost_1_58' | ||
} | ||
axis { | ||
name 'OS' | ||
values 'ubuntu16' | ||
} | ||
axis { | ||
name 'CMAKE' | ||
values 'cmake351', 'cmake36', 'cmake315' | ||
} | ||
} | ||
excludes { | ||
exclude { | ||
axis { | ||
name 'ROOT' | ||
values 'root611' | ||
} | ||
axis { | ||
name 'CMAKE' | ||
values 'cmake315' | ||
} | ||
} | ||
exclude { | ||
axis { | ||
name 'ROOT' | ||
values 'root612' | ||
} | ||
axis { | ||
name 'CMAKE' | ||
values 'cmake315' | ||
} | ||
} | ||
exclude { | ||
axis { | ||
name 'ROOT' | ||
values 'root616' | ||
} | ||
axis { | ||
name 'CMAKE' | ||
values 'cmake351' | ||
} | ||
} | ||
exclude { | ||
axis { | ||
name 'ROOT' | ||
values 'root616' | ||
} | ||
axis { | ||
name 'CMAKE' | ||
values 'cmake315' | ||
} | ||
} | ||
exclude { | ||
axis { | ||
name 'ROOT' | ||
values 'root618' | ||
} | ||
axis { | ||
name 'CMAKE' | ||
values 'cmake351' | ||
} | ||
} | ||
exclude { | ||
axis { | ||
name 'ROOT' | ||
values 'root618' | ||
} | ||
axis { | ||
name 'CMAKE' | ||
values 'cmake36' | ||
} | ||
} | ||
} | ||
stages { | ||
stage('Build') { | ||
environment { | ||
WORKSPACE_JENKINS=sh(returnStdout: true, script: "echo $WORKSPACE | sed --expression='s/r\\/j/r\\/www\\/j/g'").trim() | ||
} | ||
steps { | ||
echo "Building..\nStarting build job: <${JOB_NAME}> in workspace: <${WORKSPACE}> for ${ROOT}, ${GCC}, ${BOOST}, ${OS}, ${CMAKE}" | ||
echo "Jenkins workspace: <${WORKSPACE_JENKINS}>" | ||
dir("jenkins/${env.OS},${env.CMAKE},${env.GCC},${env.ROOT}") { | ||
sh label: 'docker-build', script: 'docker-compose build' | ||
} | ||
sh label: 'build framework', script: "docker-compose -f jenkins/${OS},${CMAKE},${GCC},${ROOT}/docker-compose.yml run --rm ${OS}${CMAKE}${GCC}${ROOT}_unpacker2" | ||
} | ||
} | ||
|
||
stage('Test') { | ||
steps { | ||
echo 'Testing..' | ||
sh label: 'mkdir', script: 'mkdir -p CPPCheckRaport' | ||
sh label: 'cppcheck', script: 'cppcheck --inline-suppr --enable=all --inconclusive --xml --suppress="*:${WORKSPACE}/build/*.*" --xml-version=2 ${WORKSPACE} 2> CPPCheckRaport/cppcheck.xml' | ||
} | ||
} | ||
stage('Deploy') { | ||
steps { | ||
echo 'Deploying....' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
cleanWs() | ||
} | ||
} | ||
} |
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.