Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:18:22

0001 /* Copyright 2008-2009, Technische Universitaet Muenchen,
0002    Authors: Christian Hoeppner & Sebastian Neubert & Johannes Rauch
0003 
0004    This file is part of GENFIT.
0005 
0006    GENFIT is free software: you can redistribute it and/or modify
0007    it under the terms of the GNU Lesser General Public License as published
0008    by the Free Software Foundation, either version 3 of the License, or
0009    (at your option) any later version.
0010 
0011    GENFIT is distributed in the hope that it will be useful,
0012    but WITHOUT ANY WARRANTY; without even the implied warranty of
0013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014    GNU Lesser General Public License for more details.
0015 
0016    You should have received a copy of the GNU Lesser General Public License
0017    along with GENFIT.  If not, see <http://www.gnu.org/licenses/>.
0018 */
0019 
0020 #include "ThinScatterer.h"
0021 #include "IO.h"
0022 
0023 #include <TBuffer.h>
0024 
0025 namespace genfit {
0026 
0027 
0028 void ThinScatterer::Print(const Option_t*) const {
0029   printOut << "ThinScatterer, defined in plane: ";
0030   sharedPlane_->Print();
0031   printOut << "Material properties: ";
0032   material_.Print();
0033 }
0034 
0035 
0036 void ThinScatterer::Streamer(TBuffer &R__b)
0037 {
0038   // Stream an object of class genfit::ThinScatterer.
0039 
0040   // TODO: test
0041 
0042   //This works around a msvc bug and should be harmless on other platforms
0043   typedef ::genfit::ThinScatterer thisClass;
0044   UInt_t R__s, R__c;
0045   if (R__b.IsReading()) {
0046      Version_t R__v = R__b.ReadVersion(&R__s, &R__c); if (R__v) { }
0047      //TObject::Streamer(R__b);
0048      sharedPlane_.reset(new DetPlane());
0049      sharedPlane_->Streamer(R__b);
0050      material_.Streamer(R__b);
0051      R__b.CheckByteCount(R__s, R__c, thisClass::IsA());
0052   } else {
0053      R__c = R__b.WriteVersion(thisClass::IsA(), kTRUE);
0054      //TObject::Streamer(R__b);
0055      sharedPlane_->Streamer(R__b);
0056      material_.Streamer(R__b);
0057      R__b.SetByteCount(R__c, kTRUE);
0058   }
0059 }
0060 
0061 
0062 
0063 } /* End of namespace genfit */