jeudi 28 mai 2015

Meaning of : operator in code [duplicate]

This question already has an answer here:

I am trying to understand some code of the Linear Collider I/O project. I am C++ newbie and I cannot understand what the below line means in the code that I have copied below.

vertex::vertex(): Processor("vertex"),_output(0)

What does : mean in the above line of code? Thanks to everybody in advance!

The code is written below

#include <marlin/Global.h>
#include "lcio.h"
//more .h files that I have not shown here

using namespace lcio ;
using namespace marlin ;

using namespace std;

vertex avertex ;

 vertex::vertex():Processor("vertex"),_output(0)
{
    _description = "Measure Bush Quantities" ;

std::vector<std::string> branchCollections;
branchCollections.push_back(std::string("Branch_ECALEndcap"));
branchCollections.push_back(std::string("Branch_HCALEndcap"));
registerProcessorParameter("branchCollections" ,                      "Name of Branch Collections" ,_branchCollections,branchCollections);



_treeFileName="vertex.root";
registerProcessorParameter( "TreeOutputFile" , 
        "The name of the file to which the ROOT tree will be written" ,
        _treeFileName ,
        _treeFileName);


}

void vertex::init() {
 //not important

}


void vertex::processEvent( LCEvent * evtP ) 
{       

    //not important

}

Aucun commentaire:

Enregistrer un commentaire