Changeset 781
- Timestamp:
- 05/08/01 09:07:54 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
r723 r781 21 21 // 22 22 // $RCSfile: camera.cxx,v $ 23 // $Revision: 1.2 4$24 // $Author: magicsol$25 // $Date: 2001-0 4-06 16:48:09$23 // $Revision: 1.25 $ 24 // $Author: blanch $ 25 // $Date: 2001-05-08 08:07:54 $ 26 26 // 27 27 //////////////////////////////////////////////////////////////////////// … … 63 63 #include "MLons.hxx" 64 64 65 #include "MRawRunHeader.h" 65 66 #include "MRawEvtData.h" 66 67 #include "MRawEvtHeader.h" … … 784 785 // Prepare the raw data output 785 786 787 // Header Tree 788 789 MRawRunHeader **RunHeader; 790 791 RunHeader = new MRawRunHeader * [1]; 792 RunHeader[0] = new MRawRunHeader(); 793 786 794 // Header branch 787 795 … … 819 827 820 828 // create a Tree for the Header Event 821 TTree HeaderTree(" McHeaders","Monte Carlo Headerof Run");829 TTree HeaderTree("RunHeaders","Headers of Run"); 822 830 823 831 // define branches of Header Tree 824 832 825 833 char help[4]; 834 835 HeaderTree.Branch("MRawRunHeader","MRawRunHeader", 836 &RunHeader[0], bsize, split); 826 837 827 838 if(!Trigger_Loop && Write_McTrig){ … … 834 845 835 846 sprintf(help,"%i",i+1); 836 strcpy (branchname, "MMcTrigHeader ");847 strcpy (branchname, "MMcTrigHeader;"); 837 848 strcat (branchname, & help[0]); 838 849 strcat (branchname, "."); … … 851 862 852 863 sprintf(help,"%i",i+1); 853 strcpy (branchname, "MMcFadcHeader ");864 strcpy (branchname, "MMcFadcHeader;"); 854 865 strcat (branchname, & help[0]); 855 866 strcat (branchname, "."); … … 858 869 } 859 870 } 871 872 // Fill branches for MRawRunHeader 873 874 RunHeader[0]->SetMagicNumber(kMagicNumber); 875 RunHeader[0]->SetFormatVersion(2); 876 RunHeader[0]->SetSoftVersion((UShort_t) (VERSION*10)); 877 RunHeader[0]->SetRunType(256); 878 RunHeader[0]->SetRunNumber(0); 879 RunHeader[0]->SetNumSamples(0,FADC_SLICES); 880 860 881 861 882 // Fill branches for MMcTrigHeader … … 957 978 958 979 sprintf(help,"%i",i+1); 959 strcpy (branchname, "MMcTrig ");980 strcpy (branchname, "MMcTrig;"); 960 981 strcat (branchname, & help[0]); 961 982 strcat (branchname, "."); … … 970 991 971 992 sprintf(help,"%i",i+1); 972 strcpy (branchname, "MRawEvtHeader ");993 strcpy (branchname, "MRawEvtHeader;"); 973 994 strcat (branchname, & help[0]); 974 995 strcat (branchname, "."); … … 979 1000 980 1001 sprintf(help,"%i",i+1); 981 strcpy (branchname, "MRawEvtData ");1002 strcpy (branchname, "MRawEvtData;"); 982 1003 strcat (branchname, & help[0]); 983 1004 strcat (branchname, "."); … … 3217 3238 // 3218 3239 // $Log: not supported by cvs2svn $ 3240 // Revision 1.24 2001/04/06 16:48:09 magicsol 3241 // New camera version able to read the new format of the reflector output: 3242 // reflector 0.4 3243 // 3219 3244 // Revision 1.23 2001/03/28 16:13:41 blanch 3220 3245 // While feeling the MMcFadeHeader branch the boolean conditoin was wrong. It has … … 3269 3294 // 3270 3295 // $Log: not supported by cvs2svn $ 3296 // Revision 1.24 2001/04/06 16:48:09 magicsol 3297 // New camera version able to read the new format of the reflector output: 3298 // reflector 0.4 3299 // 3271 3300 // Revision 1.23 2001/03/28 16:13:41 blanch 3272 3301 // While feeling the MMcFadeHeader branch the boolean conditoin was wrong. It has
Note:
See TracChangeset
for help on using the changeset viewer.