-
Notifications
You must be signed in to change notification settings - Fork 22
Changes for FNAL TB 2023 #23
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
Open
pmeridian
wants to merge
21
commits into
simonepigazzini:master
Choose a base branch
from
pmeridian:FNALTB_Mar2023
base: master
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.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
542a466
towards preprocessor
pmeridian 5415135
First working version
pmeridian c98b293
First working version
pmeridian 30a3732
tmp dir fix
pmeridian b5892e2
Adding H4DAQ PreProcessor
pmeridian fda0778
fix time axis
pmeridian a2fbd7b
removing printout
pmeridian 5936f95
Adding MCP
pmeridian bb1a713
fixing clock
pmeridian a816f8c
fixing trgInstance
pmeridian 076c0ff
several fixes and introducing clock polarity (to use also trailing ed…
pmeridian d504efc
fix config
pmeridian c66b65b
add MCP template
pmeridian 02ae113
FNAL_TB_Mar2023 Several improvements, in particular to the usage of t…
pmeridian cd1ca81
Bkw compatibility for old config files
pmeridian 0538052
rebase
pmeridian c3cce99
fixes
pmeridian 51982cf
Using pmeridian DynamicTTree
pmeridian 079419a
Using DynamicTree from pmeridian
pmeridian 910f8a9
submodule pointing to meridian forks
pmeridian 00a785b
Using right commitId
pmeridian 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| [submodule "DynamicTTree"] | ||
| path = DynamicTTree | ||
| url = https://github.com/simonepigazzini/DynamicTTree.git | ||
| url = https://github.com/pmeridian/DynamicTTree.git | ||
| [submodule "CfgManager"] | ||
| path = CfgManager | ||
| url = https://github.com/simonepigazzini/CfgManager.git | ||
| url = https://github.com/pmeridian/CfgManager.git |
Submodule DynamicTTree
updated
3 files
| +16 −14 | interface/DynamicTTreeInterface.h | |
| +2 −1 | src/DynamicTTreeBase.cc | |
| +3 −1 | test/DT_SimpleExample.cpp |
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,105 @@ | ||
| <h4reco> | ||
| outNameSuffix ntuples/ | ||
| path2data /eos/cms/store/group/dpg_mtd/comm_mtd/TB/MTDTB_FNAL_Mar2023/KeySightScope/TimingDAQRECO/RecoWithTracks/v1/ | ||
| run 66353 | ||
| maxEvents 100 | ||
| maxFiles -1 | ||
| dataType scopeFNALTree | ||
| preProcessorType ScopeFNALPreProcessor | ||
| pluginList DigiReco WFReco | ||
| </h4reco> | ||
|
|
||
| SCOPE TOFCLK_P TOFCLK_P_1 TOFCLK_P_2 TOFCLK_M TOFCLK_M_1 TOFCLK_M_2 MCP | ||
|
|
||
| #---VFE config | ||
| <DigiReco> | ||
| pluginType DigitizerReco | ||
| channelsNames= SCOPE | ||
| </DigiReco> | ||
|
|
||
| #---WF reconstruction for VFEs | ||
| <WFReco> | ||
| pluginType WFAnalyzer | ||
| srcInstanceName DigiReco | ||
| channelsNames= DigiReco.channelsNames | ||
| timeRecoTypes LED CFD CLK | ||
| fillWFtree 1 | ||
| WFtreePrescale 10 | ||
| </WFReco> | ||
|
|
||
| #---Scope channels | ||
| <TOFCLK_P> | ||
| digiBoard 0 | ||
| digiGroup 0 | ||
| digiChannel 0 | ||
| type Clock | ||
| polarity 1 | ||
| nSamples 800 | ||
| tUnit 0.05 | ||
| #CFD | ||
| CLK -0.8 0.8 | ||
| LED 0 2 2 100 400 | ||
| baselineFit 1 | ||
| baselineWin 150 600 | ||
| baselineInt 150 600 | ||
| signalWin 100 700 5 pol2 | ||
| signalInt 100 700 | ||
| <templateFit> | ||
| file data/tmpl_CLK_FNAL_Mar2023_large.root tmpl_TOFCLK_large | ||
| fitWin 0. 15 45 | ||
| </templateFit> | ||
| </TOFCLK_P> | ||
|
|
||
| <TOFCLK_P_1= TOFCLK_P> | ||
| copyChannel TOFCLK_P 0 400 | ||
| nSamples 400 | ||
| CLK -0.8 0.8 50 350 | ||
| LED 0 2 2 10 350 | ||
| baselineWin 50 350 | ||
| baselineInt 50 350 | ||
| signalWin 50 350 5 pol2 | ||
| signalInt 50 350 | ||
| </TOFCLK_P_1> | ||
|
|
||
| <TOFCLK_P_2= TOFCLK_P_1> | ||
| copyChannel TOFCLK_P 400 800 | ||
| </TOFCLK_P_2> | ||
|
|
||
| <TOFCLK_M= TOFCLK_P> | ||
| polarity -1 | ||
| <templateFit> | ||
| file data/tmpl_CLK_M_FNAL_Mar2023_large.root tmpl_TOFCLK_M_large | ||
| fitWin 0. 15 45 | ||
| </templateFit> | ||
| </TOFCLK_M> | ||
|
|
||
| <TOFCLK_M_1= TOFCLK_P_1> | ||
| copyChannel TOFCLK_M 0 400 | ||
| <templateFit> | ||
| file data/tmpl_CLK_M_FNAL_Mar2023_large.root tmpl_TOFCLK_M_large | ||
| fitWin 0. 15 45 | ||
| </templateFit> | ||
| </TOFCLK_M_1> | ||
|
|
||
| <TOFCLK_M_2= TOFCLK_M_1> | ||
| copyChannel TOFCLK_M 400 800 | ||
| </TOFCLK_M_2> | ||
|
|
||
| <MCP> | ||
| digiBoard 0 | ||
| digiGroup 0 | ||
| digiChannel 3 | ||
| polarity -1 | ||
| nSamples 800 | ||
| tUnit 0.05 | ||
| baselineWin 1 100 | ||
| baselineInt 10 90 | ||
| signalWin 50 700 5 gaus | ||
| signalInt 40 40 | ||
| CFD 0.5 5 | ||
| LED 20 2 2 | ||
| <templateFit> | ||
| file data/tmpl_MCP_FNAL_Mar2023.root tmpl_MCP | ||
| fitWin 0. 10 21 | ||
| </templateFit> | ||
| </MCP> |
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,71 @@ | ||
| #ifndef __PREPROCESSOR_BASE__ | ||
| #define __PREPROCESSOR_BASE__ | ||
|
|
||
| #include <string> | ||
| #include <map> | ||
|
|
||
| #include "CfgManager/interface/CfgManager.h" | ||
| #include "CfgManager/interface/CfgManagerT.h" | ||
| #include "interface/H4Tree.h" | ||
|
|
||
| //**********Helper macros***************************************************************** | ||
| //---Helper macro to keep track of the preProcessor running: must be inserted at the | ||
| // beginning of each method | ||
| #define CHECKPOINT() \ | ||
| SetCurrentMethod(__FUNCTION__); | ||
|
|
||
|
|
||
| //**********PREPROCESSOR BASE CLASS************************************************************* | ||
| class PreProcessorBase | ||
| { | ||
| public: | ||
|
|
||
| //**********LOGGER LEVELS***************************************************************** | ||
| enum LoggerLevel { | ||
| INFO = 0, | ||
| WARN = 1, | ||
| ERR = 2 | ||
| }; | ||
|
|
||
| //---ctors--- | ||
| PreProcessorBase(){}; | ||
|
|
||
| //---dtor--- | ||
| virtual ~PreProcessorBase(){}; | ||
|
|
||
| //---setters--- | ||
| void SetPluginType(const std::string& preProcessor) { preProcessorType_ = preProcessor; }; | ||
| void SetInstanceName(const std::string& instance) { instanceName_ = instance; }; | ||
| void SetCurrentMethod(std::string method) { currentMethod_ = method; }; | ||
|
|
||
| //---getters--- | ||
| std::string GetPluginType() { return preProcessorType_; }; | ||
| std::string GetInstanceName() { return instanceName_; }; | ||
| std::string GetCurrentMethod() { return currentMethod_; }; | ||
|
|
||
| //---utils--- | ||
| virtual bool Begin(CfgManager& opts) | ||
| { CHECKPOINT(); return true; }; | ||
| virtual H4Tree* ProcessEvent(DynamicTTreeBase* event, CfgManager& opts) | ||
| { CHECKPOINT(); return 0; }; | ||
|
|
||
| void Log(std::string message, LoggerLevel lv=INFO); | ||
|
|
||
| protected: | ||
| //---keep track of the preProcessor type as defined in the cfg | ||
| std::string preProcessorType_; | ||
| //---keep track of the preProcessor name as defined in the cfg | ||
| std::string instanceName_; | ||
| //---keep track of the current running preProcessor method. Must be called manually in each function; | ||
| std::string currentMethod_; | ||
| }; | ||
|
|
||
| #undef CHECKPOINT | ||
|
|
||
| //---To be inserted at the end of each preProcessor definition | ||
| #define DEFINE_PREPROCESSOR(NAME) \ | ||
| extern "C" PreProcessorBase* create() { return new NAME; } \ | ||
| extern "C" void destroy(PreProcessorBase* preProcessor) { delete preProcessor; } | ||
|
|
||
| #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
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.
Uh oh!
There was an error while loading. Please reload this page.