/[PAMELA software]/PamelaLevel2/inc/PamLevel2.h
ViewVC logotype

Diff of /PamelaLevel2/inc/PamLevel2.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by pam-fi, Fri Aug 4 13:31:34 2006 UTC revision 1.4 by pam-fi, Fri Sep 29 10:02:30 2006 UTC
# Line 9  Line 9 
9    
10  #include <TRefArray.h>  #include <TRefArray.h>
11    
12    #include <TrkLevel1.h>
13  #include <TrkLevel2.h>  #include <TrkLevel2.h>
14  #include <CaloLevel2.h>  #include <CaloLevel2.h>
15  #include <ToFLevel2.h>  #include <ToFLevel2.h>
# Line 17  Line 18 
18  #include <NDLevel2.h>  #include <NDLevel2.h>
19  #include <AcLevel2.h>  #include <AcLevel2.h>
20  #include <OrbitalInfo.h>  #include <OrbitalInfo.h>
21    #include <OrbitalInfo.h>
22    #include <RunInfo.h>
23    #include <GLTables.h>
24    
25    
26  #include <TTree.h>  #include <TTree.h>
27  #include <TChain.h>  #include <TChain.h>
# Line 59  class PamTrack : public TrkTrack, public Line 64  class PamTrack : public TrkTrack, public
64   * This allows to solve the tracker ambiguity (that is, to choose between track images) by using also information from other detectors.   * This allows to solve the tracker ambiguity (that is, to choose between track images) by using also information from other detectors.
65   */   */
66                                    
67  class PamLevel2 : public CaloLevel2, public TrkLevel2, public ToFLevel2, public TrigLevel2, public S4Level2, public NDLevel2, public AcLevel2, public OrbitalInfo {  class PamLevel2 : public CaloLevel2, public TrkLevel2, public TrkLevel1, public ToFLevel2, public TrigLevel2, public S4Level2, public NDLevel2, public AcLevel2, public OrbitalInfo {
68    
69   private:   private:
70    
71      TrkLevel2*   trk_obj;      TrkLevel1*   trk_l1_obj;
72      CaloLevel2*  calo_obj;          TrkLevel2*   trk_obj;
73            CaloLevel2*  calo_obj;
74      ToFLevel2*   tof_obj;      ToFLevel2*   tof_obj;
75      TrigLevel2*  trig_obj;      TrigLevel2*  trig_obj;
76      S4Level2*    s4_obj;      S4Level2*    s4_obj;
77      NDLevel2*    nd_obj;      NDLevel2*    nd_obj;
78      AcLevel2*    ac_obj;      AcLevel2*    ac_obj;
79          OrbitalInfo* orb_obj;          OrbitalInfo* orb_obj;
80            
81            GL_RUN*      run_obj;
82            
83          TRefArray*   sorted_tracks; // TEMPORANEO ... lo mettero` menbro di TrkLevel2          TRefArray*   sorted_tracks; // TEMPORANEO ... lo mettero` membro di TrkLevel2
84            
85            TChain*      Tout;
86                    
87   public:   public:
88    
# Line 84  class PamLevel2 : public CaloLevel2, pub Line 94  class PamLevel2 : public CaloLevel2, pub
94          Bool_t ND;          Bool_t ND;
95          Bool_t AC;          Bool_t AC;
96          Bool_t ORB;          Bool_t ORB;
97            
98            Bool_t TRK_L1;
99    
100      PamLevel2();      PamLevel2();
101          ~PamLevel2();          ~PamLevel2();
102                    
103          void Clear();          void Clear();
104    
105      TrkLevel2*   GetTrkLevel2()  { return trk_obj;  };          TrkLevel1*   GetTrkLevel1()  { return trk_l1_obj;  };
106      CaloLevel2*  GetCaloLevel2() { return calo_obj; };          TrkLevel2*   GetTrkLevel2()  { return trk_obj;  };
107            CaloLevel2*  GetCaloLevel2() { return calo_obj; };
108      ToFLevel2*   GetToFLevel2()  { return tof_obj;  };      ToFLevel2*   GetToFLevel2()  { return tof_obj;  };
109      TrigLevel2*  GetTrigLevel2() { return trig_obj; };      TrigLevel2*  GetTrigLevel2() { return trig_obj; };
110      S4Level2*    GetS4Level2()   { return s4_obj;   };      S4Level2*    GetS4Level2()   { return s4_obj;   };
111      NDLevel2*    GetNDLevel2()   { return nd_obj;   };      NDLevel2*    GetNDLevel2()   { return nd_obj;   };
112      AcLevel2*    GetAcLevel2()   { return ac_obj;   };      AcLevel2*    GetAcLevel2()   { return ac_obj;   };
113          OrbitalInfo* GetOrbitalInfo(){ return orb_obj;  };          OrbitalInfo* GetOrbitalInfo(){ return orb_obj;  };
114            GL_RUN*      GetRunInfo()    { return run_obj;  };
115            
116  //  =====================================  //  =====================================
117  //  methods needed to read Level2 trees  //  methods needed to read Level2 trees
118  //  =====================================  //  =====================================
119          void    SetWhichTrees(TString);          void    SetWhichTrees(TString);
120          TList*  GetListOfLevel2Files(TString, TString);          TList*  GetListOfLevel2Files(TString, TString);
121          Bool_t  CheckLevel2File(TString);          Bool_t  CheckLevel2File(TString);
122          TTree*  LoadPamTrees(TFile*);  /*      TTree*  LoadPamTrees(TFile*);
123          TTree*  LoadPamTrees(TFile*,TString);          TTree*  LoadPamTrees(TFile*,TString);
124          TChain* LoadPamTrees(TList*,TString);          TChain* LoadPamTrees(TList*,TString);
125            TTree*  LoadRunTree(TFile*);
126            TChain* LoadRunTree(TList*);*/
127            void    SetBranchAddress();
128            TTree*  GetPamTree(TFile*,TString);
129            TTree*  GetPamTree(TFile* f){return GetPamTree(f,"+ALL");};
130            TChain* GetPamTree(TList*,TString);
131            TTree*  GetRunTree(TFile*);
132            TChain* GetRunTree(TList*);
133            
134  //  =====================================  //  =====================================
135  //  methods needed to set brach addresses  //  methods needed to set brach addresses
136  //  =====================================  //  =====================================
137          void*       GetPointerToTrk()  {return &trk_obj;};          void*       GetPointerToTrk()  {return &trk_obj;};
138          void*       GetPointerToCalo() {return &calo_obj;};          void*       GetPointerToTrk(int s){
139          void*       GetPointerToToF()  {return &tof_obj;};                  switch (s) {
140          void*       GetPointerToTrig() {return &trig_obj;};                          case 1:  return &trk_l1_obj;
141          void*       GetPointerToS4()   {return &s4_obj;};                          case 2:  return &trk_obj;
142          void*       GetPointerToND()   {return &nd_obj;};                          default: return 0;
143          void*       GetPointerToAc()   {return &ac_obj;};                  };
144          void*       GetPointerToOrb()  {return &orb_obj;};          };
145                void*       GetPointerToCalo() {return &calo_obj; };
146            void*       GetPointerToToF()  {return &tof_obj;  };
147            void*       GetPointerToTrig() {return &trig_obj; };
148            void*       GetPointerToS4()   {return &s4_obj;   };
149            void*       GetPointerToND()   {return &nd_obj;   };
150            void*       GetPointerToAc()   {return &ac_obj;   };
151            void*       GetPointerToOrb()  {return &orb_obj;  };
152            void*       GetPointerToRun()  {return &run_obj;  };
153            void*       GetPointerTo(const char*);
154    
155    //  ==============================================
156    //  methods to retrieve subdetectors stored tracks
157    //  ==============================================
158            TrkTrack*   GetTrkStoredTrack(int seqno){return TrkLevel2::GetStoredTrack(seqno); };
159            CaloTrkVar* GetCaloStoredTrack(int);
160            ToFTrkVar*  GetToFStoredTrack(int);
161            //
162            PamTrack*   GetPamTrackAlong(TrkTrack*);
163    //      PamTrack*   GetPamTrackAlong(CaloTrkVar*);      //se serve
164    //      PamTrack*   GetPamTrackAlong(ToFTrkVar*);      //se serve
165            
166  //  =================================  //  =================================
167  //  methods to retrieve pamela tracks  //  methods to retrieve pamela tracks
168  //  =================================  //  =================================
169      PamTrack*     GetStoredTrack(Int_t itrk);      PamTrack*     GetStoredTrack(Int_t);
170          void          SortTracks();                 //assign value to variable sorted_tracks          //
171            void          SortTracks(TString);          //assign value to variable sorted_tracks
172          TRefArray*    GetTracks();                  //return sorted_tracks          TRefArray*    GetTracks();                  //return sorted_tracks
173          PamTrack*     GetTrack(int);          PamTrack*     GetTrack(int);
174      PamTrack*     GetTrackImage(int);      PamTrack*     GetTrackImage(int);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23