diff --git a/slsDetectorSoftware/eigerDetectorServer/svnInfoEiger.h b/slsDetectorSoftware/eigerDetectorServer/svnInfoEiger.h index 68c8464fe..d2942cdbd 100644 --- a/slsDetectorSoftware/eigerDetectorServer/svnInfoEiger.h +++ b/slsDetectorSoftware/eigerDetectorServer/svnInfoEiger.h @@ -2,10 +2,10 @@ #define SVNURL "file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware/eigerDetectorServer" //#define SVNREPPATH "" #define SVNREPUUID "951219d9-93cf-4727-9268-0efd64621fa3" -//#define SVNREV 0x660 +//#define SVNREV 0x670 //#define SVNKIND "" //#define SVNSCHED "" -#define SVNAUTH "l_maliakal_d" -#define SVNREV 0x660 -#define SVNDATE 0x20130904 +#define SVNAUTH "johnson_i" +#define SVNREV 0x670 +#define SVNDATE 0x20130913 // diff --git a/slsDetectorSoftware/gotthardDetectorServer/svnInfoGotthard.h b/slsDetectorSoftware/gotthardDetectorServer/svnInfoGotthard.h index f15897329..a9be83071 100644 --- a/slsDetectorSoftware/gotthardDetectorServer/svnInfoGotthard.h +++ b/slsDetectorSoftware/gotthardDetectorServer/svnInfoGotthard.h @@ -2,10 +2,10 @@ #define SVNURL "file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware/gotthardDetectorServer" //#define SVNREPPATH "" #define SVNREPUUID "951219d9-93cf-4727-9268-0efd64621fa3" -//#define SVNREV 0x659 +//#define SVNREV 0x676 //#define SVNKIND "" //#define SVNSCHED "" #define SVNAUTH "l_maliakal_d" -#define SVNREV 0x659 -#define SVNDATE 0x20130829 +#define SVNREV 0x676 +#define SVNDATE 0x20131002 // diff --git a/slsDetectorSoftware/moenchDetectorServer/svnInfoMoench.h b/slsDetectorSoftware/moenchDetectorServer/svnInfoMoench.h index e38e6a6b8..eb90b342a 100644 --- a/slsDetectorSoftware/moenchDetectorServer/svnInfoMoench.h +++ b/slsDetectorSoftware/moenchDetectorServer/svnInfoMoench.h @@ -2,10 +2,10 @@ #define SVNURL "file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware/moenchDetectorServer" //#define SVNREPPATH "" #define SVNREPUUID "951219d9-93cf-4727-9268-0efd64621fa3" -//#define SVNREV 0x659 +//#define SVNREV 0x673 //#define SVNKIND "" //#define SVNSCHED "" -#define SVNAUTH "l_maliakal_d" -#define SVNREV 0x659 -#define SVNDATE 0x20130829 +#define SVNAUTH "bergamaschi" +#define SVNREV 0x673 +#define SVNDATE 0x20130918 // diff --git a/slsDetectorSoftware/mythenDetectorServer/svnInfoMythen.h b/slsDetectorSoftware/mythenDetectorServer/svnInfoMythen.h index 4b49412b7..260cb1159 100644 --- a/slsDetectorSoftware/mythenDetectorServer/svnInfoMythen.h +++ b/slsDetectorSoftware/mythenDetectorServer/svnInfoMythen.h @@ -2,10 +2,10 @@ #define SVNURL "file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware/mythenDetectorServer" //#define SVNREPPATH "" #define SVNREPUUID "951219d9-93cf-4727-9268-0efd64621fa3" -//#define SVNREV 0x659 +//#define SVNREV 0x660 //#define SVNKIND "" //#define SVNSCHED "" #define SVNAUTH "l_maliakal_d" -#define SVNREV 0x659 -#define SVNDATE 0x20130829 +#define SVNREV 0x660 +#define SVNDATE 0x20130904 // diff --git a/slsDetectorSoftware/slsDetector/slsDetectorUtils.cpp b/slsDetectorSoftware/slsDetector/slsDetectorUtils.cpp index 3f12a8283..b77575f95 100644 --- a/slsDetectorSoftware/slsDetector/slsDetectorUtils.cpp +++ b/slsDetectorSoftware/slsDetector/slsDetectorUtils.cpp @@ -87,8 +87,8 @@ void slsDetectorUtils::acquire(int delflag){ eclog=new enCalLogClass(this); - - + + setJoinThread(0); positionFinished(0); diff --git a/slsDetectorSoftware/slsDetector/svnInfoLib.h b/slsDetectorSoftware/slsDetector/svnInfoLib.h index 15ce9b331..237386fbb 100644 --- a/slsDetectorSoftware/slsDetector/svnInfoLib.h +++ b/slsDetectorSoftware/slsDetector/svnInfoLib.h @@ -2,10 +2,10 @@ #define SVNURLLIB "file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware" //#define SVNREPPATH "" #define SVNREPUUIDLIB "951219d9-93cf-4727-9268-0efd64621fa3" -//#define SVNREV 0x659 +//#define SVNREV 0x691 //#define SVNKIND "" //#define SVNSCHED "" #define SVNAUTHLIB "l_maliakal_d" -#define SVNREVLIB 0x659 -#define SVNDATELIB 0x20130829 +#define SVNREVLIB 0x691 +#define SVNDATELIB 0x20131114 // diff --git a/slsDetectorSoftware/slsDetectorAnalysis/singlePhotonFilter.cpp b/slsDetectorSoftware/slsDetectorAnalysis/singlePhotonFilter.cpp index cf77aee6b..4b53c9bde 100644 --- a/slsDetectorSoftware/slsDetectorAnalysis/singlePhotonFilter.cpp +++ b/slsDetectorSoftware/slsDetectorAnalysis/singlePhotonFilter.cpp @@ -5,6 +5,7 @@ #include "singlePhotonFilter.h" #include + #define BUF_SIZE (16*1024*1024) //16mb @@ -113,7 +114,12 @@ singlePhotonFilter::~singlePhotonFilter(){ int singlePhotonFilter::enableCompression(bool enable){ //#ifdef VERBOSE - cout << "Compression set to " << enable << endl; + cout << "Compression set to " << enable; +#ifdef MYROOT + cout << " with root" << endl; +#else + cout << " without root" << endl; +#endif //#endif if(enable){ threads_mask = 0x0; @@ -136,7 +142,7 @@ int singlePhotonFilter::enableCompression(bool enable){ for(int i=0; iBranch("iframe",&myPhotonHit->iframe,"iframe/I"); myTree->Branch("x",&myPhotonHit->x,"x/I"); myTree->Branch("y",&myPhotonHit->y,"y/I"); @@ -198,11 +203,14 @@ int singlePhotonFilter::initTree(){ int singlePhotonFilter::writeToFile(){ -#ifdef MYROOT - if((myTree) && (myFile)) - myTree->Write(); -#else if(nHitsPerFrame){ +#ifdef MYROOT + if((myTree) && (myFile)){ + myTree->Write(); + return OK; + }else + cout << "ERROR: Could not write to " << nHitsPerFrame << " hits to file as file or tree doesnt exist" << endl; +#else if(myFile){ /*cout<<"writing "<< nHitsPerFrame << " hits to file" << endl;*/ fwrite((void*)(photonHitList), 1, sizeof(single_photon_hit)*nHitsPerFrame, myFile); @@ -210,9 +218,9 @@ int singlePhotonFilter::writeToFile(){ //cout<<"Exiting writeToFile"<