ARTEMIS-CRIB
 
Loading...
Searching...
No Matches
TSegmentOutputProcessor.h
Go to the documentation of this file.
1/**
2 * @file TSegmentOutputProcessor.h
3 * @brief from seg conf, output raw data TTree object
4 * @author Kodai Okawa <okawa@cns.s.u-tokyo.ac.jp>
5 * @date 2023-12-25 11:40:53
6 * @note last modified: 2025-01-08 10:28:36
7 * @details
8 */
9
10#ifndef _CRIB_TSEGNEMTOUTPUTPROCESSOR_H_
11#define _CRIB_TSEGNEMTOUTPUTPROCESSOR_H_
12
13#include "TProcessor.h"
14#include <TFile.h>
15
16namespace art {
17class TSegmentInfo;
18class TSegmentedData;
19class TModuleInfo;
20} // namespace art
21
22namespace art::crib {
23class TSegmentOutputProcessor;
24class TModuleData;
25} // namespace art::crib
26
27class TClonesArray;
28
30 public:
32 ~TSegmentOutputProcessor() override;
33
36
37 void Init(TEventCollection *) override;
38 void Process() override;
39 void PreLoop() override;
40 void PostLoop() override;
41
42 protected:
43 TString fFileName;
44 TString fTreeName;
45 TFile *fFile; //! outputed file
46 TTree *fTree; //! pure TTree object (not TArtTree)
49 TClonesArray **fSegmentList; //!
50 TClonesArray **fModuleList; //!
51
52 TSegmentedData **fSegmentedData; //!
54 StringVec_t fIgnore; //! list of ignored segment
55 std::map<Int_t, std::vector<TModuleData *>> fSegments; //!
56
57 private:
58 ClassDefOverride(TSegmentOutputProcessor, 1) // segment checking processor
59};
60
61#endif // end of #ifndef _TSEGMENTOUTPUTPROCESSOR_H_
TSegmentOutputProcessor & operator=(const TSegmentOutputProcessor &rhs)
TString fSegmentListName
pure TTree object (not TArtTree)
void Init(TEventCollection *) override
std::map< Int_t, std::vector< TModuleData * > > fSegments
list of ignored segment
return to the guide