Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:24:57

0001 #ifndef TreeMatrixCalib_h
0002 #define TreeMatrixCalib_h
0003 
0004 // includes
0005 #include "CommonTools/UtilAlgos/interface/TFileService.h"
0006 #include "FWCore/ServiceRegistry/interface/Service.h"
0007 #include "TROOT.h"
0008 #include "TSystem.h"
0009 #include "TFile.h"
0010 #include "TTree.h"
0011 
0012 class TFile;
0013 class TTree;
0014 
0015 class G3EventProxy;
0016 
0017 class TreeMatrixCalib {
0018 public:
0019   TreeMatrixCalib(const char* filename = "tb.root");
0020   ~TreeMatrixCalib() = default;
0021 
0022   void fillInfo(int run,
0023                 int eve,
0024                 int xnum,
0025                 int maxX,
0026                 int nomX,
0027                 int nextX,
0028                 int xeta,
0029                 int xphi,
0030                 int tbm,
0031                 double xx,
0032                 double yy,
0033                 double ecalx,
0034                 double ecaly,
0035                 double sx,
0036                 double sy,
0037                 double qx,
0038                 double qy,
0039                 double tdcoff,
0040                 int allm,
0041                 double amp[],
0042                 int cry[]);
0043 
0044   void store();
0045 
0046 private:
0047   TTree* myTree_;
0048 
0049   // general info
0050   int myEvent, myRun;
0051   int myXtalSM, myXtalEta, myXtalPhi;
0052   int myNominalXtalSM, myNextXtalSM;
0053   int myTbMoving;
0054   int myMaxEneXtal;
0055 
0056   // amplitude
0057   double myAmplit[49];
0058 
0059   // crystals
0060   int myCrystal[49];
0061 
0062   // hodoscope infos
0063   double myHodoX, myHodoY;
0064   double myHodoSlopeX, myHodoSlopeY;
0065   double myHodoQualityX, myHodoQualityY;
0066 
0067   // ecal position
0068   double myCaloX, myCaloY;
0069 
0070   // tdc info
0071   double myTdcOffset;
0072 
0073   // all matrix
0074   int myAllMatrix;
0075 };
0076 
0077 #endif