some more changes to receiver

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@696 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2013-11-15 12:26:46 +00:00
parent ff856d91a4
commit 3b3e4eb8c3
4 changed files with 36 additions and 20 deletions

View File

@ -172,7 +172,7 @@ int singlePhotonFilter::initTree(){
//file
myFile = new TFile(savefilename, "RECREATE"); /** later return error if it exists */
cout<<"File created: "<<savefilename<<endl;
//tree
char c1[10],c2[10],cdata[100];
sprintf(c1,"%d",nClusterX);
@ -235,9 +235,9 @@ int singlePhotonFilter::closeFile(){
if (myFile){
myFile = myTree->GetCurrentFile();
myFile->Close();
delete myFile;
myFile = NULL;//delete myFile;
}
delete myTree;
myTree = NULL;//delete myTree;
}
#else
if(myFile)
@ -536,12 +536,14 @@ void singlePhotonFilter::findHits(){
isData += 4096;
myData += 2048;
/*
if ((clusteriframe%1000 == 0) && (clusteriframe != 0) ){
cout << dec << "Frame: " << clusteriframe << " Hit Avg over last frames: " <<
nHitStat->Mean() << " .. "<<nHitStat->StandardDeviation() << endl;
cout<<"writing "<< nHitsPerFrame << " hits to file" << endl;
}
*/
}