/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Protected Attributes
PerRecRpcReadout Class Reference

#include <PerRecRpcReadout.h>

Inheritance diagram for PerRecRpcReadout:
Inheritance graph
[legend]
Collaboration diagram for PerRecRpcReadout:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PerRecRpcReadout (TTree *tree)
virtual ~PerRecRpcReadout ()
virtual DataSecToTran (long entry, int iFile, long iEvent)

Protected Attributes

TTree * fChain
unsigned int combinationType
unsigned int eventType
int nClusters
int nTracks
int clusters_
int clusters_status [100]
int clusters_type [100]
int clusters_maxHitsInLayer [100]
bool clusters_is4of4 [100]
float clusters_x [100]
float clusters_y [100]
float clusters_z [100]
float clusters_t [100]
float clusters_quality [100]
int tracks_
int tracks_start [100]
int tracks_end [100]

Detailed Description

Definition at line 8 of file PerRecRpcReadout.h.


Constructor & Destructor Documentation

PerRecRpcReadout::PerRecRpcReadout ( TTree *  tree)

Definition at line 5 of file PerRecRpcReadout.cc.

    : fChain(tree)
{
    fChain->SetMakeClass(1);

    UInt_t nBr = 0;
    fChain->SetBranchStatus("*", 0, &nBr);

    fChain->SetBranchAddress("combinationType",  &combinationType);
    fChain->SetBranchAddress("eventType",        &eventType);
    fChain->SetBranchAddress("nClusters",        &nClusters);
    fChain->SetBranchAddress("nTracks",          &nTracks);

    fChain->SetBranchAddress("clusters",         &clusters_);
    fChain->SetBranchAddress("clusters.status",  clusters_status);
    fChain->SetBranchAddress("clusters.type",    clusters_type);
    fChain->SetBranchAddress("clusters.maxHitsInLayer", clusters_maxHitsInLayer);
    fChain->SetBranchAddress("clusters.is4of4",  clusters_is4of4);
    fChain->SetBranchAddress("clusters.x",       clusters_x);
    fChain->SetBranchAddress("clusters.y",       clusters_y);
    fChain->SetBranchAddress("clusters.z",       clusters_z);
    fChain->SetBranchAddress("clusters.t",       clusters_t);
    fChain->SetBranchAddress("clusters.quality", clusters_quality);

    fChain->SetBranchAddress("tracks",           &tracks_);
    fChain->SetBranchAddress("tracks.start",     tracks_start);
    fChain->SetBranchAddress("tracks.end",       tracks_end);
}
PerRecRpcReadout::~PerRecRpcReadout ( ) [virtual]

Definition at line 34 of file PerRecRpcReadout.cc.

{
}

Member Function Documentation

DataSec * PerRecRpcReadout::ToTran ( long  entry,
int  iFile,
long  iEvent 
) [virtual]

Implements IPerDataSec.

Definition at line 38 of file PerRecRpcReadout.cc.

{
    DataSec* obj = 0;
    if ( fChain->GetEntry(entry) > 0 ) {
        if (fChain->GetTreeNumber() != iFile ) exit(1);
        RecRpcReadout* _obj = new RecRpcReadout();
        _obj->combinationType = combinationType;
        _obj->eventType = eventType;
        _obj->nClusters = nClusters;
        _obj->nTracks   = nTracks;

        for ( int i = 0; i < nClusters; ++i ) {
            RecRpcReadout::Cluster* cluster = new RecRpcReadout::Cluster(
                    clusters_status[i],
                    clusters_type[i],
                    clusters_maxHitsInLayer[i],
                    clusters_is4of4[i],
                    clusters_x[i],
                    clusters_y[i],
                    clusters_z[i],
                    clusters_t[i],
                    clusters_quality[i]
                    );
            _obj->clusters.push_back(cluster);
        }

        for ( int i = 0; i < nTracks; ++i ) {
            //std::cout << tracks_start[i] << "  to  " << tracks_end[i] << std::endl;
            RecRpcReadout::Cluster* start = _obj->clusters[ tracks_start[i] ];
            RecRpcReadout::Cluster* end   = _obj->clusters[ tracks_end[i] ];
            RecRpcReadout::Track* track = new RecRpcReadout::Track(start, end);
            _obj->tracks.push_back(track);
        }

        obj = _obj;
    }
    return obj;
}

Member Data Documentation

TTree* PerRecRpcReadout::fChain [protected]

Definition at line 19 of file PerRecRpcReadout.h.

unsigned int PerRecRpcReadout::combinationType [protected]

Definition at line 21 of file PerRecRpcReadout.h.

unsigned int PerRecRpcReadout::eventType [protected]

Definition at line 22 of file PerRecRpcReadout.h.

int PerRecRpcReadout::nClusters [protected]

Definition at line 23 of file PerRecRpcReadout.h.

int PerRecRpcReadout::nTracks [protected]

Definition at line 24 of file PerRecRpcReadout.h.

int PerRecRpcReadout::clusters_ [protected]

Definition at line 26 of file PerRecRpcReadout.h.

int PerRecRpcReadout::clusters_status[100] [protected]

Definition at line 27 of file PerRecRpcReadout.h.

int PerRecRpcReadout::clusters_type[100] [protected]

Definition at line 28 of file PerRecRpcReadout.h.

Definition at line 29 of file PerRecRpcReadout.h.

bool PerRecRpcReadout::clusters_is4of4[100] [protected]

Definition at line 30 of file PerRecRpcReadout.h.

float PerRecRpcReadout::clusters_x[100] [protected]

Definition at line 31 of file PerRecRpcReadout.h.

float PerRecRpcReadout::clusters_y[100] [protected]

Definition at line 32 of file PerRecRpcReadout.h.

float PerRecRpcReadout::clusters_z[100] [protected]

Definition at line 33 of file PerRecRpcReadout.h.

float PerRecRpcReadout::clusters_t[100] [protected]

Definition at line 34 of file PerRecRpcReadout.h.

float PerRecRpcReadout::clusters_quality[100] [protected]

Definition at line 35 of file PerRecRpcReadout.h.

int PerRecRpcReadout::tracks_ [protected]

Definition at line 37 of file PerRecRpcReadout.h.

int PerRecRpcReadout::tracks_start[100] [protected]

Definition at line 38 of file PerRecRpcReadout.h.

int PerRecRpcReadout::tracks_end[100] [protected]

Definition at line 39 of file PerRecRpcReadout.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:51:07 for ReconInputSvc by doxygen 1.7.4