/[PAMELA software]/DarthVader/CalorimeterLevel2/src/CaloLevel2.cpp
ViewVC logotype

Diff of /DarthVader/CalorimeterLevel2/src/CaloLevel2.cpp

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

revision 1.14 by mocchiut, Mon Sep 3 08:42:13 2007 UTC revision 1.15 by mocchiut, Fri Nov 23 16:42:34 2007 UTC
# Line 15  ClassImp(CaloLevel2); Line 15  ClassImp(CaloLevel2);
15  **/  **/
16  CaloTrkVar::CaloTrkVar() {  CaloTrkVar::CaloTrkVar() {
17    this->Clear();    this->Clear();
18  };  }
19    
20  /**  /**
21   * Clear variables   * Clear variables
22  **/  **/
23  void CaloTrkVar::Clear() {  void CaloTrkVar::Clear(Option_t *t) {
24      //void CaloTrkVar::Clear() {
25    trkseqno = 0;    trkseqno = 0;
26    noint = 0;    noint = 0;
27    ncore = 0;    ncore = 0;
# Line 91  CaloLevel2::CaloLevel2() {     Line 92  CaloLevel2::CaloLevel2() {    
92    //    //
93    this->Clear();    this->Clear();
94    //    //
95  };  }
96  /**  /**
97   * Create the TClonesArray   * Create the TClonesArray
98  **/  **/
# Line 102  void CaloLevel2::Set(){//ELENA Line 103  void CaloLevel2::Set(){//ELENA
103  /**  /**
104   * Clear the CaloLevel2 object   * Clear the CaloLevel2 object
105   **/   **/
106  void CaloLevel2::Clear() {      void CaloLevel2::Clear(Option_t *t ) {    
107    //    //
108  //  CaloTrk->Clear(); //ELENA    //  CaloTrk->Clear(); //ELENA
109    if(CaloTrk)CaloTrk->Delete(); //ELENA    if(CaloTrk)CaloTrk->Delete(); //ELENA
110    //    //
111    nstrip = 0;    nstrip = 0;
# Line 132  void CaloLevel2::Clear() {     Line 133  void CaloLevel2::Clear() {    
133    good = 0;    good = 0;
134    selftrigger = 0;    selftrigger = 0;
135    //    //
136  };  }
137    
138  /**  /**
139   * Delete the CaloLevel2 object   * Delete the CaloLevel2 object
140   **/   **/
141  void CaloLevel2::Delete() {     //ELENA  void CaloLevel2::Delete(Option_t *t) {     //ELENA
142    if(CaloTrk){ //ELENA    if(CaloTrk){ //ELENA
143        CaloTrk->Delete(); //ELENA        CaloTrk->Delete(); //ELENA
144        delete CaloTrk; //ELENA        delete CaloTrk; //ELENA
# Line 231  Float_t CaloLevel2::impx(Int_t tr){ Line 232  Float_t CaloLevel2::impx(Int_t tr){
232      printf(" Cannot find selftrigger block\n");      printf(" Cannot find selftrigger block\n");
233    };    };
234    return(-100.);    return(-100.);
235  };  }
236    
237  /**  /**
238   * Returns the impact position on the top of the calorimeter as determined by the calorimeter itself.   * Returns the impact position on the top of the calorimeter as determined by the calorimeter itself.
# Line 253  Float_t CaloLevel2::impy(Int_t tr){ Line 254  Float_t CaloLevel2::impy(Int_t tr){
254      printf(" Cannot find selftrigger block\n");      printf(" Cannot find selftrigger block\n");
255    };    };
256    return(-100.);    return(-100.);
257  };  }
258  /**  /**
259   * Should return the energy in GeV if the particle would be an electron   * Should return the energy in GeV if the particle would be an electron
260   * using a parametrization taken from Monte Carlo simulation   * using a parametrization taken from Monte Carlo simulation
# Line 264  void CaloLevel2::GetElectronEnergy(Float Line 265  void CaloLevel2::GetElectronEnergy(Float
265    sigma = 0.;    sigma = 0.;
266    if ( energy > 0. ) sigma = energy * (0.01183 + 0.121/sqrt(energy));    if ( energy > 0. ) sigma = energy * (0.01183 + 0.121/sqrt(energy));
267    return;    return;
268  };  }
269    
270  /**  /**
271   * Returns pointer to the set of track-related variables "itrk"   * Returns pointer to the set of track-related variables "itrk"
# Line 307  CaloTrkVar *CaloLevel2::GetCaloStoredTra Line 308  CaloTrkVar *CaloLevel2::GetCaloStoredTra
308    };    };
309    return c;    return c;
310            
311  };  }

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

  ViewVC Help
Powered by ViewVC 1.1.23