Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Apar Agarwal
cbmroot
Commits
661105d3
Commit
661105d3
authored
3 years ago
by
Pierre-Alain Loizeau
Committed by
Florian Uhlig
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
In CheckTiming algo, use TS index from TsEventheader if 2021 data
parent
6289c135
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fles/mcbm2018/tasks/CbmMcbmCheckTimingAlgo.cxx
+18
-3
18 additions, 3 deletions
fles/mcbm2018/tasks/CbmMcbmCheckTimingAlgo.cxx
fles/mcbm2018/tasks/CbmMcbmCheckTimingAlgo.h
+6
-0
6 additions, 0 deletions
fles/mcbm2018/tasks/CbmMcbmCheckTimingAlgo.h
with
24 additions
and
3 deletions
fles/mcbm2018/tasks/CbmMcbmCheckTimingAlgo.cxx
+
18
−
3
View file @
661105d3
...
...
@@ -62,6 +62,15 @@ Bool_t CbmMcbmCheckTimingAlgo::Init()
CheckDataPresence
(
*
det
);
}
// for( std::vector< CheckTimingDetector >::iterator det = fvDets.begin(); det != fvDets.end(); ++det )
/// Try to get the 2021 Event header which is containing the Timeslice info
/// If not present, we have "old" data and will simply catch it with the nullptr value
auto
eh
=
FairRun
::
Instance
()
->
GetEventHeader
();
LOG
(
info
)
<<
"CbmMcbmCheckTimingAlgo => EventHeader ptr: "
<<
eh
<<
" "
<<
eh
->
IsA
();
fCbmTsEventHeader
=
dynamic_cast
<
CbmTsEventHeader
*>
(
eh
);
if
(
nullptr
!=
fCbmTsEventHeader
)
{
LOG
(
info
)
<<
"CbmMcbmCheckTimingAlgo => Using the index from the TS Event header for Evo plots"
;
}
CreateHistos
();
return
kTRUE
;
...
...
@@ -85,7 +94,7 @@ void CbmMcbmCheckTimingAlgo::CheckDataPresence(CheckTimingDetector detToCheck)
}
// if ( ! fpT0DigiVec )
}
// if( ECbmModuleId::kT0 == detToCheck.detId )
/// Handle special case for TRD-2D as not yet supported in DigiManager
if
(
ECbmModuleId
::
kTrd2d
==
detToCheck
.
detId
)
{
else
if
(
ECbmModuleId
::
kTrd2d
==
detToCheck
.
detId
)
{
// Get a pointer to the previous already existing data level
fpTrd2dDigiVec
=
ioman
->
InitObjectAs
<
std
::
vector
<
CbmTrdDigi
>
const
*>
(
"TrdFaspDigi"
);
if
(
!
fpTrd2dDigiVec
)
{
...
...
@@ -436,8 +445,14 @@ void CbmMcbmCheckTimingAlgo::FillTimeOffsetHistos(const Double_t dRefTime, const
fvhDetToRefDiff
[
uDetIdx
]
->
Fill
(
dDiffTime
);
fvhDetToRefDiffRefCharge
[
uDetIdx
]
->
Fill
(
dDiffTime
,
dRefCharge
);
fvhDetToRefDiffDetCharge
[
uDetIdx
]
->
Fill
(
dDiffTime
,
dCharge
);
fvhDetToRefDiffEvo
[
uDetIdx
]
->
Fill
(
fuNbTs
,
dDiffTime
);
fvhDetToRefDiffEvoLong
[
uDetIdx
]
->
Fill
(
fuNbTs
,
dDiffTime
);
if
(
nullptr
==
fCbmTsEventHeader
)
{
fvhDetToRefDiffEvo
[
uDetIdx
]
->
Fill
(
fuNbTs
,
dDiffTime
);
fvhDetToRefDiffEvoLong
[
uDetIdx
]
->
Fill
(
fuNbTs
,
dDiffTime
);
}
else
{
fvhDetToRefDiffEvo
[
uDetIdx
]
->
Fill
(
fCbmTsEventHeader
->
GetTsIndex
(),
dDiffTime
);
fvhDetToRefDiffEvoLong
[
uDetIdx
]
->
Fill
(
fCbmTsEventHeader
->
GetTsIndex
(),
dDiffTime
);
}
}
// for( UInt_t uDigiIdx = fvDets[ uDetIdx ].iPrevRefFirstDigi; uDigiIdx < uNbDigis; ++uDigiIdx )
/// Store earliest possible starting index for next reference digi (time sorted!)
...
...
This diff is collapsed.
Click to expand it.
fles/mcbm2018/tasks/CbmMcbmCheckTimingAlgo.h
+
6
−
0
View file @
661105d3
...
...
@@ -11,6 +11,7 @@
#include
"CbmModuleList.h"
#include
"CbmTofDigi.h"
#include
"CbmTrdDigi.h"
#include
"CbmTsEventHeader.h"
#include
"TString.h"
...
...
@@ -113,6 +114,11 @@ private:
/** TRD-2D is not included in CbmDigiManager, so add it explicitly here **/
const
std
::
vector
<
CbmTrdDigi
>*
fpTrd2dDigiVec
=
nullptr
;
//!
/** @brief Pointer to the Timeslice start time used to write it to the output tree
@remark since we hand this to the FairRootManager it also wants to delete it and we do not have to take care of deletion
**/
CbmTsEventHeader
*
fCbmTsEventHeader
=
nullptr
;
//
UInt_t
fuNbTs
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment