CbmRoot
NicaCbmMatchedEventInterface.h
Go to the documentation of this file.
1 /*
2  * NicaCbmMatchedEventInterface.h
3  *
4  * Created on: 12 lip 2019
5  * Author: Daniel Wielanek
6  * E-mail: daniel.wielanek@gmail.com
7  * Warsaw University of Technology, Faculty of Physics
8  */
9 #ifndef NICACBMMATCHEDEVENTINTERFACE_H_
10 #define NICACBMMATCHEDEVENTINTERFACE_H_
11 
12 #include "NicaCbmEventInterface.h"
14 class NicaCbmEvent;
17  friend class NicaCbmMatchedEvent;
18 
19 protected:
20  NicaTrackClones* fStsMatches;
21  NicaTrackClones* fTofMatches;
22  NicaTrackClones* fTrdMatches;
23  NicaTrackClones* fMuchMatches;
24  NicaTrackClones* fRichMatches;
25  virtual void ConnectToTree();
26  void Register(Bool_t write);
27 
28 public:
30  TClonesArray* GetStsMatches() const { return fStsMatches->GetArray(); };
31  TClonesArray* GetTofMatches() const { return fTofMatches->GetArray(); };
32  TClonesArray* GetTrdMatches() const { return fTrdMatches->GetArray(); };
33  TClonesArray* GetRichMatches() const { return fRichMatches->GetArray(); };
34  TClonesArray* GetMuchMatches() const { return fMuchMatches->GetArray(); };
35  virtual void CopyData(NicaEventInterface* s);
36  virtual void Compress(Int_t* map, Int_t map_size);
37  virtual void
38  CopyAndCompress(NicaEventInterface* s, Int_t* map, Int_t map_size);
39  virtual void FillTrackInterface(NicaTrackInterface* track, Int_t index);
40  virtual NicaTrackInterface* GetTrackInterface() const {
41  return new NicaCbmMatchedTrackInterface();
42  }
44  ClassDef(NicaCbmMatchedEventInterface, 1)
45 };
46 
47 #endif /* NICA_CBM_FORMAT_MATCHED_NICACBMMATCHEDEVENTINTERFACE_H_ */
NicaCbmMatchedEventInterface::GetTrdMatches
TClonesArray * GetTrdMatches() const
Definition: NicaCbmMatchedEventInterface.h:32
NicaCbmMatchedEventInterface::NicaCbmMatchedEventInterface
NicaCbmMatchedEventInterface(NicaCbmSetup mode=kSis100Hadron)
Definition: NicaCbmMatchedEventInterface.cxx:13
NicaCbmMatchedEventInterface::GetStsMatches
TClonesArray * GetStsMatches() const
Definition: NicaCbmMatchedEventInterface.h:30
NicaCbmMatchedEventInterface::~NicaCbmMatchedEventInterface
virtual ~NicaCbmMatchedEventInterface()
Definition: NicaCbmMatchedEventInterface.cxx:115
NicaCbmMatchedEventInterface
Definition: NicaCbmMatchedEventInterface.h:16
NicaCbmMatchedEventInterface::CopyAndCompress
virtual void CopyAndCompress(NicaEventInterface *s, Int_t *map, Int_t map_size)
Definition: NicaCbmMatchedEventInterface.cxx:80
NicaCbmMatchedEventInterface::GetMuchMatches
TClonesArray * GetMuchMatches() const
Definition: NicaCbmMatchedEventInterface.h:34
NicaCbmMatchedEventInterface::fTrdMatches
NicaTrackClones * fTrdMatches
Definition: NicaCbmMatchedEventInterface.h:22
NicaCbmEventInterface
Definition: NicaCbmEventInterface.h:20
NicaCbmMatchedEventInterface::Compress
virtual void Compress(Int_t *map, Int_t map_size)
Definition: NicaCbmMatchedEventInterface.cxx:75
NicaCbmEvent
Definition: NicaCbmEvent.h:15
NicaCbmMatchedEventInterface::ConnectToTree
virtual void ConnectToTree()
Definition: NicaCbmMatchedEventInterface.cxx:31
NicaCbmEventInterface.h
NicaCbmMatchedEventInterface::GetTofMatches
TClonesArray * GetTofMatches() const
Definition: NicaCbmMatchedEventInterface.h:31
NicaCbmMatchedEventInterface::GetTrackInterface
virtual NicaTrackInterface * GetTrackInterface() const
Definition: NicaCbmMatchedEventInterface.h:40
kSis100Hadron
@ kSis100Hadron
Definition: CbmDetectorID.h:25
NicaCbmMatchedTrackInterface
Definition: NicaCbmMatchedTrackInterface.h:15
NicaCbmSetup
NicaCbmSetup
Definition: CbmDetectorID.h:25
NicaCbmMatchedEventInterface::fStsMatches
NicaTrackClones * fStsMatches
Definition: NicaCbmMatchedEventInterface.h:20
NicaCbmMatchedTrackInterface.h
NicaCbmMatchedEventInterface::fMuchMatches
NicaTrackClones * fMuchMatches
Definition: NicaCbmMatchedEventInterface.h:23
NicaCbmMatchedEventInterface::FillTrackInterface
virtual void FillTrackInterface(NicaTrackInterface *track, Int_t index)
Definition: NicaCbmMatchedEventInterface.cxx:94
NicaCbmMatchedEventInterface::Register
void Register(Bool_t write)
Definition: NicaCbmMatchedEventInterface.cxx:54
NicaCbmMatchedEventInterface::GetRichMatches
TClonesArray * GetRichMatches() const
Definition: NicaCbmMatchedEventInterface.h:33
NicaCbmMatchedEvent
Definition: NicaCbmMatchedEvent.h:15
NicaCbmMatchedEventInterface::fRichMatches
NicaTrackClones * fRichMatches
Definition: NicaCbmMatchedEventInterface.h:24
NicaCbmMatchedEventInterface::fTofMatches
NicaTrackClones * fTofMatches
Definition: NicaCbmMatchedEventInterface.h:21
NicaCbmMatchedEventInterface::CopyData
virtual void CopyData(NicaEventInterface *s)
Definition: NicaCbmMatchedEventInterface.cxx:63