-
Notifications
You must be signed in to change notification settings - Fork 3
Time dependent IPR graphs for NN cleaning #230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 11 commits
30456b8
9f753e2
a2b9f82
cc4f44b
e3fad03
d875f78
25645ef
dd27df0
5de6eb6
49f7939
d8316a7
c748ebb
cbe215e
f6c1726
7da5007
181f4b8
584da71
6d9e676
4bed9df
3ec7b90
5c0d897
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| #ifndef VIPRCALCULATOR_H | ||
| #define VIPRCALCULATOR_H | ||
|
|
||
| #include <VImageBaseAnalyzer.h> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, please use always |
||
| #include <VDB_CalibrationInfo.h> | ||
| #include <VSQLTextFileReader.h> | ||
|
|
||
| #include "TClonesArray.h" | ||
| #include "TFile.h" | ||
| #include "TH1F.h" | ||
| #include "TLeaf.h" | ||
| #include "TMath.h" | ||
| #include "TProfile.h" | ||
| #include "TSystem.h" | ||
| #include "TTree.h" | ||
|
|
||
| #include <fstream> | ||
| #include <map> | ||
| #include <sstream> | ||
| #include <string> | ||
| #include <vector> | ||
|
|
||
| using namespace std; | ||
|
|
||
| class VIPRCalculator : public VImageBaseAnalyzer | ||
| { | ||
|
|
||
| private: | ||
| VEvndispData* fData; | ||
| vector< string > fPedFileNameC; | ||
| bool fIPRTimeSlices; | ||
| bool fIPRAverageTel; // flag to make average of all telescopes IPR in case there is not enough statistics to produce IPR graphs | ||
| bool fIPRInTimeSlices; | ||
| int fPedPerTelescopeTypeMinCnt; | ||
| <<<<<<< HEAD | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Merge comments! |
||
| TH1F* FillIPRHistogram( unsigned int iSummationWindow, unsigned int i_tel); | ||
| void definePedestalFile( std::vector<std::string> fPedFileNameCalibrator ); | ||
| TH1F* initializeIPRHistogram( unsigned int iSummationWindow, unsigned int i_tel); | ||
| bool copyIPRTelAveraged( unsigned int iSummationWindow, ULong64_t iTelType, unsigned int i_tel ); | ||
| TH1F* calculateIPRGraphAveraged( unsigned int iSummationWindow ); | ||
| public: | ||
| bool calculateIPRGraphs( std::vector<std::string> fPedFileNameCalibrator ); | ||
| bool calculateIPRGraphs( string iPedFileName, unsigned int iSummationWindow, ULong64_t iTelType, unsigned int i_tel ); | ||
| bool writeIPRgraphs( map<ULong64_t, vector<vector<TH1F*>>> &hped_vec, string iFile = "" ); | ||
|
|
||
| ======= | ||
| TH1F* FillIPRHistogram( unsigned int iSummationWindow, unsigned int i_tel ); | ||
| TGraphErrors* updateIPRGraph( TH1F* hIPR, unsigned int i_tel, int iSummationWindow ); | ||
| float convertRate( unsigned int i_tel ); | ||
| float getTsearch(); | ||
| void definePedestalFile( std::vector<std::string> fPedFileNameC ); | ||
| TFile* initializePedestalFile( int i_tel ); | ||
| TH1F* initializeIPRHistogram( unsigned int iSummationWindow, unsigned int i_tel ); | ||
| bool calculateIPRGraphsTimeSlices( const int TimeSlice, int iSummationWindow, const int itel ); | ||
| bool calculateIPRGraphsNoTimeSlices( unsigned int iSummationWindow, unsigned int i_tel ); | ||
| bool copyIPRInitialized( unsigned int iSummationWindow, unsigned int i_tel ); | ||
| TH1F* calculateIPRGraphAveragedNoTimeSlices( unsigned int iSummationWindow, unsigned int i_tel ); | ||
| public: | ||
|
|
||
| vector<vector<vector<vector<TH1F*>>>> fpedcal_histo_storage; | ||
| TH1F* getIPRPedestalHisto( const int telID, const int ts, const int pixel, const int sw ); | ||
| vector<vector<vector<vector<TH1F*>>>> getStorageHist(); | ||
| void fillIPRPedestalHisto(); | ||
| void fillIPRPedestalHisto( const int telID, const vector<vector<vector<TH1F*>>>& fpedcal_histo ); | ||
| bool calculateIPRGraphs( std::vector<std::string> fPedFileNameC ); | ||
| bool writeIPRgraphs( map<ULong64_t, vector<vector<TH1F*>>>& hped_vec, string iFile = "" ); | ||
| void checkHistEmpty( const int telID, const int ts, const int pixel, const int sw ); | ||
| VIPRCalculator(); | ||
| ~VIPRCalculator() {} | ||
|
|
||
| void initialize(); | ||
| }; | ||
| #endif | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| #ifndef VIPRCALCULATOR_H | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What file is
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was a typo, the file should have been deleted with all other backup files. |
||
| #define VIPRCALCULATOR_H | ||
|
|
||
| #include <VImageBaseAnalyzer.h> | ||
| #include <VDB_CalibrationInfo.h> | ||
| #include <VSQLTextFileReader.h> | ||
|
|
||
| #include "TClonesArray.h" | ||
| #include "TFile.h" | ||
| #include "TH1F.h" | ||
| #include "TLeaf.h" | ||
| #include "TMath.h" | ||
| #include "TProfile.h" | ||
| #include "TSystem.h" | ||
| #include "TTree.h" | ||
|
|
||
| #include <fstream> | ||
| #include <map> | ||
| #include <sstream> | ||
| #include <string> | ||
| #include <vector> | ||
|
|
||
| using namespace std; | ||
|
|
||
| class VIPRCalculator : public VImageBaseAnalyzer | ||
| { | ||
|
|
||
| private: | ||
| VEvndispData* fData; | ||
| vector< string > fPedFile; | ||
| bool fIPRTimeSlices; | ||
| bool fIPRAverageTel; // flag to make average of all telescopes IPR in case there is not enough statistics to produce IPR graphs | ||
| bool fIPRInTimeSlices; | ||
| int fPedPerTelescopeTypeMinCnt; | ||
| TH1F* FillIPRHistogram( unsigned int iSummationWindow, unsigned int i_tel); | ||
| TGraphErrors* updateIPRGraph(TH1F *hIPR, unsigned int i_tel, int iSummationWindow); | ||
| float convertRate(unsigned int i_tel); | ||
| float getTsearch(); | ||
| void definePedestalFile( std::vector<std::string> fPedFileNameC ); | ||
| TFile* initializePedestalFile( int i_tel ); | ||
| TH1F* initializeIPRHistogram( unsigned int iSummationWindow, unsigned int i_tel); | ||
| bool calculateIPRGraphsTimeSlices( const int TimeSlice, int iSummationWindow, const int itel); | ||
| bool calculateIPRGraphsNoTimeSlices( unsigned int iSummationWindow, unsigned int i_tel ); | ||
| bool copyIPRInitialized( unsigned int iSummationWindow, unsigned int i_tel ); | ||
| TH1F* calculateIPRGraphAveragedNoTimeSlices( unsigned int iSummationWindow, unsigned int i_tel ); | ||
| public: | ||
| void clearHistos(); | ||
| vector<vector<vector<vector<TH1F*>>>> fpedcal_histo_storage; | ||
| TH1F* getIPRPedestalHisto(const int telID, const int ts, const int pixel, const int sw); | ||
| vector<vector<vector<vector<TH1F*>>>> getStorageHist(); | ||
| void fillIPRPedestalHisto(); | ||
| void fillIPRPedestalHisto(const int telID, const int NTimeSlices, const vector<vector<vector<TH1F*>>>& fpedcal_histo ); | ||
| bool calculateIPRGraphs( std::vector<std::string> fPedFileNameC); | ||
| bool writeIPRgraphs( map<ULong64_t, vector<vector<TH1F*>>> &hped_vec, string iFile = "" ); | ||
| void checkHistEmpty(const int telID, const int ts, const int pixel, const int sw); | ||
|
|
||
| VIPRCalculator(); | ||
| ~VIPRCalculator() {} | ||
|
|
||
| void initialize(); | ||
| }; | ||
| #endif | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use for includes always "" and not <>