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

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

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

revision 1.15 by pam-fi, Tue Nov 29 13:50:11 2011 UTC revision 1.16 by mocchiut, Fri Jun 6 14:18:16 2014 UTC
# Line 18  Bool_t CaloStrip::paramload  = false; Line 18  Bool_t CaloStrip::paramload  = false;
18  **/  **/
19  CaloStrip::CaloStrip() {  CaloStrip::CaloStrip() {
20    c1 = 0;    c1 = 0;
21      debug = false;
22    this->Clear();    this->Clear();
23  };  };
24    
# Line 26  CaloStrip::CaloStrip() { Line 27  CaloStrip::CaloStrip() {
27  **/  **/
28  CaloStrip::CaloStrip(Bool_t mechalig) {  CaloStrip::CaloStrip(Bool_t mechalig) {
29    c1 = 0;    c1 = 0;
30      debug = false;
31    this->Clear();    this->Clear();
32    if ( mechalig ){    if ( mechalig ){
33      ismech = true;      ismech = true;
# Line 44  CaloStrip::CaloStrip(Bool_t mechalig) { Line 46  CaloStrip::CaloStrip(Bool_t mechalig) {
46  **/  **/
47  CaloStrip::CaloStrip(CaloLevel1 *calo) {  CaloStrip::CaloStrip(CaloLevel1 *calo) {
48    c1 = calo->GetCaloLevel1();    c1 = calo->GetCaloLevel1();
49      debug = false;
50    this->Clear();    this->Clear();
51    ismech = false;    ismech = false;
52    UseStandardAlig();    UseStandardAlig();
# Line 54  CaloStrip::CaloStrip(CaloLevel1 *calo) { Line 57  CaloStrip::CaloStrip(CaloLevel1 *calo) {
57  **/  **/
58  CaloStrip::CaloStrip(CaloLevel1 *calo, Bool_t mechalig) {  CaloStrip::CaloStrip(CaloLevel1 *calo, Bool_t mechalig) {
59    c1 = calo->GetCaloLevel1();    c1 = calo->GetCaloLevel1();
60      debug = false;
61    this->Clear();    this->Clear();
62    if ( mechalig ){    if ( mechalig ){
63      ismech = true;      ismech = true;
# Line 118  void CaloStrip::UseStandardAlig(){ Line 122  void CaloStrip::UseStandardAlig(){
122        //        //
123        // determine where I can find calorimeter ADC to MIP conversion file          // determine where I can find calorimeter ADC to MIP conversion file  
124        //        //
125        printf(" Querying DB for calorimeter parameters files...\n");        if ( debug ) printf(" Querying DB for calorimeter parameters files...\n");
126        //        //
127        //        //
128        //        //
# Line 130  void CaloStrip::UseStandardAlig(){ Line 134  void CaloStrip::UseStandardAlig(){
134          aligfile << glparam->PATH.Data() << "/";          aligfile << glparam->PATH.Data() << "/";
135          aligfile << glparam->NAME.Data();          aligfile << glparam->NAME.Data();
136          //          //
137          printf("\n Using parameter file: \n %s \n",aligfile.str().c_str());          if (debug) printf("\n Using parameter file: \n %s \n",aligfile.str().c_str());
138          f = fopen(aligfile.str().c_str(),"rb");          f = fopen(aligfile.str().c_str(),"rb");
139          if ( f ){          if ( f ){
140            //            //

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

  ViewVC Help
Powered by ViewVC 1.1.23