er  dev
ERNDPID.h
1 /********************************************************************************
2  * Copyright (C) Joint Institute for Nuclear Research *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence version 3 (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 
9 #ifndef ERNDPID_H
10 #define ERNDPID_H
11 
12 #include "TClonesArray.h"
13 #include "TLorentzVector.h"
14 
15 #include "ERTask.h"
16 #include "ERNDParticle.h"
17 #include "ERNDSetup.h"
18 
19 class ERNDPID : public ERTask {
20  public:
21  ERNDPID();
22  virtual InitStatus Init();
23  virtual void Exec(Option_t* opt);
24  virtual void Reset();
25  protected:
26  //Input arrays
27  TClonesArray* fNDTracks = nullptr;
28  TClonesArray* fBeamDetParticle = nullptr;
29  //Output arrays
30  TClonesArray *fNDParticles = nullptr;
31  ERNDSetup* fSetup = nullptr;
32  ERNDParticle* AddParticle(const TLorentzVector& lv, float tof);
33  ClassDef(ERNDPID,1)
34 };
35 
36 #endif
virtual InitStatus Init()
Definition: ERNDPID.cxx:30
Base abstract class for all tasks in er.
Definition: ERTask.h:27
virtual void Reset()
Definition: ERNDPID.cxx:123