- Timestamp:
- 04/08/03 10:13:47 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1918 r1920 1 1 -*-*- END OF LINE -*-*- 2 3 2003/04/08: Nicola Galante and Antonio Stamerra 4 5 * mhist/MHMcTriggerLvl2.[h,cc] 6 - New class added (histograms for the MMcTriggerLvl2 class) 7 8 * mhist/Makefile 9 - Added MHMcTrigggerLvl2 in SRCFILES 10 11 * manalysis/Makefile 12 - Reintroduced MMcTriggerLvl2 and MMcTriggerLvl2Calc 13 (they were removed!!) 14 15 * manalysis/MMcTriggerLvl2.h 16 - 'const' added in inline functions Get**** 17 18 * manalysis/MMcTriggerLvl2Calc.cc 19 - added call to Fill method of MHMcTriggerLvl2 2 20 3 21 -
trunk/MagicSoft/Mars/macros/dohtml.C
r1912 r1920 80 80 html.Convert("starplot.C", "MARS - Plots data from a STAR-file into a mars histogram"); 81 81 html.Convert("testenv.C", "MARS - Example to use TEnv and Mars Eventloops"); 82 html.Convert("triglvl2.C", "MARS - Example to use MMcTriggerLvl2 class, using filters and creating histograms"); 82 83 } -
trunk/MagicSoft/Mars/macros/triglvl2.C
r1782 r1920 2 2 // Macro to use the class MMcTriggerLvl2, which calculates the 3 3 // 2nd level trigger (L2T) selection parameters. 4 // Filters to select events using these parameter are also created. 4 // Filters to select events using these parameter and 5 // histograms with selection variables distributions are also created. 5 6 // 6 7 // Inputs: … … 22 23 // An instance of the class MMcTriggerLvl2 is created and added to the 23 24 // parameter list 24 MMcTriggerLvl2 cell; 25 MMcTriggerLvl2 cell; 25 26 parlist.AddToList(&cell); 26 27 … … 29 30 cell.SetCompactNN(3); 30 31 // USER: --^ 32 31 33 // 32 34 // A filter to select events using the L2T parameters is created 33 35 // 34 // MF lvl2filter("MMcTriggerLvl2.fLutPseudoSize > 6"); 35 MF lvl2filter("MMcTriggerLvl2.fSizeBiggerCell > 16"); 36 MF lvl2filter("MMcTriggerLvl2.fLutPseudoSize > 8"); 37 // MF lvl2filter("MMcTriggerLvl2.fSizeBiggerCell > 16"); 38 36 39 // 37 40 // A second filter is created using the class MFTriggerLvl2 … … 43 46 // A selection on the number and energy of the events 44 47 // 45 MF energyfilter("MMcEvt.fEnergy > 10 ");48 MF energyfilter("MMcEvt.fEnergy > 100"); 46 49 MFEventSelector selector; 47 50 selector.SetNumSelectEvts(4000); … … 69 72 70 73 // 74 // Task to calculate and plot the effective area 75 // 76 MMcCollectionAreaCalc effi; 77 tasklist.AddToList(&effi); 78 79 // 80 // The filter list selects events for the effective area calculation 81 // 82 effi.SetFilter(&flist); 83 84 // 85 // The filter list is added to the task list 86 // 87 tasklist.AddToList(&flist); 88 89 // 71 90 // The task to calculate the L2T parameter is added to the task list 72 91 // 73 92 MMcTriggerLvl2Calc fill("MMcTriggerLvl2","MMcTriggerLvl2"); 74 93 tasklist.AddToList(&fill); 75 76 //77 // Task to calculate and plot the effective area78 //79 MMcCollectionAreaCalc effi;80 tasklist.AddToList(&effi);81 //82 // The filter list selects events for the effective area calculation83 //84 effi.SetFilter(&flist);85 86 //87 // The filter list is added to the task list88 //89 tasklist.AddToList(&flist);90 94 91 95 // … … 101 105 magic.SetProgressBar(&bar); 102 106 103 if (!magic.PreProcess())104 return;105 106 107 if (!magic.Eventloop()) 107 108 return; 108 109 109 110 tasklist.PrintStatistics(); 111 110 112 // 111 113 // Now the histogram we wanted to get out of the data is … … 114 116 parlist.FindObject("MHMcCollectionArea")->DrawClone(); 115 117 116 magic.PostProcess(); 118 parlist.FindObject("MHMcTriggerLvl2")->DrawClone("lps"); 119 parlist.FindObject("MHMcTriggerLvl2")->DrawClone(); 117 120 121 // Returns histogram of the class MHMcTriggerLvl2 122 //parlist.FindObject("MHMcTriggerLvl2")->GetHistByName("hfPseudoSize"); 123 124 125 118 126 } -
trunk/MagicSoft/Mars/manalysis/AnalysisLinkDef.h
r1917 r1920 62 62 #pragma link C++ class MParameterD+; 63 63 64 #pragma link C++ class MMcTriggerLvl2+; 65 #pragma link C++ class MMcTriggerLvl2Calc+; 66 64 67 #pragma link C++ class MCT1SupercutsCalc+; 65 68 -
trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2.cc
r1782 r1920 254 254 fSizeBiggerCell = GetCellNumberFired(CalcBiggerFiredCell()); 255 255 256 257 256 } 258 257 -
trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2.h
r1782 r1920 51 51 void SetCompactNN(Int_t neighpix) {fCompactNN=neighpix;} 52 52 53 Int_t GetPseudoSize() {return fPseudoSize;}54 Int_t GetLutPseudoSize() {return fLutPseudoSize;}55 Int_t GetSizeBiggerCell() {return fSizeBiggerCell;}56 Int_t GetCompactNN() {return fCompactNN;}53 Int_t GetPseudoSize() const {return fPseudoSize;} 54 Int_t GetLutPseudoSize() const {return fLutPseudoSize;} 55 Int_t GetSizeBiggerCell() const {return fSizeBiggerCell;} 56 Int_t GetCompactNN() const {return fCompactNN;} 57 57 58 58 Int_t GetCellNumberFired(int cell); -
trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2Calc.cc
r1782 r1920 37 37 #include "MMcTriggerLvl2Calc.h" 38 38 #include "MMcTriggerLvl2.h" 39 39 #include "MHMcTriggerLvl2.h" 40 40 41 41 #include "MParList.h" … … 47 47 #include "MMcRunHeader.hxx" 48 48 49 #include <TH1.h>50 49 51 50 ClassImp(MMcTriggerLvl2Calc); … … 61 60 fTitle = title ? title : "Task to Fill the MMcTriggerLvl2 object"; 62 61 63 // AddToBranchList("MMcEvt.fEnergy");64 //AddToBranchList(Form("%s.fNumFirstLevel", "MMcTrig"));65 //AddToBranchList(Form("%s.fPixelsFirst[73][4]", "MMcTrig"));66 67 68 // h1 = new TH1F("h1","h1",30,0,30);69 62 } 70 63 … … 100 93 } 101 94 95 fMHMcTriggerLvl2 = (MHMcTriggerLvl2*)pList->FindCreateObj("MHMcTriggerLvl2"); 96 if (!fMHMcTriggerLvl2) 97 { 98 *fLog << err << dbginf << "MHMcTriggerLvl2 not found... exit." << endl; 99 return kFALSE; 100 } 101 102 102 // Check if the variable fCompactNN has been correctly set; 103 103 // accepted values for fCompactNN are (up to now) 2 and 3. … … 125 125 126 126 fMMcTriggerLvl2->SetLv1(fMcTrig); 127 127 128 fMMcTriggerLvl2->Calc(); 129 130 fMHMcTriggerLvl2->Fill(fMMcTriggerLvl2); 128 131 129 132 //fMMcTriggerLvl2->DrawLv1(); 130 133 //fMMcTriggerLvl2->DrawCell(fMMcTriggerLvl2->GetBiggerFiredCell() ); 131 134 //fMMcTriggerLvl2->Print(); 132 133 // h1->Fill(fMMcTriggerLvl2->GetLutPseudoSize() );134 135 135 136 136 return kTRUE; … … 146 146 { 147 147 148 // *fLog << inf << "Filling..." << endl;149 150 // h1->Draw();151 152 148 return kTRUE; 153 149 } -
trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2Calc.h
r1782 r1920 12 12 13 13 class MMcTriggerLvl2; 14 class MHMcTriggerLvl2; 14 15 15 16 class TH1F; … … 22 23 23 24 MMcTriggerLvl2 *fMMcTriggerLvl2; 25 MHMcTriggerLvl2 *fMHMcTriggerLvl2; 24 26 25 27 public: -
trunk/MagicSoft/Mars/manalysis/Makefile
r1917 r1920 69 69 MNewImageParCalc.cc \ 70 70 MParameters.cc \ 71 MMcTriggerLvl2.cc \ 72 MMcTriggerLvl2Calc.cc \ 71 73 MCT1SupercutsCalc.cc 72 74 -
trunk/MagicSoft/Mars/mhist/HistLinkDef.h
r1877 r1920 57 57 #pragma link C++ class MHMcCT1CollectionArea+; 58 58 59 #pragma link C++ class MHMcTriggerLvl2+; 60 59 61 #pragma link C++ class MHNewImagePar+; 60 62 -
trunk/MagicSoft/Mars/mhist/Makefile
r1875 r1920 71 71 MHNewImagePar.cc \ 72 72 MHSigmaTheta.cc \ 73 MHMcCT1CollectionArea.cc 73 MHMcCT1CollectionArea.cc \ 74 MHMcTriggerLvl2.cc 74 75 75 76 SRCS = $(SRCFILES)
Note:
See TracChangeset
for help on using the changeset viewer.