/[PAMELA software]/DarthVader/TrackerLevel2/inc/TrkLevel1.h
ViewVC logotype

Diff of /DarthVader/TrackerLevel2/inc/TrkLevel1.h

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

revision 1.9 by pam-fi, Tue Jan 16 10:03:49 2007 UTC revision 1.15 by pam-fi, Mon Aug 27 12:57:14 2007 UTC
# Line 8  Line 8 
8  #include <TObject.h>  #include <TObject.h>
9  #include <TClonesArray.h>  #include <TClonesArray.h>
10  #include <TRef.h>  #include <TRef.h>
11    #include <TROOT.h>
12    #include <TSystem.h>
13    
14  #include <TrkStruct.h>  //#include <TrkStruct.h>
15    #include <TrkParams.h>
16    
17  #define INC_CUT 4.  #define INC_CUT 4.
18  /**  /**
# Line 45  public: Line 48  public:
48      void Clear(Option_t *option){Clear();};      void Clear(Option_t *option){Clear();};
49      void Delete(){Clear();};      void Delete(){Clear();};
50                    
51      Float_t GetSignal(Int_t, Float_t);    ///< cluster signal      Float_t GetSignal(Int_t, Float_t, Bool_t);    ///< cluster signal
52      Float_t GetSignal(Float_t cut)  { return GetSignal( (Int_t)0, cut); };      Float_t GetSignal(Float_t cut)                { return GetSignal( 0, cut, false); };
53      Float_t GetSignal(Int_t nstrip) { return GetSignal( nstrip, (Float_t)(-1000) ); };      Float_t GetSignal(Int_t nstrip, Bool_t force) { return GetSignal( nstrip, -1000., force ); };
54      Float_t GetSignal()             { return GetSignal( (Int_t)0,(Float_t)INC_CUT); };      Float_t GetSignal(Int_t nstrip)               { return GetSignal( nstrip, -1000., false ); };
55        Float_t GetSignal()                           { return GetSignal( 0,(Float_t)INC_CUT, false); };    
56            
57      Float_t GetSignalToNoise(Int_t,Float_t);  ///< cluster signal/noise      Float_t GetSignalToNoise(Int_t,Float_t);  ///< cluster signal/noise
58      Float_t GetSignalToNoise(Float_t cut)  { return GetSignalToNoise( (Int_t)0, cut); };      Float_t GetSignalToNoise(Float_t cut)  { return GetSignalToNoise( 0, cut); };
59      Float_t GetSignalToNoise(Int_t nstrip) { return GetSignalToNoise( nstrip, (Float_t)(-1000) ); };      Float_t GetSignalToNoise(Int_t nstrip) { return GetSignalToNoise( nstrip,-1000. ); };
60      Float_t GetSignalToNoise()             { return GetSignalToNoise( (Int_t)0, (Float_t)INC_CUT); };      Float_t GetSignalToNoise()             { return GetSignalToNoise( 0, (Float_t)INC_CUT); };
61    
62    
63      Int_t   GetMultiplicity(Float_t);         ///< cluster multiplicity      Int_t   GetMultiplicity(Float_t);         ///< cluster multiplicity
64      Int_t   GetMultiplicity()  { return GetMultiplicity(INC_CUT);  };      Int_t   GetMultiplicity()  { return GetMultiplicity(INC_CUT);  };
65            
66      cTrkLevel1* GetLevel1Struct();      void GetLevel1Struct(cTrkLevel1* l1);
67        void GetLevel1Struct(){GetLevel1Struct(&level1event_);};
68            
69      Float_t GetCOG(Int_t);      Float_t GetCOG(Int_t);
70      Float_t GetCOG(Float_t angle);      Float_t GetCOG(Float_t angle);
71      Float_t GetCOG(){ return GetCOG(0); };      Float_t GetCOG(){ return GetCOG(0); };
72      Float_t GetETA(Int_t,float);      Float_t GetETA(Int_t,float,bool);
73      Float_t GetETA(float angle){ return GetETA(0,angle); };  //    Float_t GetETA(float angle){ return GetETA(0,angle); };
74            Float_t GetPositionPU(float);
75        Int_t   GetPFAstrips(float angle);
76    
77      
78      Bool_t IsBad(Int_t);                ///< bad-cluster flag      Bool_t IsBad(Int_t);                ///< bad-cluster flag
79      Bool_t IsSaturated(Int_t);          ///< saturated-cluster flag      Bool_t IsSaturated(Int_t);          ///< saturated-cluster flag
80    
# Line 110  class TrkLevel1 : public TObject { Line 118  class TrkLevel1 : public TObject {
118      int nclstr() {return Cluster->GetEntries();}    ///< number of stored clusters      int nclstr() {return Cluster->GetEntries();}    ///< number of stored clusters
119            
120      void Dump();      void Dump();
121      void SetFromLevel1Struct(cTrkLevel1 *, Bool_t);  //    void SetFromLevel1Struct(cTrkLevel1 *, Bool_t);
122  //      void GetLevel1Struct(cTrkLevel1 *) const;  //      void GetLevel1Struct(cTrkLevel1 *) const;
123      cTrkLevel1* GetLevel1Struct();      void GetLevel1Struct(cTrkLevel1 *l1);
124        void SetFromLevel1Struct(cTrkLevel1 *l1, Bool_t full);    
125        void GetLevel1Struct(){GetLevel1Struct(&level1event_);};
126        void SetFromLevel1Struct(Bool_t full){SetFromLevel1Struct(&level1event_,full);};
127        void SetFromLevel1Struct(){SetFromLevel1Struct(true);};
128    
129      void Clear();      void Clear();
130      void Delete();      void Delete();
131      void Set();      void Set();
# Line 122  class TrkLevel1 : public TObject { Line 135  class TrkLevel1 : public TObject {
135      TrkLevel1*    GetTrkLevel1(){return this;}      TrkLevel1*    GetTrkLevel1(){return this;}
136      TClonesArray* GetClusters(){return Cluster;};   ///< returns pointer to the cluster array      TClonesArray* GetClusters(){return Cluster;};   ///< returns pointer to the cluster array
137            
138      int           LoadPfaParam(TString);  /*     int LoadPfaParam(TString); */
139    /*     int LoadFieldParam(TString); */
140    /*     int LoadChargeParam(TString); */
141    /*     int LoadAlignmentParam(TString); */
142    /*     int LoadMipParam(TString); */
143    /*     int LoadVKMaskParam(TString); */
144    /*     int LoadPfaParam(){return LoadPfaParam("");}; */
145    /*     int LoadFieldParam(){return LoadFieldParam("");}; */
146    /*     int LoadChargeParam(){return LoadChargeParam("");}; */
147    /*     int LoadAlignmentParam(){return LoadAlignmentParam("");}; */
148    /*     int LoadMipParam(){return LoadMipParam("");}; */
149    /*     int LoadVKMaskParam(){return LoadVKMaskParam("");}; */
150    /*     int LoadParams(); */
151    
152    //    int ProcessEvent(int);
153    //    int ProcessEvent(){return ProcessEvent();};
154        int ProcessEvent();
155    
156        int GetPfaNbinsAngle();
157        int GetPfaNbinsETA();
158        int GetPfaNbinsCharge(){return 0;};
159        float* GetPfaCoord(TString pfa, int nview, int nladder, int nang);
160        float* GetPfaAbs(TString pfa, int nang);
161    
162        void   StatusDump(int view);
163        Bool_t StatusCheck(int view, int flagmask);
164    
165        
166        void SetPFA(int pfaid){ sw_.pfaid = pfaid; };
167        int  GetPFA(){ return sw_.pfaid; };
168            
169    
170      ClassDef(TrkLevel1,2);      ClassDef(TrkLevel1,2);
171    
172  };  };

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.23