|
@@ -5,10 +5,13 @@
|
|
|
#include <TString.h>
|
|
|
#include <TFile.h>
|
|
|
#include <TTree.h>
|
|
|
+#include <TDatabasePDG.h>
|
|
|
+#include <TParticlePDG.h>
|
|
|
|
|
|
#include <qaEvent.h>
|
|
|
#include <qaParticle.h>
|
|
|
#include <Utility.h>
|
|
|
+#include <qaWriter_manager.h>
|
|
|
|
|
|
// AnalysisTree headers
|
|
|
#include <AnalysisTree/Configuration.hpp>
|
|
@@ -17,7 +20,7 @@
|
|
|
#include <AnalysisTree/Detector.hpp>
|
|
|
#include <AnalysisTree/Matching.hpp>
|
|
|
|
|
|
-class qaWriter_analysistree2
|
|
|
+class qaWriter_analysistree2 : virtual public qaWriter_manager
|
|
|
{
|
|
|
private:
|
|
|
/* data */
|
|
@@ -28,13 +31,17 @@ private:
|
|
|
AnalysisTree::EventHeader *fEvent;
|
|
|
AnalysisTree::Particles *fParticles;
|
|
|
|
|
|
+ std::string str_event_branch;
|
|
|
+ std::string str_particles_branch;
|
|
|
+
|
|
|
int iB, iPhiRp, icharge;
|
|
|
|
|
|
bool isInit;
|
|
|
public:
|
|
|
+ qaWriter_analysistree2();
|
|
|
virtual ~qaWriter_analysistree2();
|
|
|
|
|
|
- virtual void Init(std::string filename, std::string treename);
|
|
|
+ virtual void Init(std::string filename, std::string treename, std::string system, float sqrtSnn);
|
|
|
virtual void WriteEvent(qaEvent* event);
|
|
|
virtual void WriteParticle(qaParticle* particle);
|
|
|
virtual void WriteTree();
|