-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab773d0
commit 858a822
Showing
4 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
27 changes: 27 additions & 0 deletions
27
Detectors/TOF/workflow/include/TOFWorkflowUtils/TOFIntegrateClusterWriterSpec.h
This file contains 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,27 @@ | ||
// Copyright 2019-2020 CERN and copyright holders of ALICE O2. | ||
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. | ||
// All rights not expressly granted are reserved. | ||
// | ||
// This software is distributed under the terms of the GNU General Public | ||
// License v3 (GPL Version 3), copied verbatim in the file "COPYING". | ||
// | ||
// In applying this license CERN does not waive the privileges and immunities | ||
// granted to it by virtue of its status as an Intergovernmental Organization | ||
// or submit itself to any jurisdiction. | ||
|
||
#ifndef O2_TOF_TOFINTEGRATECLUSTERWRITERSPEC_SPEC | ||
#define O2_TOF_TOFINTEGRATECLUSTERWRITERSPEC_SPEC | ||
|
||
#include "Framework/DataProcessorSpec.h" | ||
|
||
namespace o2 | ||
{ | ||
namespace tof | ||
{ | ||
|
||
o2::framework::DataProcessorSpec getTOFIntegrateClusterWriterSpec(); | ||
|
||
} // end namespace tof | ||
} // end namespace o2 | ||
|
||
#endif |
37 changes: 37 additions & 0 deletions
37
Detectors/TOF/workflow/src/TOFIntegrateClusterWriterSpec.cxx
This file contains 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,37 @@ | ||
// Copyright 2019-2020 CERN and copyright holders of ALICE O2. | ||
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. | ||
// All rights not expressly granted are reserved. | ||
// | ||
// This software is distributed under the terms of the GNU General Public | ||
// License v3 (GPL Version 3), copied verbatim in the file "COPYING". | ||
// | ||
// In applying this license CERN does not waive the privileges and immunities | ||
// granted to it by virtue of its status as an Intergovernmental Organization | ||
// or submit itself to any jurisdiction. | ||
|
||
/// @file TOFIntegrateClusterWriterSpec.cxx | ||
|
||
#include <vector> | ||
#include "TOFWorkflowUtils/TOFIntegrateClusterWriterSpec.h" | ||
#include "DPLUtils/MakeRootTreeWriterSpec.h" | ||
|
||
using namespace o2::framework; | ||
|
||
namespace o2 | ||
{ | ||
namespace tof | ||
{ | ||
template <typename T> | ||
using BranchDefinition = MakeRootTreeWriterSpec::BranchDefinition<T>; | ||
|
||
DataProcessorSpec getTOFIntegrateClusterWriterSpec() | ||
{ | ||
return MakeRootTreeWriterSpec("tof-currents-writer", | ||
"o2currents_tof.root", | ||
"ITOFC", | ||
BranchDefinition<std::vector<float>>{InputSpec{"itofcn", o2::header::gDataOriginTOF, "ITOFCN", 0}, "ITOFCN", 1}, | ||
BranchDefinition<std::vector<float>>{InputSpec{"itofcq", o2::header::gDataOriginTOF, "ITOFCQ", 0}, "ITOFCQ", 1})(); | ||
} | ||
|
||
} // namespace tof | ||
} // namespace o2 |
This file contains 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