1#ifndef READCOSMICRAYDATAALG
2#define READCOSMICRAYDATAALG
4#include "CgemGeomSvc.h"
5#include "RealizationSvc/RealizationSvc.h"
6#include "RealizationSvc/IRealizationSvc.h"
11#include "TFileCollection.h"
14#include "Identifier/Identifier.h"
17class IDataProviderSvc;
19#define MAXNOFHITS 2400
33 void ReadCgemDigits();
34 void SaveCgemDigits();
36 void ReadCgemClusters();
37 void SaveCgemClusters();
39 int TranslateDigitLayerID(
int Input_LayerID);
40 int TranslateDigitSheetID(
int Input_SheetID);
41 int TranslateDigitStripType(
int Input_StripType);
42 int TranslateDigitStripID(
int Input_StripID,
int StripType);
43 int TranslateDigitXStripID(
int Input_StripID);
44 int TranslateDigitVStripID(
int Input_StripID);
46 int TranslateClusterLayerID(
int Input_LayerID);
47 int TranslateClusterSheetID(
int Input_SheetID);
48 int TranslateClusterFlag(
int Input_Flag);
49 double TranslateRecPhi(
double Input_RecPhi);
50 double TranslateRecV(
double Input_RecV);
51 double TranslateRecZ(
double Input_RecZ);
53 bool ConvertHitToDigi(
int ihit,
unsigned int &charge_channel,
unsigned int &time_channel);
66 bool finish_read_digi;
68 bool finish_read_cluster;
78 int Shift_DigitLayerID ;
79 int Shift_DigitSheetID ;
80 int Shift_DigitXStripID ;
81 int Shift_DigitVStripID ;
82 int Shift_ClusterLayerID ;
83 int Shift_ClusterSheetID ;
94 string CosmicRayDataSetID;
134 int m_ClusterHitIndex[70][30];
135 int m_ClusternHit[70];
136 int m_ClusterLayerID[70];
137 int m_ClusterSheetID[70];
139 int m_ClusterFlagB[70];
140 int m_ClusterFlagE[70];
141 double m_EnergyDeposit[70];
142 double m_Cluster_x[70];
143 double m_Cluster_z[70];
144 double m_Cluster_x_cc[70];
145 double m_Cluster_x_tpc[70];
146 double m_Cluster_z_cc[70];
147 double m_Cluster_z_tpc[70];
153 IDataProviderSvc* m_evtSvc;
ReadCosmicRayData(const std::string &name, ISvcLocator *pSvcLocator)