Implementation for Head output of JHead objects with ROOT dictionary.  
 More...
#include <JHeadWriter.hh>
Implementation for Head output of JHead objects with ROOT dictionary. 
Definition at line 28 of file JHeadWriter.hh.
 
Constructor. 
- Parameters
 - 
  
    | header | header output  | 
    | parameters | equation parameters  | 
    | dictionary | dictionary  | 
  
   
Definition at line 40 of file JHeadWriter.hh.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
 
JRootWriter(std::ostream &out, const JEquationParameters ¶meters, const JRootDictionary_t &dictionary)
Constructor. 
 
const JRootDictionary_t & dictionary
 
static JNullStream null
Null I/O stream. 
 
 
 
 
Write equation. 
- Parameters
 - 
  
  
 
- Returns
 - this ROOT writer 
 
Reimplemented from JROOT::JRootWriter.
Definition at line 54 of file JHeadWriter.hh.
   58       string key = equation.getKey();
 
   61         key = 
getTag(equation.getKey(), i);
 
   64       header[key] = equation.getValue();
 
std::string getTag(const std::string &tag)
Get tag without aanet extension "_<counter>" for identical tags. 
 
 
 
 
Get dictictionary. 
- Returns
 - dictionary 
 
Definition at line 324 of file JRootStreamer.hh.
const JRootDictionary_t & dictionary
 
 
 
 
Write object according equation format. 
- Parameters
 - 
  
  
 
- Returns
 - this ROOT writer 
 
Definition at line 337 of file JRootStreamer.hh.
JRootWriter & put(const T &object)
Write object according equation format. 
 
ROOT class for writing object. 
 
 
 
 
Write given key and value according equation format. 
- Parameters
 - 
  
  
 
- Returns
 - this ROOT writer 
 
Definition at line 351 of file JRootStreamer.hh.
  359         JRedirectStream redirect(*
this, os);
 
  364       return this->
put(JEquation(key, os.str()));
 
JRootWriter & putObject(const T &object)
Write object. 
 
JRootWriter & put(const T &object)
Write object according equation format. 
 
 
 
 
Write ROOT class according equation format. 
- Parameters
 - 
  
  
 
- Returns
 - this ROOT writer 
 
Definition at line 374 of file JRootStreamer.hh.
  376       return this->
put(
"", cls, 
false);
 
JRootWriter & put(const T &object)
Write object according equation format. 
 
 
 
 
Write ROOT class according equation format. 
- Parameters
 - 
  
  
 
- Returns
 - this ROOT writer 
 
Definition at line 386 of file JRootStreamer.hh.
  388       return this->
put(const_cast<const JRootWritableClass&>(cls));
 
JRootWriter & put(const T &object)
Write object according equation format. 
 
 
 
 
Write ROOT class according equation format. 
- Parameters
 - 
  
    | prefix | prefix  | 
    | cls | ROOT class  | 
    | eol | end-of-line  | 
  
   
- Returns
 - object output 
 
Definition at line 400 of file JRootStreamer.hh.
  407         const JEquationFacet& facet = use_facet<JEquationFacet>(this->getloc());
 
  413           i->second->put(*
this, prefix, cls.
getAddress());
 
  420             JRedirectStream redirect(*
this, os);
 
  425           this->
put(JEquation(prefix, os.str()));
 
  427         } 
else if (cls.
getClass() != NULL) {
 
  429           if (cls.
getClass()->GetListOfBases() != NULL) {
 
  431             std::unique_ptr<TIterator> i(cls.
getClass()->GetListOfBases()->MakeIterator());
 
  433             for (
const TBaseClass* p; (p = (
const TBaseClass*) i->Next()) != NULL; ) {        
 
  434               this->
put(prefix, cls.
get(*p), 
false);
 
  438           if (cls.
getClass()->GetListOfDataMembers() != NULL) {
 
  440             std::unique_ptr<TIterator> i(cls.
getClass()->GetListOfDataMembers()->MakeIterator());
 
  442             for (
const TDataMember* p; (p = (
const TDataMember*) i->Next()) != NULL; ) {
 
  444                 this->
put(facet.getPrefix(prefix,p->GetName()), cls.
get(*p), 
false);
 
const JRootDictionary_t & getDictionary() const 
Get dictictionary. 
 
const char * getTypename() const 
Get type name. 
 
JRootWriter & putObject(const T &object)
Write object. 
 
pointer_type getAddress() const 
Get address. 
 
JRootAddressableClass get(const TDataMember &data_member) const 
Get addressable class of given data member. 
 
bool is_valid() const 
Check validity of this addressable class. 
 
TClass * getClass() const 
Get class. 
 
JRootWriter & put(const T &object)
Write object according equation format. 
 
static bool is_static(const TDataMember &data_member)
Check if data member is static. 
 
 
 
 
template<class T > 
  
  
      
        
          | JRootWriter& JROOT::JRootWriter::putObject  | 
          ( | 
          const T &  | 
          object | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Write object. 
- Parameters
 - 
  
  
 
- Returns
 - this ROOT writer 
 
Definition at line 476 of file JRootStreamer.hh.
JRootWriter & putObject(const T &object)
Write object. 
 
Test availability of stream operators. 
 
 
 
 
Write ROOT class. 
- Parameters
 - 
  
  
 
- Returns
 - object output 
 
Definition at line 488 of file JRootStreamer.hh.
  498           i->second->putObject(*
this, cls.
getAddress());
 
  500         } 
else if (cls.
getClass() != NULL) {
 
  502           if (cls.
getClass()->GetListOfBases() != NULL) {
 
  504             std::unique_ptr<TIterator> i(cls.
getClass()->GetListOfBases()->MakeIterator());
 
  506             for (
const TBaseClass* p; (p = (
const TBaseClass*) i->Next()) != NULL; ) {
 
  511           if (cls.
getClass()->GetListOfDataMembers() != NULL) {
 
  513             std::unique_ptr<TIterator> i(cls.
getClass()->GetListOfDataMembers()->MakeIterator());
 
  515             for (
const TDataMember* p; (p = (
const TDataMember*) i->Next()) != NULL; ) {
 
const JRootDictionary_t & getDictionary() const 
Get dictictionary. 
 
const char * getTypename() const 
Get type name. 
 
JRootWriter & putObject(const T &object)
Write object. 
 
pointer_type getAddress() const 
Get address. 
 
JRootAddressableClass get(const TDataMember &data_member) const 
Get addressable class of given data member. 
 
bool is_valid() const 
Check validity of this addressable class. 
 
TClass * getClass() const 
Get class. 
 
static bool is_static(const TDataMember &data_member)
Check if data member is static. 
 
 
 
 
  
  
      
        
          | Head& JAANET::JHeadWriter::header | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this struct was generated from the following file: