FairRoot/PandaRoot
RhoEventSelectorBase.cxx
Go to the documentation of this file.
1 // //
3 // RhoEventSelectorBase //
4 // //
5 // Base class for event selection //
6 // //
7 // Author List: //
8 // Marcel Kunze, RUB, Feb. 99 //
9 // Copyright (C) 1999-2001, Ruhr-University Bochum. //
10 // Ralf Kliemt, HIM/GSI Feb.2013 (Cleanup & Restructuring) //
11 // //
13 
14 #include <stdlib.h>
16 #include "RhoBase/RhoCandidate.h"
17 
19 
20 TBuffer& operator>> ( TBuffer& buf, RhoEventSelectorBase *&obj )
21 {
22  obj = ( RhoEventSelectorBase* ) buf.ReadObject ( RhoEventSelectorBase::Class() );
23  return buf;
24 }
25 
26 #include <iostream>
27 using namespace std;
28 
30 {
31  o << GetName() << " settings:";
32  if ( fTight ) { o << " Tight mode"; }
33  o << endl;
34  o << "Number of Tracks = " << fNTracksMin << " ... " << fNTracksMax << endl;
35  if ( fDocaMax < 1.E8 ) { o << "Primary vertex (d,-z,z) < (" << fDocaMax << ',' << fZMin << ',' << fZMax << ')' << endl; }
36  if ( fTotChar < 65535 ) { o << "Total charge < " << fTotChar << endl; }
37  if ( fETotLow > 0.0 ) { o << "Total energy = " << fETotLow << " ... " << fETotHigh << " GeV" << endl; }
38  if ( fPTotLow > 0.0 ) { o << "Total momentum = " << fPTotLow << " ... " << fPTotHigh << " GeV" << endl; }
39  if ( fELow > 0.0 ) { o << "Track energy = " << fELow << " ... " << fEHigh << " GeV" << endl; }
40  if ( fPLow > 0.0 ) { o << "Track momentum = " << fPLow << " ... " << fPHigh << " GeV" << endl; }
41  if ( fPtLow > 0.0 ) { o << "Track Pt = " << fPtLow << " ... " << fPtHigh << " GeV" << endl; }
42  if ( fEmcLow > 0.0 ) { o << "Track EMC energy = " << fEmcLow << " ... " << fEmcHigh << " GeV" << endl; }
43  if ( fThetaLow > 0.0 ) { o << "Track theta window = " << fThetaLow << " ... " << fThetaHigh << " Rad" << endl; }
44  if ( fPhiLow > 0.0 ) { o << "Track phi window = " << fPhiLow << " ... " << fPhiHigh << " Rad" << endl; }
45  o << endl;
46 }
47 
49 {
50  a.PrintOn ( o );
51  return o;
52 }
53 
virtual void PrintOn(std::ostream &o=std::cout) const
std::ostream & operator<<(std::ostream &o, const RhoEventSelectorBase &a)
ClassImp(RhoEventSelectorBase) TBuffer &operator>>(TBuffer &buf
Int_t a
Definition: anaLmdDigi.C:126
return buf
RhoEventSelectorBase *& obj