/[PAMELA software]/calo/flight/CaloNuclei/inc/CaloNuclei.h
ViewVC logotype

Contents of /calo/flight/CaloNuclei/inc/CaloNuclei.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Apr 3 15:55:16 2007 UTC (17 years, 8 months ago) by mocchiut
Branch: CaloNuclei
CVS Tags: start, v1r00
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
Imported sources

1
2
3 /**
4 * \file CaloNuclei.h
5 * \author Emiliano Mocchiutti
6 */
7 #ifndef calonuclei_h
8 #define calonuclei_h
9
10 #include <PamLevel2.h>
11
12 #include <TTree.h>
13 #include <TFriendElement.h>
14 #include <TChain.h>
15 #include <TFile.h>
16 #include <TList.h>
17 #include <TKey.h>
18 #include <TSystemFile.h>
19 #include <TSystemDirectory.h>
20 #include <TSQLServer.h>
21
22 #include <iostream>
23
24 using namespace std;
25
26 /**
27 *
28 * Class to store and calculate variables useful for nuclei analysis
29 */
30 class CaloNuclei : public TObject {
31
32 private:
33 //
34 PamLevel2 *L2;
35 //
36 // needed to avoid reprocessing the same event over and over to obtain the variables
37 //
38 UInt_t OBT;
39 UInt_t PKT;
40 UInt_t atime;
41 //
42 Int_t interplane; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane)
43 Int_t N; ///< Number of dE/dx measurements to be used to calculate qpremeanN, default N = 5
44 Float_t preq; ///< Energy release (MIP) up to the interaction plane (included)
45 Float_t postq; ///< Energy release (MIP) from the interaction plane (excluded) up to the last plane
46 Float_t dedx1; ///< Energy release (MIP) along the track on the first Silicon detector (Y EVEN).
47 Float_t dedx3; ///< Energy release (MIP) along the track on the first three Silicon detectors (Y EVEN, X EVEN, Y ODD).
48 Float_t qpremean; ///< Truncated mean (MIP) along the track up to the interaction plane preq using three points
49 Float_t qpremeanN; ///< Truncated mean (MIP) along the track up to the interaction plane preq using N points
50 Float_t ethr; ///< Threshold (MIP) needed to find the interaction plane
51 Bool_t multhit; ///< True if the interaction plane has been determined by multiple hit counting
52 Bool_t gap; ///< True if determining the interaction plane a big (>5 planes) gap has been found between a point and another along the track
53 //
54
55 public:
56 //
57 //
58 Int_t GetInterplane(){ Process(); return interplane;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane)
59 Int_t GetN(){ return N;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane)
60 Float_t GetPreq(){ Process(); return preq;}; ///< Energy release (MIP) up to the interaction plane (included)
61 Float_t GetPostq(){ Process(); return postq;}; ///< Energy release (MIP) from the interaction plane (excluded) up to the last plane
62 Float_t GetDedx1(){ Process(); return dedx1;}; ///< Energy release (MIP) along the track on the first Silicon detector (Y EVEN).
63 Float_t GetDedx3(){ Process(); return dedx3;}; ///< Energy release (MIP) along the track on the first three Silicon detectors (Y EVEN, X EVEN, Y ODD).
64 Float_t GetQpremean(){ Process(); return qpremean;}; ///< Truncated mean (MIP) along the track up to the interaction plane preq.
65 Float_t GetQpremeanN(){ Process(); return qpremeanN;}; ///< Truncated mean (MIP) along the track up to the interaction plane preq.
66 Float_t GetEthr(){ Process(); return ethr;}; ///< Threshold (MIP) needed to find the interaction plane
67 Bool_t IsMulthit(){ Process(); return multhit;}; ///< True if the interaction plane has been determined by multiple hit counting
68 //
69 void SetN(Int_t n){ N=n;};
70 //
71 CaloNuclei();
72 CaloNuclei(PamLevel2 *L2);
73 ~CaloNuclei(){ Delete(); };
74 //
75 void Clear();
76 void Clear(Option_t *option){Clear();};
77 void Delete();
78 //
79 void Process();
80 void Print();
81 //
82 ClassDef(CaloNuclei,1);
83 };
84
85 #endif
86

  ViewVC Help
Powered by ViewVC 1.1.23