All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
AngularCorrection_dEdxProcessor.hh
Go to the documentation of this file.
1 #ifndef AngularCorrection_dEdxProcessor_hh
2 #define AngularCorrection_dEdxProcessor_hh 1
3 
4 #include "marlin/Processor.h"
5 #include "marlin/EventModifier.h"
6 #include "lcio.h"
7 #include <string>
8 #include <IMPL/LCEventImpl.h>
9 #include <EVENT/LCCollection.h>
10 #include <EVENT/Track.h>
11 #include <IMPL/TrackImpl.h>
12 
13 #include <marlin/Global.h>
14 
15 using namespace lcio ;
16 using namespace marlin ;
17 
18 /** AngularCorrection_dEdxProcessor <br>
19  * This processor calculates an extra correction to be applied to the computed dE/dx for every track.<br>
20  * <h4>Input collections and prerequisites</h4>
21  * The processor requires a MarlinTrk Collection.<br>
22  * <h4>Output</h4>
23  * The calculated dE/dx is rewritten (ATTENTION) in the track collection.<br>
24  * @param _LDCTrackCollection - name of the input track collection <br>
25  * default: MarlinTrkTracks
26  * @param _par - parameter for angular correction<br>
27  * @author A. Irles, IFIC
28  * @version $Id$
29  */
30 
31 class AngularCorrection_dEdxProcessor : public Processor, public EventModifier {
32 
33 public:
34 
35  virtual Processor* newProcessor() { return new AngularCorrection_dEdxProcessor ; }
37  virtual const std::string & name() const { return Processor::name() ; }
38 
39  virtual void modifyEvent( LCEvent * evt ) ;
40 
41  virtual void init() ;
42  virtual void processRunHeader( LCRunHeader* run);
43  // virtual void processEvent( LCEvent * evt );
44  virtual void check( LCEvent * evt );
45  virtual void end();
46 
47 private:
50 
51  //std::pair<float,float> getExtraCorrection(float dedx, float dedx_error, float trkcos);
52 
53  std::string _description = "";
54  std::string _LDCTrackCollection = "";
55  LCCollection* _LDCCol = NULL;
56 
57  std::vector<float> _par = {};
58 
59 };
60 
61 
62 #endif
virtual const std::string & name() const
AngularCorrection_dEdxProcessor This processor calculates an extra correction to be applied to the ...