Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:43

0001 #ifndef TB06Tree_h
0002 #define TB06Tree_h
0003 
0004 // includes
0005 #include <string>
0006 
0007 #include "TClonesArray.h"
0008 
0009 class TFile;
0010 class TTree;
0011 
0012 class G3EventProxy;
0013 
0014 class TB06Tree {
0015 public:
0016   //! ctor
0017   TB06Tree(const std::string &fileName = "TB06Tree.root", const std::string &treeName = "Analysis");
0018   //! dtor
0019   ~TB06Tree();
0020 
0021   void store(const int &tableIsMoving,
0022              const int &run,
0023              const int &event,
0024              const int &S6adc,
0025              const double &xhodo,
0026              const double &yhodo,
0027              const double &xslope,
0028              const double &yslope,
0029              const double &xquality,
0030              const double &yquality,
0031              const int &icMax,
0032              const int &ietaMax,
0033              const int &iphiMax,
0034              const double &beamEnergy,
0035              const double ampl[49]);
0036 
0037   void reset(float crystal[11][21]);
0038 
0039   void check();
0040 
0041 private:
0042   TFile *m_file;
0043   TTree *m_tree;
0044 
0045   TClonesArray *m_data;
0046   int m_dataSize;
0047 };
0048 
0049 #endif