Index: trunk/src/EicSmearFormatWriter.h
===================================================================
--- trunk/src/EicSmearFormatWriter.h (revision 448)
+++ trunk/src/EicSmearFormatWriter.h (revision 449)
@@ -1,60 +1,61 @@
//==============================================================================
// EicSmearFormatWriter.h
//
// Copyright (C) 2021 Tobias Toll and Thomas Ullrich
//
// This file is part of Sartre.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation.
// This program is distributed in the hope that it will be useful,
// but without any warranty; without even the implied warranty of
// merchantability or fitness for a particular purpose. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program. If not, see .
//
// Author: Thomas Ullrich
-// $Date$
-// $Author$
+// Last update:
+// $Date:$
+// $Author:$
//==============================================================================
#ifndef EicSmearFormatWriter_h
#define EicSmearFormatWriter_h
#include
#include
#include
#include "TLorentzVector.h"
using namespace std;
class Event;
class EicSmearFormatWriter {
public:
EicSmearFormatWriter();
~EicSmearFormatWriter();
bool open(string, bool breakupOn = false);
bool writeEvent(Event*);
void close();
bool hasOpenFile() const;
string filename() const;
private:
bool writeHeader();
void writeKine(TLorentzVector&);
private:
bool mBreakupIsOn;
bool mFileOpen;
string mFilename;
ofstream mStream;
};
inline bool EicSmearFormatWriter::hasOpenFile() const {return mFileOpen;}
inline string EicSmearFormatWriter::filename() const {return mFilename;}
#endif