-
Notifications
You must be signed in to change notification settings - Fork 1
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
Draft
GernotMaier
wants to merge
21
commits into
main
Choose a base branch
from
iprNN-dev-v0.1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
30456b8
first commit
mariakherlakian 9f753e2
remove old files
mariakherlakian a2b9f82
Merge branch 'main' into iprNN-dev-v0.1
GernotMaier cc4f44b
Merge branch 'main' into iprNN-dev-v0.1
GernotMaier e3fad03
resolve conflicts
GernotMaier d875f78
conflict fix
GernotMaier 25645ef
Update recent changes by GM
mariakherlakian dd27df0
Add changes by GM
mariakherlakian 5de6eb6
Add changes by GM
mariakherlakian 49f7939
Add changes by GM
mariakherlakian d8316a7
remove some comments
mariakherlakian c748ebb
Delete VIPRCalculator.h.bsk
mariakherlakian cbe215e
Update VIPRCalculator.h
mariakherlakian f6c1726
Update VCalibrator.h
mariakherlakian 7da5007
backup progress
mariakherlakian 181f4b8
backup progress
mariakherlakian 584da71
Change Makefile
mariakherlakian 6d9e676
code formatting
GernotMaier 4bed9df
Write IPR TS to .IPR.root file
mariakherlakian 3ec7b90
Updates after meeting
mariakherlakian 5c0d897
Fix segmentation fault
mariakherlakian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| #ifndef VIPRCALCULATOR_H | ||
| #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 > 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; | ||
| 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: | ||
| vector<vector<vector<vector<TH1F*>>>> fpedcal_histo_storage; | ||
| bool calculateIPRGraphs( std::vector<std::string> fPedFileNameCalibrator ); | ||
| bool calculateIPRGraphs( string iPedFileName, unsigned int iSummationWindow, ULong64_t iTelType, unsigned int i_tel ); | ||
| bool calculateIPRGraphsTimeSlices( string iPedFileName, int TS, unsigned int iSummationWindow, ULong64_t iTelType, unsigned int i_tel ); | ||
| bool writeIPRgraphs( map<ULong64_t, vector<vector<TH1F*>>> &hped_vec, string iFile = "" ); | ||
| void fillIPRPedestalHisto(const int telID, const int NTimeSlices,const vector<vector<vector<TH1F*>>>& fpedcal_histo ); | ||
| void fillIPRPedestalHisto(); | ||
| TH1F* getIPRPedestalHisto(const int telID, const int ts, const int pixel, const int sw); | ||
| bool clearHistos(); | ||
| vector<vector<vector<vector<TH1F*>>>> getStorageHist(); | ||
|
|
||
| VIPRCalculator(); | ||
| ~VIPRCalculator() {} | ||
|
|
||
| void initialize(); | ||
| }; | ||
| #endif | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Same here, please use always
"VImageBaseAnalyzer.h"(comment valid for all other Eventdisplay classes)