Attachment 'TempRootTreeGenerator.hh'

Download

   1 /* Processor which generate the event tree*/
   2 
   3 #ifndef TEMPROOTTREEGENERATOR_h
   4 #define TEMPROOTTREEGENERATOR_h 1
   5 #include "marlin/Processor.h"
   6 #include "TFile.h"
   7 #include "TTree.h"
   8 #include <map>
   9 
  10 using namespace marlin ;
  11 
  12 namespace CALICE {
  13 
  14 /** Class to process Labview raw 
  15   * @author: Shaojun Lu DESY
  16   * @date Nov 15 2012
  17   *
  18   */
  19 
  20 
  21   class TempRootTreeGenerator : public Processor{
  22     
  23   public:
  24     virtual Processor* newProcessor() { return new TempRootTreeGenerator;}
  25     TempRootTreeGenerator();
  26     ~TempRootTreeGenerator();
  27     void init();  
  28     void processEvent( LCEvent * evt ) ;
  29     void end();
  30     void registerBranches( TTree* hostTree );
  31     void FillVariable(LCEvent* evt);
  32     
  33   protected:
  34     std::string _inputColName;
  35     std::string _prefix;
  36 
  37     TFile *_rootFile;
  38     std::string _rootFileName;
  39 
  40     TTree *_treeTempSensorBlock;
  41 
  42     const static unsigned int MAXPORTS  = 1000; /*should be big enough for all detectors!*/
  43 
  44     struct
  45     {
  46       int nLayers;
  47       float T1[MAXPORTS];
  48       float T2[MAXPORTS];
  49       float T3[MAXPORTS];
  50       float T4[MAXPORTS];
  51       float T5[MAXPORTS];
  52       float T6[MAXPORTS];
  53       float TDIF[MAXPORTS];
  54       float TPWR[MAXPORTS];
  55     } _hFill;
  56 
  57    
  58 
  59   private:
  60 
  61     static std::map<TTree*,TempRootTreeGenerator*> _treeFillerMap;
  62     static std::map<TTree*,TempRootTreeGenerator*> _treeOwnerMap;
  63     static std::map<TFile*,TempRootTreeGenerator*> _fileOwnerMap;
  64 
  65     static const double INVALID;
  66 
  67     int nLayers;
  68     int runNumber;
  69     int eventNumber;
  70     int Timestamp;
  71   };
  72 }
  73 #endif
  74 

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2015-12-04 14:25:26, 107.6 KB) [[attachment:Ahc2HardwareConnection.png]]
  • [get | view] (2015-11-16 12:20:59, 65.8 KB) [[attachment:August_Mapping.txt]]
  • [get | view] (2015-08-25 17:58:29, 3.6 KB) [[attachment:EUDAQEventBuilder.xml]]
  • [get | view] (2015-08-25 18:01:29, 6.1 KB) [[attachment:EUDAQMarlin]]
  • [get | view] (2015-08-25 18:02:31, 2.3 KB) [[attachment:EUDAQTemperature.xml]]
  • [get | view] (2015-08-18 10:01:22, 2.3 KB) [[attachment:EUDAQTemperatureReading.xml]]
  • [get | view] (2015-08-04 15:30:18, 960.8 KB) [[attachment:EUDAQUserManual.pdf]]
  • [get | view] (2015-08-25 17:58:04, 46.0 KB) [[attachment:EventBuilding.png]]
  • [get | view] (2015-12-14 14:31:16, 45.3 KB) [[attachment:GainJuly.png]]
  • [get | view] (2015-11-16 12:19:19, 63.3 KB) [[attachment:July_Mapping.txt]]
  • [get | view] (2016-04-07 13:08:15, 805.6 KB) [[attachment:MIPJuly.png]]
  • [get | view] (2016-04-07 13:13:08, 686.5 KB) [[attachment:MIPModule3.png]]
  • [get | view] (2015-12-04 14:10:09, 91.1 KB) [[attachment:ModuleDescription_LeftReadout.txt]]
  • [get | view] (2015-12-04 14:10:22, 31.0 KB) [[attachment:ModuleDescription_RightReadout.txt]]
  • [get | view] (2015-12-04 14:09:55, 31.1 KB) [[attachment:ModuleDescription_TopReadout.txt]]
  • [get | view] (2015-12-04 15:26:54, 12.2 KB) [[attachment:PedestalJuly.png]]
  • [get | view] (2015-08-18 10:01:57, 6.2 KB) [[attachment:TempRootTreeGenerator.cc]]
  • [get | view] (2015-08-18 10:01:46, 1.5 KB) [[attachment:TempRootTreeGenerator.hh]]
  • [get | view] (2015-08-18 10:02:14, 70.4 KB) [[attachment:Temp_Average__ALL_allGeV_TimeStamp.png]]
  • [get | view] (2016-04-05 09:30:01, 34.1 KB) [[attachment:dataflow.png]]
  • [get | view] (2016-04-06 15:31:08, 15.7 KB) [[attachment:steering_Electron_SPSJuly.xml]]
  • [get | view] (2016-08-02 13:01:38, 18.5 KB) [[attachment:steering_Muon_SPSJuly.xml]]
  • [get | view] (2016-04-06 15:31:00, 15.5 KB) [[attachment:steering_Pion_SPSJuly.xml]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.