Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #539 from JeffersonLab/development
Browse files Browse the repository at this point in the history
preparing production tag for RG-B pass1
  • Loading branch information
raffaelladevita authored Jun 10, 2020
2 parents f24b1aa + 05d4a22 commit 98dcc68
Show file tree
Hide file tree
Showing 87 changed files with 1,959 additions and 981 deletions.
14 changes: 7 additions & 7 deletions common-tools/clas-analysis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-analysis</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
<packaging>jar</packaging>

<parent>
<groupId>org.jlab.clas</groupId>
<artifactId>clas12rec</artifactId>
<relativePath>../../parent/pom.xml</relativePath>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</parent>

<build>
Expand All @@ -30,31 +30,31 @@
<dependency>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-utils</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-physics</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-io</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-geometry</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-detector</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</dependency>

<dependency>
Expand Down
10 changes: 5 additions & 5 deletions common-tools/clas-detector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-detector</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
<packaging>jar</packaging>

<parent>
<groupId>org.jlab.clas</groupId>
<artifactId>clas12rec</artifactId>
<relativePath>../../parent/pom.xml</relativePath>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</parent>

<build>
Expand All @@ -30,7 +30,7 @@
<dependency>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-utils</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</dependency>

<dependency>
Expand All @@ -42,13 +42,13 @@
<dependency>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-io</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-geometry</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,49 +100,52 @@ public CodaEventDecoder getCodaEventDecoder() {
public void initEvent(DataEvent event){

if(event instanceof EvioDataEvent){
try {

dataList = codaDecoder.getDataEntries( (EvioDataEvent) event);

//dataList = new ArrayList<DetectorDataDgtz>();
//-----------------------------------------------------------------------------
// This part reads the BITPACKED FADC data from tag=57638 Format (cmcms)
// Then unpacks into Detector Digigitized data, and appends to existing buffer
// Modified on 9/5/2018
//-----------------------------------------------------------------------------

List<FADCData> fadcPacked = codaDecoder.getADCEntries((EvioDataEvent) event);

/*for(FADCData data : fadcPacked){
EvioDataEvent evioEvent = (EvioDataEvent) event;
if(evioEvent.getHandler().getStructure()!=null){
try {

dataList = codaDecoder.getDataEntries( (EvioDataEvent) event);

//dataList = new ArrayList<DetectorDataDgtz>();
//-----------------------------------------------------------------------------
// This part reads the BITPACKED FADC data from tag=57638 Format (cmcms)
// Then unpacks into Detector Digigitized data, and appends to existing buffer
// Modified on 9/5/2018
//-----------------------------------------------------------------------------

List<FADCData> fadcPacked = codaDecoder.getADCEntries((EvioDataEvent) event);

/*for(FADCData data : fadcPacked){
data.show();
}*/

if(fadcPacked!=null){
List<DetectorDataDgtz> fadcUnpacked = FADCData.convert(fadcPacked);
dataList.addAll(fadcUnpacked);
}
// END of Bitpacked section
//-----------------------------------------------------------------------------
//this.decoderDebugMode = 4;
if(this.decoderDebugMode>0){
System.out.println("\n>>>>>>>>> RAW decoded data");
for(DetectorDataDgtz data : dataList){
System.out.println(data);
}*/

if(fadcPacked!=null){
List<DetectorDataDgtz> fadcUnpacked = FADCData.convert(fadcPacked);
dataList.addAll(fadcUnpacked);
}
}
int runNumberCoda = codaDecoder.getRunNumber();
this.setRunNumber(runNumberCoda);

detectorDecoder.translate(dataList);
detectorDecoder.fitPulses(dataList);
if(this.decoderDebugMode>0){
System.out.println("\n>>>>>>>>> TRANSLATED data");
for(DetectorDataDgtz data : dataList){
System.out.println(data);
// END of Bitpacked section
//-----------------------------------------------------------------------------
//this.decoderDebugMode = 4;
if(this.decoderDebugMode>0){
System.out.println("\n>>>>>>>>> RAW decoded data");
for(DetectorDataDgtz data : dataList){
System.out.println(data);
}
}
int runNumberCoda = codaDecoder.getRunNumber();
this.setRunNumber(runNumberCoda);

detectorDecoder.translate(dataList);
detectorDecoder.fitPulses(dataList);
if(this.decoderDebugMode>0){
System.out.println("\n>>>>>>>>> TRANSLATED data");
for(DetectorDataDgtz data : dataList){
System.out.println(data);
}
}
} catch (Exception e) {
e.printStackTrace();
}
} catch (Exception e) {
e.printStackTrace();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ public CodaEventDecoder(){
* @return
*/
public List<DetectorDataDgtz> getDataEntries(EvioDataEvent event){

int event_size = event.getHandler().getStructure().getByteBuffer().array().length;
if(event_size>600*1024){
System.out.println("error: >>>> EVENT SIZE EXCEEDS 600 kB");
return new ArrayList<DetectorDataDgtz>();
}

List<DetectorDataDgtz> rawEntries = new ArrayList<DetectorDataDgtz>();
List<EvioTreeBranch> branches = this.getEventBranches(event);
for(EvioTreeBranch branch : branches){
Expand Down
10 changes: 5 additions & 5 deletions common-tools/clas-eventmerger/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>clas-eventmerger</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
<packaging>jar</packaging>

<parent>
<groupId>org.jlab.clas</groupId>
<artifactId>clas12rec</artifactId>
<relativePath>../../parent/pom.xml</relativePath>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</parent>

<build>
Expand All @@ -29,19 +29,19 @@
<dependency>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-utils</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-io</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-geometry</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</dependency>

<dependency>
Expand Down
4 changes: 2 additions & 2 deletions common-tools/clas-geometry/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-geometry</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
<packaging>jar</packaging>

<parent>
<groupId>org.jlab.clas</groupId>
<artifactId>clas12rec</artifactId>
<relativePath>../../parent/pom.xml</relativePath>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</parent>

<build>
Expand Down
6 changes: 3 additions & 3 deletions common-tools/clas-io/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-io</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
<packaging>jar</packaging>

<parent>
<groupId>org.jlab.clas</groupId>
<artifactId>clas12rec</artifactId>
<relativePath>../../parent/pom.xml</relativePath>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</parent>

<build>
Expand Down Expand Up @@ -75,7 +75,7 @@
<dependency>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-utils</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,18 @@ public class EvioDataEventHandler {
public EvioDataEventHandler(byte[] buffer, ByteOrder b_order){
evioBuffer = ByteBuffer.wrap(buffer);
evioBuffer.order(b_order);
try {
structure = new EvioCompactStructureHandler(evioBuffer,DataType.BANK);
//eventNodes = structure.getChildNodes();
eventNodes = structure.getNodes();
} catch (EvioException ex) {
Logger.getLogger(EvioDataEvent.class.getName()).log(Level.SEVERE, null, ex);
if(buffer.length>500*1024){
System.out.println("error >>> evio event hadler : buffer size ecceeds 500 kB");
structure = null;
eventNodes = null;
} else {
try {
structure = new EvioCompactStructureHandler(evioBuffer,DataType.BANK);
//eventNodes = structure.getChildNodes();
eventNodes = structure.getNodes();
} catch (EvioException ex) {
Logger.getLogger(EvioDataEvent.class.getName()).log(Level.SEVERE, null, ex);
}
}
//this.list();
}
Expand Down
8 changes: 4 additions & 4 deletions common-tools/clas-jcsg/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-jcsg</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
<packaging>jar</packaging>

<parent>
<groupId>org.jlab.clas</groupId>
<artifactId>clas12rec</artifactId>
<relativePath>../../parent/pom.xml</relativePath>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</parent>

<build>
Expand Down Expand Up @@ -40,12 +40,12 @@
<dependency>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-geometry</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-detector</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>java3d</groupId>
Expand Down
4 changes: 2 additions & 2 deletions common-tools/clas-math/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-math</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
<packaging>jar</packaging>

<parent>
<groupId>org.jlab.clas</groupId>
<artifactId>clas12rec</artifactId>
<relativePath>../../parent/pom.xml</relativePath>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</parent>

<build>
Expand Down
4 changes: 2 additions & 2 deletions common-tools/clas-physics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.jlab.clas</groupId>
<artifactId>clas-physics</artifactId>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
<packaging>jar</packaging>
<build>
<plugins>
Expand All @@ -23,7 +23,7 @@
<groupId>org.jlab.clas</groupId>
<artifactId>clas12rec</artifactId>
<relativePath>../../parent/pom.xml</relativePath>
<version>6.5.6-SNAPSHOT</version>
<version>6.5.8-SNAPSHOT</version>
</parent>

</project>
Loading

0 comments on commit 98dcc68

Please sign in to comment.