#ifndef PAMVMCCARDSD_H
#define PAMVMCCARDSD_H
#include <iostream>

#include "PamVMCDetectorSD.h"

using std::cout;
using std::endl;

class PamVMCCardSD: public PamVMCDetectorSD{

  // const char* cname;

public:
  PamVMCCardSD(char *dname):PamVMCDetectorSD("pHitData",dname,1000)
{
  //cname=dname;
};


  //  virtual void FillHit(fin f,TVirtualMC *g){ 

  
  //   switch(f) {
  //  case ENTERING:
     
  //     CleanHit();
  //    FillVolID();
  //    InitHit();
    
  //  default:
  //   UpdateHit(g);
   
  /////    // cout<<"NEW HIT ENTERING OR  INSIDE "<<fnohit<<" in "<<cname<<" PDG="<<fhit.GetPDG()<<" at "<<g->TrackTime()<<" fTOF is: "<<fhit.GetTOF()<<endl;
  //   break;      
  // }

  //switch(f){
  //case EXITING:
  ////  // Save hit if energy release is greater than zero 
  // if(fhit.GetEREL()){
  //if(fdetID->FillVolID()){
  ///  //cout<<"saving"<<fdetID->GetID()<<endl;
  ///  //cout<<"NEW HIT EXITING "<<fnohit<<" in "<<cname<<" PDG="<<fhit.GetPDG()<<" at"<<fhit.GetTOF()<<endl;
  //	  SaveHit(cname);
  //} else {
  //  cout << "TOF FillVolID false" <<endl; 
  //}
  //  }
  //  break;
  //default:
  //  break;
  //}
  //}

  ClassDef(PamVMCCardSD,1)

    };

#endif // PAMVMCCARDSD_H
