Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/EICrecon/algorithms/digi/EICROCDigitization.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // SPDX-License-Identifier: LGPL-3.0-or-later
0002 // Copyright (C) 2024 Souvik Paul, Chun Yuen Tsang, Prithwish Tribedy
0003 // Special Acknowledgement: Kolja Kauder
0004 //
0005 // Convert ADC pulses from EICROCGeneration into ADC and TDC values
0006 
0007 #pragma once
0008 
0009 #include <algorithms/algorithm.h>
0010 #include <edm4eic/RawTrackerHitCollection.h>
0011 #include <edm4hep/RawTimeSeriesCollection.h>
0012 #include <string>
0013 #include <string_view>
0014 
0015 #include "algorithms/digi/EICROCDigitizationConfig.h"
0016 #include "algorithms/interfaces/WithPodConfig.h"
0017 
0018 namespace eicrecon {
0019 
0020 using EICROCDigitizationAlgorithm =
0021     algorithms::Algorithm<algorithms::Input<edm4hep::RawTimeSeriesCollection>,
0022                           algorithms::Output<edm4eic::RawTrackerHitCollection>>;
0023 
0024 class EICROCDigitization : public EICROCDigitizationAlgorithm,
0025                            public WithPodConfig<EICROCDigitizationConfig> {
0026 
0027 public:
0028   EICROCDigitization(std::string_view name)
0029       : EICROCDigitizationAlgorithm{name, {"EICROC"}, {"ADCTDCOutput"}, {}} {}
0030   void init(){};
0031   void process(const Input&, const Output&) const final;
0032 };
0033 
0034 } // namespace eicrecon