/[PAMELA software]/PamCut/CollectionActions/RefitTrackAction/RefitTrackAction.h
ViewVC logotype

Annotation of /PamCut/CollectionActions/RefitTrackAction/RefitTrackAction.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.2.2 - (hide annotations) (download)
Tue May 11 15:32:07 2010 UTC (14 years, 6 months ago) by pam-fi
Branch: V8
Changes since 1.1.2.1: +7 -3 lines
File MIME type: text/plain
Added a new optional argument to the constructor to specify the tracker parameters to be used.

1 pam-fi 1.1.2.1 /*
2     * RefitTrackAction.h
3     *
4     * Created on: 10/may/2010
5     * Author: N. Mori
6     */
7    
8     #ifndef REFITTRACKACTION_H_
9     #define REFITTRACKACTION_H_
10    
11     #include "../CollectionAction/CollectionAction.h"
12     #include <TRandom3.h>
13    
14     /*! @brief Track refitting.
15     *
16     * This action refits the TRK track using only level 2 data. This means that it will use the same
17     * clusters which are associated to the track, with the possibility to mask or shift some of them.
18     * For a complete reprocess and fit use #ReprocessTrackAction.
19     */
20     class RefitTrackAction: public CollectionAction {
21     public:
22    
23     /*! @brief Constructor
24     *
25     * @param actionName The action's name.
26     * @param spreadX The width of the gaussian spread applied to all the X view coordinates, in cm.
27     * @param spreadY The width of the gaussian spread applied to all the Y view coordinates, in cm.
28     * @param maskedViews The excluded views. 0 means that all the views will be used, while #T6X means that the
29     * X view of the last tracker plane will be ignored. For other combinations, sum up the values
30     * defined in #TRKLAYERS: T1X + T1Y will exclude the whole first plane, for example.
31 pam-fi 1.1.2.2 * @param trkParamsFile The file containing the tracker parameters to be used. Default value corresponds to the standard
32     * parameters used for data reduction.
33 pam-fi 1.1.2.1 */
34 pam-fi 1.1.2.2 RefitTrackAction(const char *actionName, float spreadX = 0., float spreadY = 0., int maskedViews = 0., TString trkParamsFile = "") :
35     CollectionAction(actionName), _spreadX(spreadX), _spreadY(spreadY), _maskedViews(maskedViews), _trkParamsFile(trkParamsFile) {
36 pam-fi 1.1.2.1
37     }
38    
39     /*! @brief Destructor. */
40     ~RefitTrackAction() {
41     }
42    
43     /* @brief The refitting procedure.
44     *
45     * This will refit the tracker track introducing the mask and spreads defined in the constructor.
46     */
47     void OnGood(PamLevel2 *event);
48    
49     /*! @brief The finalization procedure. */
50     void Finalize() {
51    
52     }
53    
54     private:
55    
56     float _spreadX, _spreadY;
57     int _maskedViews;
58    
59     static TRandom3 *_r3;
60     static long int _currEvent;
61    
62     float _xmBackup[6], _ymBackup[6];
63     int _layerXBackup[6], _layerYBackup[6];
64 pam-fi 1.1.2.2
65     TString _trkParamsFile;
66     static TString _currTrkParamsFile;
67 pam-fi 1.1.2.1 };
68    
69     #endif /* REFITTRACKACTION_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23